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
Kitty
You need to use a capital C
. To copy and paste in
- Select text
- Press CTRL+SHIFT+C
- 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,
-
Is there a way to set/get clipboard data by command in the console (e.g. shell script)?– MrCalvinMay 11, 2020 at 8:51
-
-
1
-
1
-
1
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
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
Also note this very nice Kitten plug-in https://github.com/yurikhan/kitty_grab that lets you copy with the keyboard.
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
The accepted answer says:
You need to use a capital
C
. To copy and paste in
- Select text
- Press Ctrl+Shift+C
- 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.