Warp icon indicating copy to clipboard operation
Warp copied to clipboard

Prompt text should be selectable, copy-able with rest of block, and shareable

Open zheng opened this issue 4 years ago • 6 comments

Is your feature request related to a problem? Please describe. Keep the context of the current working directory + other info while sharing & copying.

Describe the solution you'd like

  1. Allow selecting the prompt text like the rest of the text
  2. Additional option in menu (i.e. Copy Command, Output and Prompt) to copy everything.
  3. A checkbox to share the prompt when sharing a block.

Additional context Requested by @bznana from Discord.

zheng avatar Jul 20 '21 19:07 zheng

A block sharing (block share --added for searchability) dialog that allows configuration of: prompt command output expiration timestsamp current directory absolute current directory relative to ~

Related block sharing: links, expiration, and profile association #181 - https://github.com/warpdotdev/warp/issues/181

elviskahoro avatar Sep 22 '21 08:09 elviskahoro

@zheng I wonder if there's a use case for sharing X number of block commands before and or after as well.

To contextualize what someone did either before or after. X number of block outputs might be too much, but X number of block commands might be helpful (maybe in combination with the associated working directories).

this idea def needs some more workshopping maybe worth bringing up in the discord X months from now

elviskahoro avatar Sep 22 '21 08:09 elviskahoro

It would be good if we could support select-copy sub-string in Prompt using left click.

Sometime I just want to select copy substring of

image

Instead, I might use right click and then left click to copy specific info, but I still think select-copy might more easy for me.

image

Yikun avatar Apr 18 '22 03:04 Yikun

From francois via Discord

Hello, I have a feature request, I would find very handy if double-clicking on the git branch would actually copy the branch name in my clipboard. For example, in the screenshot, double-click on the yellow thing would copy feature/create-an-awesome-button in my clipboard.

image

I know I can right-click and click "copy git branch" but it slows down my productivity, mainly because of the 3 possibilities "copy prompt / copy working directory / copy git branch" that I always need to re-read By the way, double-clicking the purple thing could copy the workding directory in the clipboard

dev4joel avatar May 20 '22 09:05 dev4joel

Related to copying prompt text, it's currently possible to copy the prompt text via mouse using the context menu. We should likely make this keyboard-friendly as well with a keyboard shortcut (similar to the keyboard shortcuts we have for other context menu options).

This would be orthogonal to supporting selectable text in the prompt!

szgupta avatar May 23 '22 12:05 szgupta

@dev4joel +1 on the "double-clicking the purple thing could copy the workding directory in the clipboard". I didnt know about the right clicking to copy branch or CWD which is cool but the double clicking is better.

I say for single clicking it should also drop down the double click prompt because you cant even highlight this area at all, but it provides tons of value to copy the branch or CWD.

davidrenne avatar Jul 26 '22 16:07 davidrenne

I frequently need to copy part of the git branch (not the whole branch name) as we have kubernetes namespace as a part of the branch. Currently there is no option to do so.

Basically one may have lot's of copyable info in the prompt. It would be useful to be able to copy it.

yukas avatar Nov 30 '22 12:11 yukas

@yukas As a possible workaround, you can select the prompt from a previously run block if you're using a custom prompt(like starship.rs), so hopefully, you can use that to select the partial branch name instead of right-clicking "copy git branch" on the default prompt and then editing it manually in the input editor.

CleanShot 2022-11-30 at 14 49 21

dannyneira avatar Nov 30 '22 21:11 dannyneira