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
21.38k stars 373 forks source link

id like to be able to select and copy paste the current path #5001

Closed juancresc closed 5 months ago

juancresc commented 5 months ago

Dupe Check

Describe the solution you'd like?

I cant select / copy from the current terminal title / path

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

no

Additional context

No response

How important is this feature to you?

2

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

None

juancresc commented 5 months ago
image

this precise spot where the cursor is, so annoying

dannyneira commented 5 months ago

hi @juancresc thanks for submitting. So with Warps native prompt it can't be select/copied since its a separate UI element than the input or terminal blocks, this is a known limitation, but what you can do as a workaround is right-click and copy the path (or working directory) on the current path or any previous blocks.

https://github.com/warpdotdev/Warp/assets/16809145/8d335db7-b8f4-431f-a792-418c6a756f49

Please see out docs for more https://docs.warp.dev/appearance/prompt#how-to-access-it

dannyneira commented 5 months ago

Thanks for submitting this @juancresc

We already have a request tracking this over at https://github.com/warpdotdev/Warp/issues/36

If you could please give it a 👍 and subscribe to that request, it would help us gauge interest. We'll post any updates there, so stay tuned!

We'll be closing this as a duplicate.

dannyneira commented 5 months ago

Duplicate of https://github.com/warpdotdev/Warp/issues/36

Dock-Yard commented 3 months ago

@dannyneira Its not just the path. If I want to copy the current git branch name, cannot do it either. And theres no way to do it other than do a 'git status' and have the branch name as o/p and copy that

dannyneira commented 3 months ago

Hi @Dock-Yard right-clickng on an existing block or the input prompt should allow you to copy the working directory, branch, prompt, command, output, etc.

CleanShot 2024-08-06 at 12 26 50

An alternative is to use a custom prompt like starship.rs, or a supported prompt, and then you can copy on select on existing blocks, although the current input prompt is not selectable, you can still use the right-click method to copy the entire prompt.

https://github.com/user-attachments/assets/a315a67a-6e95-4100-91bc-dd176126e97a

I hope this helps with your issue.