Intelligent Copy All (Prompt, Command, Output) is needed, which prefaces command
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 38/100
Research direction
Start by tracing the existing Copy Both behavior and the handling of Copy Command versus Copy Prompt. The change is done when Copy Both prefixes the command with a simple $ marker while Copy Command remains unchanged; the issue also describes # for root as a possible bonus.
Written by the indexing model from the issue text.
Description
Discord username (optional)
No response
Describe the solution you'd like?
I'd like to be able to copy the command and output (aka Copy Both) from a block, and paste it into e.g. Slack, so that it is clear it is a shell command and resulting output — the normal convention for this is to preface the command with a prompt marker, $, e.g.:
$ echo hello
hello
Important feature because I basically do it all the time.
Is your feature request related to a problem? Please describe.
Currently, if you use Copy Both, you get the command output, but without any prompt marker, e.g.:
echo hello
hello
It's not 100% clear/doesn't follow convention, that echo hello was entered at the shell prompt, and hello is the output.
Additional context
There are two workarounds:
-
Copy Both, paste into e.g. Slack, manually add
$to the front of the command
Pros: not that hard
Cons: manual effort -
Copy Prompt, paste, Copy Both, paste
Pros: includes original prompt
Cons: default prompt in Warp is a two-liner, many people have complex prompts, desired convention for showing examples is just a simple$
As a bonus, it would be super-ideal if Warp could preface the command with $ for a normal user, and # for root. This is also a widely-used convention on the web.
Addendum for clarity: Copy Command alone should still not preface with $ or #, because a) that is convention, b) if you're just copying the command it's often to paste and run, verbatim.
How important is this feature to you?
4
Warp Internal (ignore) - linear-label:770f6576-d6c0-4e4f-a259-fc64b5156087
None
- Dominant language
- Rust
- Stars
- 65.1k
- Forks
- 5.6k
- PR merge metrics
- PR metrics pending
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from warpdotdev/warp
-
area:agent area:window-tabs-panes enhancement needs-info os:mac repro:high triaged
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
warpdotdev/warp#15768 · 3 comments · 1 reaction ·
-
bug factory-auto-implement factory:revops-factory os:mac ready-to-implement repro:high triaged warp:auto-triage-review
Difficulty 1/5 Under an hour Newbie friendliness 90/100
warpdotdev/warp#15697 · 2 comments ·
-
area:editor-notebooks bug repro:high triaged warp:auto-triage-review warp:tracking
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
warpdotdev/warp#13949 · 3 comments ·
-
markdown_parser: unclosed `<u>` markers pair via the emphasis algorithm and delete surrounding text Openarea:editor-notebooks bug ready-to-implement repro:high triaged warp:auto-triage-review
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
warpdotdev/warp#12863 · 2 comments ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
warpdotdev/warp#11969 · 2 comments ·
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
kwakseongjae/auto-hwp#319 ·
-
area:cli bug filter-quality good first issue priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
bevyengine/bevy#25861 ·
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
enhancement remote
Difficulty 2/5 1-3 hours Newbie friendliness 68/100