0% found this document useful (0 votes)
621 views2 pages

Kitty Terminal Cheatsheet

Uploaded by

jeralax396
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
621 views2 pages

Kitty Terminal Cheatsheet

Uploaded by

jeralax396
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Kitty Terminal Cheatsheet (get kitty at https://sw.kovidgoyal.

net/kitty/) Source of text: kitty documentation

Default shortcuts Shell integration

Scrolling
Action Shortcut

Action Shortcut View output of last command crtl+shift+g


Prev/next prompt in scrollback crtl+shift+z / crtl+shitft+x
Scroll line up ctrl+shift+up (also ⌥+⌘+⇞ and ⌘+↑ on macOS)
Scroll line down ctrl+shift+down (also ⌥+⌘+⇟ and ⌘+↓ on macOS)
Scroll page up ctrl+shift+page_up (also ⌘+⇞ on macOS) Windows management
Scroll page down ctrl+shift+page_down (also ⌘+⇟ on macOS)
Scroll to top ctrl+shift+home (also ⌘+↖ on macOS)
Scroll to bottom ctrl+shift+end (also ⌘+↘ on macOS)
Action Shortcut
New window ctrl+shift+enter (also ⌘+↩ on macOS)
Tabs management Switch to next layout ctrl+shift+l
New OS window ctrl+shift+n (also ⌘+n on macOS)
Close window ctrl+shift+w (also ⇧+⌘+d on macOS)
Action Shortcut Next window ctrl+shift+]
Previous window ctrl+shift+[
New tab ctrl+shift+t (also ⌘+t on macOS) Move window forward ctrl+shift+f
Close tab ctrl+shift+q (also ⌘+w on macOS) Move window backward ctrl+shift+b
Next tab ctrl+shift+right (also ^+⇥ and ⇧+⌘+] on macOS) Move window to top ctrl+shift+‘
Previous tab ctrl+shift+left (also ⇧+^+⇥ and ⇧+⌘+[ on macOS) Focus specific window ctrl+shift+1, ctrl+shift+2 … ctrl+shift+0 (also ⌘+1, ⌘+2 …
Move tab forward ctrl+shift+. ⌘+9 on macOS) (clockwise from the top-left)
Move tab backward ctrl+shift+,
Set tab title ctrl+shift+alt+t (also ⇧+⌘+i on macOS)
Mappable actions
Other keyboard shortcuts Copy/Paste

• copy_and_clear_or_interrupt: Copy the selected text from the active window to


Action Shortcut the clipboard and clear selection, if no selection, send Ctrl-C
• copy_or_interrupt: Copy the selected text from the active window to the clipboard,
Copy to clipboard ctrl+shift+c (also ⌘+c on macOS) if no selection, send Ctrl-C
Paste from clipboard ctrl+shift+v (also ⌘+v on macOS) • copy_to_clipboard: Copy the selected text from the active window to the clipboard.
Paste from selection ctrl+shift+s Default shortcut: ctrl+shift+c
Increase font size ctrl+shift+equal (also ⌘++ on macOS) • pass_selection_to_program: Pass selected text from active window to specified
Decrease font size ctrl+shift+minus (also ⌘+- on macOS) program. Default shortcut: ctrl+shift+o
Restore font size ctrl+shift+backspace (also ⌘+0 on macOS) • paste: Paste the specified text into the current window
Toggle fullscreen ctrl+shift+f11 (also ^+⌘+f on macOS) • show_scrollback: Show scrollback in a pager like less. Default shortcut:
Toggle maximized ctrl+shift+f10 ctrl+shift+h
Input unicode character ctrl+shift+u (also ^+⌘+space on macOS) • copy_to_buffer: Copy the selection from the active window to the specified buffer.
Click URL with keyboard ctrl+shift+e • paste_from_buffer: Paste from the specified buffer to the active window.
Reset the terminal ctrl+shift+delete • paste_from_clipboard: Paste from the clipboard to the active window. Default
Reload kitty.conf ctrl+shift+f5 (also ^+⌘+f5 on macOS) shortcut: ctrl+shift+v
Debug kitty.conf ctrl+shift+f6 (also ⌘+option+f6 on macOS) • paste_from_selection: Paste from the clipboard to the active window. Default
Pass selection to ctrl+shift+o shortcut: ctrl+shift+s
program
Edit kitty config file ctrl+shift+f2
View kitty docs in ctrl+shift+f1 Mouse actions
browser • mouse_click_url: Click the URL under the mouse
Open a kitty shell ctrl+shift+escape • mouse_click_url_or_select: Click the URL under the mouse only if the screen has
Increase/decrease ctrl+shift+a>m / crtl+shift+a>l no selection
background opacity • mouse_selection: Manipulate the selection based on the current mouse position
Full background opacity ctrl+shift+a>1 • paste_selection: Paste the current primary selection
Reset background ctrl+shift+a>d • paste_selection_or_clipboard: Paste the current primary selection or the clip-
opacity board if no selection is present

Cheatsheet repo: https://github.com/jmcastagnetto/kitty-terminal-cheatsheet 1 @jmcastagnetto (January 8, 2023)


Kitty Terminal Cheatsheet (get kitty at https://sw.kovidgoyal.net/kitty/) Source of text: kitty documentation

Scrolling Marks
• scroll_end: Scroll to the bottom of the scrollback buffer. Default shortcut: • remove_marker: Remove a previously created marker
ctrl+shift+end • scroll_to_mark: Scroll to the next or previous mark of the specified type
• scroll_home: Scroll to the top of the scrollback buffer. Default shortcut: • toggle_marker: Toggle the current marker on/off
ctrl+shift+home • create_marker: Create a new marker
• scroll_line_down: Scroll down by one line. Default shortcut: ctrl+shift+down
• scroll_line_up: Scroll up by one line. Default shortcut: ctrl+shift+up
• scroll_page_down: Scroll down by one page. Default shortcut: Tab management
ctrl+shift+page_down
• detach_tab: Detach a tab, moving it to another OS Window
• scroll_page_up: Scroll up by one page. Default shortcut: ctrl+shift+page_up
• goto_tab: Go to the specified tab, by number, starting with 1. Zero and negative
numbers go to previously active tabs
Windows management • move_tab_backward: Move the active tab backward. Default shortcut: ctrl+shift+,
• move_tab_forward: Move the active tab forward. Default shortcut: ctrl+shift+.
• close_other_windows_in_tab: Close all windows in the tab other than the currently • new_tab: Create a new tab. Default shortcut: ctrl+shift+t
active window. • new_tab_with_cwd: Create a new tab with working directory for the window in it
• close_window: Close the currently active window. Default shortcut: ctrl+shift+w set to the same as the active window.
• move_window: Move the window in the specified direction. Default shortcut: • next_tab: Make the next tab active. Default shortcut: ctrl+shift+right
ctrl+shift+b • previous_tab: Make the previous tab active. Default shortcut: ctrl+shift+left
• move_window_forward: Move active window forward (swap it with the next window). • select_tab: Interactively select a tab to switch to
Default shortcut: ctrl+shift+f • set_tab_title: Change the title of the active tab. Default shortcut:
• move_window_to_top: Move active window to the top (make it the first window). ctrl+shift+alt+t
Default shortcut: ctrl+shift+‘
• neighboring_window: Focus the neighboring window in the current tab. Default
shortcut: ctrl+shift+] Miscellaneous
• nth_window: Focus the nth window if positive or the previously active windows if
• send_text: Send the specified text to the active window. Default shortcut:
negative. Default shortcut: ctrl+shift+[
ctrl+shift+alt+h
• reset_window_sizes: Reset window sizes undoing any dynamic resizing of windows.
• signal_child: Send the specified SIGNAL to the foreground process in the active
• resize_window: Resize the active window by the specified amount.
window.
• change_font_size: Change the font size for the current or all OS Win-
• clear_terminal: Clear the terminal. Default shortcut: ctrl+shift+delete
dows. Default shortcuts using this action: ctrl+shift+minus, ctrl+shift+equal,
• combine: Combine multiple actions and map to a single keypress. The syntax is:
ctrl+shift+backspace
map key combine action1 action2 action3 …
• close_os_window: Close the currently active OS Window. Default shortcut:
• disable_ligatures_in: Turn on/off ligatures in the specified window.
shift+cmd+w
• discard_event: Discard this event completely ignoring it.
• detach_window: Detach a window, moving it to another tab or OS Window.
• edit_config_file: Edit the kitty.conf config file in your favorite text editor.
• new_os_window_with_cwd: New OS Window with the same working directory as the
Default shortcut: ctrl+shift+f2
currently active window.
• input_unicode_character: Input an arbitrary unicode character.
• new_window: Create a new window. Default shortcut: ctrl+shift+enter
• kitten: Run the specified kitten. Default shortcuts using this action:
• new_window_with_cwd: Create a new window with working directory same as that of
ctrl+shift+p>n, ctrl+shift+u, ctrl+shift+p>h, ctrl+shift+p>l, ctrl+shift+p>f,
the active window.
ctrl+shift+p>w, ctrl+shift+p>y, ctrl+shift+p>shift+f
• quit: Quit, closing all windows
• kitty_shell: Run the kitty shell to control kitty with commands. Default shortcut:
• set_background_opacity: Set the background opacity for the active OS Win-
ctrl+shift+escape
dow. Default shortcuts using this action: ctrl+shift+a>l, ctrl+shift+a>1,
• launch: Launch the specified program in a new window/tab/etc.
ctrl+shift+a>m, ctrl+shift+a>d
• load_config_file: Reload the config file. Default shortcut: ctrl+shift+f5
• start_resizing_window: Resize the active window interactively. Default shortcut:
• open_url_with_hints: Click a URL using the keyboard. Default shortcut:
ctrl+shift+r
ctrl+shift+e
• toggle_fullscreen: Toggle the fullscreen status of the active OS Window. Default
• remote_control: Run a remote control command.
shortcut: ctrl+shift+f11
• set_colors: Change colors in the specified windows.
• toggle_maximized: Toggle the maximized status of the active OS Window. Default
• show_kitty_env_vars: Show the environment variables that the kitty process sees.
shortcut: ctrl+shift+f10

Cheatsheet repo: https://github.com/jmcastagnetto/kitty-terminal-cheatsheet 2 @jmcastagnetto (January 8, 2023)

You might also like