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.4k stars 337 forks source link

insert filename w/o clipboard #4959

Open thorstenhirsch opened 1 month ago

thorstenhirsch commented 1 month ago

Dupe Check

Describe the solution you'd like?

When clicking on a filename (or directory name) it should be inserted in the command line. No need for going through the clipboard.

I guess we also should press a hotkey like CTRL or SHIFT or both for this feature. Without hotkey the current behaviour is to show a context menu (open file/directory in), so this feature request would probably add another entry to this context menu:

MyFile    +---------------------------+
          | Open File [Cmd+Click]     |
          | Insert Name [Shift+Click] |
          +---------------------------+

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

No response

Additional context

Also add a space afterwards, so that inserting a bunch of filenames will work like a charm. Think of the following "actions"

How important is this feature to you?

1 (Not too important)

Warp Internal (ignore) - linear-label:39cc6478-1249-4ee7-950b-c428edfeecd1

None

dannyneira commented 1 month ago

Thanks for this feature request @thorstenhirsch. As a stopgap, you can enable Copy on Select, then when text is selected it automatically gets copied to the clipboard so you can automatically paste into the input by pressing your Paste shortcut (CMD-V on Mac, and CTRL-SHIFT-V on Linux).

To anyone else interested in this feature, please add a 👍 to the original post at the top to signal that you want this feature, and subscribe if you'd like to be notified.