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.28k stars 370 forks source link

Add an override method to highlight/copy text #1017

Open taranlu-houzz opened 2 years ago

taranlu-houzz commented 2 years ago

Discord username (optional)

No response

Describe the solution you'd like?

There are some combinations of fish, subshell, tmux, ssh, etc. that make it so that copying text to the system clipboard does not work. Other terminal emulators allow for an escape hatch key combination that lets the user highlight and copy what they want (e.g. for `kitty`, I can use `shift+<click and drag highlight>` to select some text and guarantee that it will be copied; `alacritty` has a vi based selection mode that is actually even better).

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

I am unable to copy text to the system clipboard in this specific situation:
- Run `fish` in a subshell (`warp` does not currently support `fish` abbreviations properly, so in order to get access to those, I just use a subshell, which means that everything I do happens in a single block until I exit the subshell).
- Connect to a `tmux` session on my machine.
- `ssh` to a remote server and connect to a `tmux` session on that machine.
- I am then unable to copy text from the terminal by highlighting it.

Additional context

No response

elviskahoro commented 2 years ago

This wuold be great for ergonomics! Thanks again @taranlu-houzz