Skip to content
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

Open
JaiganeshKumaran opened this issue Apr 4, 2023 · 5 comments
Open

Paste with promptable sections (powered by AI) #15104

JaiganeshKumaran opened this issue Apr 4, 2023 · 5 comments
Labels
Area-Chat All things LLM or "AI" Area-Extensibility A feature that would ideally be fulfilled by us having an extension model. Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. Product-Terminal The new Windows Terminal.
Milestone

Comments

@JaiganeshKumaran
Copy link

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.

@JaiganeshKumaran JaiganeshKumaran added the Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. label Apr 4, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Apr 4, 2023
@sylveon
Copy link

sylveon commented Apr 4, 2023

How would terminal detect a placeholder? There is no real standard for them, everybody does it differently.

@zadjii-msft
Copy link
Member

That would basically be my question. I've seen everything -<placeholder>, {placeholder}, {{placeholder}}, heck, even just placeholder.

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 sendInput with promptable sections - paste with promptable sections. I dunno, something to noodle on.

@sylveon
Copy link

sylveon commented Apr 4, 2023

I personally like to use $PLACEHOLDER or %PLACEHOLDER% depending on the target audience :P

@asklar
Copy link
Member

asklar commented Apr 9, 2023

this feels like either a CMD or a pwsh feature request, IOW the text mode shell, not terminal the host app.

@zadjii-msft
Copy link
Member

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.

@zadjii-msft zadjii-msft added this to the Icebox ❄ milestone Apr 17, 2023
@zadjii-msft zadjii-msft added Area-Extensibility A feature that would ideally be fulfilled by us having an extension model. Product-Terminal The new Windows Terminal. labels Apr 17, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot removed the Needs-Tag-Fix Doesn't match tag requirements label Apr 17, 2023
@zadjii-msft zadjii-msft removed the Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting label Apr 17, 2023
@zadjii-msft zadjii-msft added the Area-Chat All things LLM or "AI" label Jun 12, 2024
@zadjii-msft zadjii-msft changed the title Make it easier to substitute parameter values when copying commands Paste with promptable sections (powered by AI) Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Chat All things LLM or "AI" Area-Extensibility A feature that would ideally be fulfilled by us having an extension model. Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. Product-Terminal The new Windows Terminal.
Projects
None yet
Development

No branches or pull requests

4 participants