-
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
Paste with promptable sections (powered by AI) #15104
Comments
How would terminal detect a placeholder? There is no real standard for them, everybody does it differently. |
That would basically be my question. I've seen everything - Sure, there could be a network effect that might result from us starting to accept one format, that wouldn't replace all the existing documentation that already exists... Though, I wonder if there isn't some way I could plug this into #12927, more or less. Instead of |
I personally like to use $PLACEHOLDER or %PLACEHOLDER% depending on the target audience :P |
this feels like either a CMD or a pwsh feature request, IOW the text mode shell, not terminal the host app. |
Okay so we had some discussion about this. I think overall we agreed, yea - this is probably impossible or something that the shell should do. But then we thought that this actually might be a place where LLMs might be valuable. This is something that you might actually be able to ask a LLM what "placeholder" text is in a string and let us prompt through it. I'm usually pretty reluctant to say "yea this is a good application for AI", but this genuinely seems like a problem that couldn't be solved without it. That being said, it's not something we're likely to implement any time soon. I'm gonna leave this open as a possible extension idea. |
Description of the new feature/enhancement
Often times, you copy commands from a website that has placeholders in it, which you are supposed to replace. Currently, on almost all terminals, you either copy the entire thing, move the cursor to where the placeholder is there and overwrite it. Or if you are like me, you copy it into Notepad, replace the placeholder with your parameter and then paste it into the terminal. Both are not very convenient.
Proposed technical implementation details (optional)
Not exactly sure how the syntax should look to distinguish placeholders from actual text, but Windows Terminal could decide one. When a string with placeholders is copied, Windows Terminal should allow you to press Tab and to simply overwrite each placeholder with a parameter you want. The way Visual Studio does small code snippets could be an inspiration.
The text was updated successfully, but these errors were encountered: