Kitty快捷键

  • kitty_mod ctrl+shift

Clipboard

cmd+c copy_to_clipboard
cmd+v  paste_from_clipboard

kitty_mod+s  paste_from_selection
shift+insert paste_from_selection
kitty_mod+o  pass_selection_to_program

Scrolling

kitty_mod+up        scroll_line_up
kitty_mod+k         scroll_line_up
kitty_mod+down      scroll_line_down
kitty_mod+j         scroll_line_down
kitty_mod+page_up   scroll_page_up
kitty_mod+page_down scroll_page_down
kitty_mod+home      scroll_home
kitty_mod+end       scroll_end
kitty_mod+h         show_scrollback

Window

kitty_mod+enter new_window

kitty_mod+n new_os_window

cmd+w close_window
cmd+enter new_os_window_with_cwd
cmd+e hsplit
cmd+i vsplit

# 分割屏之间切换(helix中有冲突)
cmd+k next_window
cmd+j previous_window

kitty_mod+f move_window_forward
kitty_mod+b move_window_backward
kitty_mod+` move_window_to_top
kitty_mod+r start_resizing_window
kitty_mod+1 first_window
kitty_mod+2 second_window
kitty_mod+3 third_window
kitty_mod+4 fourth_window
kitty_mod+5 fifth_window
kitty_mod+6 sixth_window
kitty_mod+7 seventh_window
kitty_mod+8 eighth_window
kitty_mod+9 ninth_window
kitty_mod+0 tenth_window

Tab management

cmd+t     new_tab
kitty_mod+right next_tab
kitty_mod+left  previous_tab
kitty_mod+q     close_tab
kitty_mod+.     move_tab_forward
kitty_mod+,     move_tab_backward
kitty_mod+alt+t set_tab_title

Layout management

kitty_mod+l next_layout

Font sizes

kitty_mod+equal     change_font_size all +2.0
kitty_mod+minus     change_font_size all -2.0
kitty_mod+backspace change_font_size all 0

Select and act on visible text

kitty_mod+e // 在terminal中选择并打开url网页链接 #Open a currently visible URL using the keyboard. The program used to open the URL is specified in open_url_with.

kitty_mod+p>f // 在terminal中选择路径或者文件名,将其输入到terminal中.Select a path/filename and insert it into the terminal. Useful, forinstance to run git commands on a filename output from a previous git command.

kitty_mod+p>shift+f // Select a path/filename and open it with the default open program.

kitty_mod+p>l // Select a line of text and insert it into the terminal. Use for the output of things like: ls -1

kitty_mod+p>w // Select words and insert into terminal.

kitty_mod+p>h // Select something that looks like a hash and insert it into the terminal. Useful with git, which uses sha1 hashes to identify commits

kitty_mod+p>n // Select something that looks like filename:linenum and open it in vim at the specified line number.

Miscellaneous

kitty_mod+f11    toggle_fullscreen
kitty_mod+f10    toggle_maximized
kitty_mod+u      kitten unicode_input
kitty_mod+f2     edit_config_file
kitty_mod+escape kitty_shell window // Open the kitty shell in a new window/tab/overlay/os_window to control kitty using commands.
kitty_mod+a>m    set_background_opacity +0.1
kitty_mod+a>l    set_background_opacity -0.1
kitty_mod+a>1    set_background_opacity 1
kitty_mod+a>d    set_background_opacity default
kitty_mod+delete clear_terminal reset active
updatedupdated2024-12-222024-12-22