-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for send-input
subcommand
#9368
Comments
So, if I'm reading this correctly, what you're really looking for is the
to send "ls" to the active pane. That makes sense to me. It's something we've been back and forth on in the past - I've been a little hesitant to allow other processes to "inject" input into terminal instances like this. That being said, we're not really pursuing mixed elevation anymore, so now I'm less worried about this. What I am worried about is how we encode special characters. Not all shells support multi-line input, so putting a raw |
send-input
subcommand
Yes, thank you "send-input" is much better name; As i understand encoding/escaping is well know problem no long ago i was trying this ${selectedText} in vscode tasks ( https://code.visualstudio.com/docs/editor/variables-reference ) ...so perhaps accepting "multiline / etc input" in a smart way is yet another feature? and we could try how idea is working out in a wild. to add more context of my use case i'd like to have one monitor of multiple opened terminals only and pushing to chosen one with my ide shortcuts from another monitor until remote control was released my scenario was
with remote control currently i have
it's better but i need
there are also scenarios when command is derived entirely from context so if you'd create shortcut for this in your IDE you could
i hope it's worth pursuing also it helps alot with work ergonomic ( and wrist pain ;) ) |
I'm not terribly concerned about multiline input, since you can stack multiple I don't really see a use case for sending arrow keys as input (famous last words perhaps). My thinking is that this extends the precedent for functionality set by |
This feature would be similar to tmux's Wezterm also has a similar feature. It's called |
Any progress on this feature? I would like to have it too. Thanks |
I have really enjoyed working with WSL2 as a combination of Windows and Linux, but not being able to programmatically control the terminal app itself (including sending arbitrary input to it) feels limiting right now in a time of automation. |
you can execute when creating tab
exp:
wt.exe -w 2 sp -V wsl.exe zsh -ic "l\; /bin/zsh"
but there is not way to execute when it's already created or i do sth wrong?
Environment
21322.1000
Windows 10 Feature Experience Pack 321.2906.0.3
wsl2
Linux DESKTOP-RRHRJSC 4.19.128-microsoft-standard #1 .... x86_64 x86_64 x86_64 GNU/Linux
Windows Terminal Preview 1.7.572.0
Steps to reproduce
wsl
wt.exe -w 2 focus-tab -t 3 /bin/bash -c 'ls'
Expected behavior
executes
/bin/bash -c 'ls'
in focused tabor
introduce -exec flag that executes passed string
wt.exe -w 2 focus-tab -t 3 -exec "/bin/bash -c 'ls'"
Actual behavior
only focuses tab
The text was updated successfully, but these errors were encountered: