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

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

Open
zheng opened this issue Jul 20, 2021 · 9 comments
Labels
Feature requests Feature Requests

Comments

@zheng
Copy link
Contributor

zheng commented Jul 20, 2021

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.

@elviskahoro
Copy link
Contributor

elviskahoro commented Sep 22, 2021

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 - #181

@elviskahoro
Copy link
Contributor

elviskahoro commented Sep 22, 2021

@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 elviskahoro changed the title Prompt text should be selectable, copy-able with rest of block, and shareable Prompt: Prompt text should be selectable, copy-able with rest of block, and shareable Nov 7, 2021
@elviskahoro elviskahoro changed the title Prompt: Prompt text should be selectable, copy-able with rest of block, and shareable Input Editor: Prompt text should be selectable, copy-able with rest of block, and shareable Nov 7, 2021
@elviskahoro elviskahoro changed the title Input Editor: Prompt text should be selectable, copy-able with rest of block, and shareable Prompt text should be selectable, copy-able with rest of block, and shareable Dec 6, 2021
@elviskahoro elviskahoro added UIUX and removed UIUX labels Dec 6, 2021
@elviskahoro elviskahoro reopened this Feb 25, 2022
@Yikun
Copy link
Contributor

Yikun commented Apr 18, 2022

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

@dev4joel
Copy link

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

@szgupta
Copy link
Member

szgupta commented May 23, 2022

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!

@davidrenne
Copy link

@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.

@yukas
Copy link

yukas commented Nov 30, 2022

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.

@dannyneira
Copy link
Member

dannyneira commented Nov 30, 2022

@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

@jcrapet
Copy link

jcrapet commented Jun 5, 2024

Screenshot 2024-06-05 at 14 14 35

Not being able to select with the mouse prompts from previous commands (green rectangle in my screen) is really annoying.

I mainly use that to copy/paste git branch and having to right click + copy git branch + paste is slower.

Anyway, thanks for your work guys, Warp is great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature requests Feature Requests
Projects
None yet
Development

No branches or pull requests

9 participants