warpdotdev / Warp

Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
https://warp.dev
Other
20.81k stars 351 forks source link

Support "Paste Selection" #2197

Open darylmonge opened 1 year ago

darylmonge commented 1 year ago

Discord username (optional)

darylm#4643

Describe the solution you'd like?

An extremely useful standard feature in the "other" terminals is the menu item "Paste Selection" - Shift-CMD-V
Often the user will have something in the clipboard that should be kept, but a quick select text followed by paste selection is very handy as it will copy/paste the selected text without overwriting the clipboard.

Is your feature request related to a problem? Please describe.

No response

Additional context

Terminal.app, iTerm.app both support "Paste Selection"

How important is this feature to you?

2

Warp Internal (ignore) - linear-label:770f6576-d6c0-4e4f-a259-fc64b5156087

No response

elviskahoro commented 1 year ago

@darylmonge thanks for opening. This should help with DevX. No ETA though

darylmonge commented 1 year ago

Discovered that under the right click menu there is a "Insert into input" but has no keybinding. This appears pretty close to the "Paste Selection" function in older terminal apps but designed more around the warp strategy for handling input. The solution might just be an appropriate key binding although I would recommend adding the compatible menu item under "Edit" as well.

dannyneira commented 1 year ago

Thanks for this feature request! Please +1 this request as it helps us gauge interest. We will post any updates here.

bartkummel commented 1 year ago

In other terminals, there's also the option to use right click for this. Whenever I've selected some output text and right click, the selected text is pasted at the cursor. This is very useful, since I use the mouse already to select that text, so a right click is faster than a key combo.

Extra note: I use a clip board manager, so I don't care to much whether or not the clipboard is used for this. But I do understand why other people do, if they don't use a clipboard manager.

ADTC commented 4 months ago

@bartkummel that's funny we seem opposite, because I want this to have some mouse binding or keyboard binding specifically to avoid polluting my clipboard history with random bits of text I select and insert in Warp terminal. So I absolutely do not want this to use clipboard.

What's the timeline to implement this? It's been 1.5 years of "tracking the issue". At least with a keyboard binding, I could assign some mouse button to trigger the keyboard shortcut. But definitely a direct mouse binding is preferred. I really like Command-right-click in the macOS stock Terminal app. It's so intuitive for me and I can use a trackpad for it too.