-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
[Question] Pass command text in but do not execute #10416
Comments
I think there is a misunderstanding of where the echo of stdin to the terminal display happens when you are keying at the console (and it could be my misunderstanding). I think the ordinary way this is handled is by a new-line entry that is not taken as an end-of-line or "send." Ctrl-Enter, typically. I don't know what Using There are also accessibility considerations around how all this operates and I have no idea how that is addressed, only that it must be. Impacts by windows resizing should not matter (that is, such liine-breaking/-stitcching is probably not visible to the console app at all. Finally, if the console app is a command-line shell, and a console app is launched, the ordinary arrangements seems to be that no line editor (or history) intervenes for that wiring of This is rather far from the feature request. It does inspire consideration of the layers of abstraction and how they are wired up. That's been on my mind in attempting to comprehend the levels of abstraction and separation of concerns that seem to arise in cosideration of WT features, even for me as an interested observer. PS: A non-breaking newline is also desirable in the creation of script (e.g., PPS: [2021-06-13T17:17Z] Then there are redirections and pipes to consider. And it is all supposed to work [;<). |
For shells that support bracketed paste mode (for example bash, zsh, ipython & etc), this is possible and usually work out of the box. Unfortunely both cmd.exe & PowerShell do not support bracketed paste mode at the moment. |
@shaggygi In which way specifically do you want to pass commands? As a shortcut action? As mentioned by @skyline75489 cmd.exe and PowerShell don't support bracketed paste mode, which makes it (basically) impossible to enter multiline commands programmatically without executing them immediately. |
I basically have a utility that generates some initial text for a command based on selections from the utility. I would like to open WT (via the utility) and add that text to the prompt (using CMD as default). I can then add the remaining text before submitting command. For example... (within WT showing path to EXE with initial arguments.) Then I would add the remaining and press Enter. |
I'm assuming your utility is a separate process, right? On one hand we could implement (PRs welcome! 😄): #9368 |
Hey sorry for letting this one sit for so long! This does sound a lot like /dup #9368, we may as well track this request there. |
Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! |
Description of the new feature/enhancement
This is more of a question, but could lead to feature if not available. I'm wanting to know if there is a way to pass a command/text into WT without actually executing the command? For example, I have a partial command I want to load/display in WT and have ready to type in the remaining part of the command.
Proposed technical implementation details (optional)
The text was updated successfully, but these errors were encountered: