16

Kitty is a terminal for Linux. How do I copy and paste with it. CTRL+c does not work? And there is no option on right click. Right-click also doesn't work for copy.

6 Answers 6

18

Kitty

You need to use a capital C. To copy and paste in

  1. Select text
  2. Press CTRL+SHIFT+C
  3. Paste with SHIFT+INSERT in any app.

There is no method to copy with the cursor.

Vim

Because things like VIM keep coming up. If you have Neovim installed (which is basically better vim). You can easily copy to your Xorg/Wayland buffer by selecting into the + buffer with "+y. This has the advantage of skipping over things that should not be copied, like hints,

8
  • Is there a way to set/get clipboard data by command in the console (e.g. shell script)?
    – MrCalvin
    May 11, 2020 at 8:51
  • @MrCalvin Yes, try xclip Apr 26, 2021 at 9:21
  • 1
    Also, TIL: kitty +kitten clipboard Apr 26, 2021 at 10:03
  • 1
    Try to paste with CTRL+SHIFT+V. It works for me Jun 20, 2021 at 18:51
  • 1
    @walnut_salami I updated with a note about neovim. Jul 2, 2022 at 19:16
6

We can also configure the feature copy on select which will copy selected text into clipboard without pressing a shortcut:

copy_on_select yes

To paste the text from clipboard, you can use the middle mouse click or set up the shortcut you want, for example:

map cmd+c        copy_to_clipboard
map cmd+v        paste_from_clipboard
map shift+insert paste_from_clipboard
1

You can configure the keyboard shortcuts.

To make Ctrl+C copy, you would put this in your kitty.conf:

map ctrl+c        copy_to_clipboard
0

Also note this very nice Kitten plug-in https://github.com/yurikhan/kitty_grab that lets you copy with the keyboard.

0

From the comments in Kitty's default configurations:

#::  There is also a copy_or_interrupt action that can be optionally
#::  mapped to Ctrl+c. It will copy only if there is a selection and
#::  send an interrupt otherwise. Similarly,
#::  copy_and_clear_or_interrupt will copy and clear the selection or

This does what I need:

map ctrl+c copy_and_clear_or_interrupt
map ctrl+v paste_from_clipboard
New contributor
Ian Mutawa is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
-2

The accepted answer says:

You need to use a capital C. To copy and paste in

  1. Select text
  2. Press Ctrl+Shift+C
  3. Paste with Shift+Insert in any app.

There is no method to copy with the cursor.

Right and wrong, there is a method for the mouse.  Shift+RightMouseClick works also to paste.

1
  • and what that method to copy with the mouse would be? Mar 17, 2022 at 11:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.