fish-shell icon indicating copy to clipboard operation
fish-shell copied to clipboard

Copy and paste?

Open AuthorOfTheSurf opened this issue 11 years ago • 4 comments

I am trying to copy text out of the shell e.g. program output. I can't figure out how to do this with fish, the documentation only mentions Ctrl + K which cuts from the command line prompt. I am used to using Ctrl + Shift + C and Ctrl + Shift + P to copy and paste in text bash. The paste hotkey works in fish, however copying doesn't.

AuthorOfTheSurf avatar Apr 18 '15 00:04 AuthorOfTheSurf

Try Command + C for copy and Command + V for paste =)

eightjean avatar Apr 18 '15 06:04 eightjean

If you have xsel installed, Ctrl+K and similar will set your X clipboard with the killed text.

Cmd+C etc are handled by your terminal emulator, so that's not a fish feature.

On Sat, 18 Apr 2015 08:48 Zavadsky Pasha [email protected] wrote:

Sorry Command + V for paste =)

— Reply to this email directly or view it on GitHub https://github.com/fish-shell/fish-shell/issues/2029#issuecomment-94135411 .

snnw avatar Apr 18 '15 09:04 snnw

Control-shift-C copying is a feature of your terminal app, not your shell, so it should behave identically in fish and bash. I'm not sure what to suggest except "try again" :) In either case there's nothing fish can do here. Thanks for reporting this though.

ridiculousfish avatar Apr 20 '15 05:04 ridiculousfish

Cmd+C etc are handled by your terminal emulator, so that's not a fish feature.

Control-shift-C copying is a feature of your terminal app, not your shell, so it should behave identically in fish and bash. I'm not sure what to suggest except "try again" :) In either case there's nothing fish can do here. Thanks for reporting this though.

I just installed fish on my personal computer that is running the same OS as my work computer and Ctrl+Shift+C (and V) works in fish mode. So the good old try again was the solution. It really seemed like fish had changed the hotkey on me when I was at work on Friday. Thanks!

AuthorOfTheSurf avatar Apr 20 '15 17:04 AuthorOfTheSurf