|
|
|
@ -1,9 +1,8 @@
|
|
|
|
|
# vim:fileencoding=utf-8:foldmethod=marker:ft=kitty
|
|
|
|
|
# vim:fileencoding=utf-8:foldmethod=marker
|
|
|
|
|
|
|
|
|
|
# map f1 show_kitty_env_vars
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
kitty_mod cmd
|
|
|
|
|
kitty_mod alt
|
|
|
|
|
#: Special modifier key alias for default shortcuts. You can change
|
|
|
|
|
#: the value of this option to alter all default shortcuts that use
|
|
|
|
|
#: kitty_mod.
|
|
|
|
@ -11,14 +10,13 @@ kitty_mod cmd
|
|
|
|
|
clear_all_shortcuts yes
|
|
|
|
|
#: Remove all shortcut definitions up to this point. Useful, for
|
|
|
|
|
#: instance, to remove the default shortcuts.
|
|
|
|
|
map ctrl+shift+f5 load_config_file
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# kitty-scrollback.nvim Kitten alias
|
|
|
|
|
action_alias kitty_scrollback_nvim kitten $HOME/.local/share/nvim/lazy/kitty-scrollback.nvim/python/kitty_scrollback_nvim.py
|
|
|
|
|
|
|
|
|
|
# include ./themes/themes/OneDark.conf
|
|
|
|
|
# include ~/.local/share/nvim/lazy/tokyonight.nvim/extras/kitty/tokyonight_day.conf
|
|
|
|
|
include ~/.local/share/nvim/lazy/kanagawa.nvim/extras/kanagawa_light.conf
|
|
|
|
|
include ~/.local/share/nvim/lazy/tokyonight.nvim/extras/kitty/tokyonight_day.conf
|
|
|
|
|
#include ./tokyonight.conf
|
|
|
|
|
#Fonts {{{
|
|
|
|
|
|
|
|
|
@ -27,12 +25,6 @@ include ~/.local/share/nvim/lazy/kanagawa.nvim/extras/kanagawa_light.conf
|
|
|
|
|
#: characters.
|
|
|
|
|
|
|
|
|
|
font_family FantasqueSansM Nerd Font Mono
|
|
|
|
|
|
|
|
|
|
# font_family Fira Code
|
|
|
|
|
# bold_font Fira Code Bold
|
|
|
|
|
# italic_font Maple Mono Italic
|
|
|
|
|
# bold_italic_font Maple Mono BoldItalic
|
|
|
|
|
|
|
|
|
|
# font_family MesloLGS NF
|
|
|
|
|
# font_family monospace
|
|
|
|
|
# bold_font auto
|
|
|
|
@ -52,7 +44,7 @@ font_family FantasqueSansM Nerd Font Mono
|
|
|
|
|
#: italic_font Operator Mono Book Italic
|
|
|
|
|
#: bold_italic_font Operator Mono Medium Italic
|
|
|
|
|
|
|
|
|
|
font_size 18.0
|
|
|
|
|
font_size 13.0
|
|
|
|
|
|
|
|
|
|
#: Font size (in pts)
|
|
|
|
|
|
|
|
|
@ -78,8 +70,6 @@ font_size 18.0
|
|
|
|
|
|
|
|
|
|
#: E.g. symbol_map U+E0A0-U+E0A3,U+E0C0-U+E0C7 PowerlineSymbols
|
|
|
|
|
|
|
|
|
|
symbol_map U+23FB-U+23FE,U+2665,U+26A1,U+2B58,U+E000-U+E00A,U+E0A0-U+E0A3,U+E0B0-U+E0C8,U+E0CA,U+E0CC-U+E0D2,U+E0D4,U+E200-U+E2A9,U+E300-U+E3E3,U+E5FA-U+E634,U+E700-U+E7C5,U+EA60-U+EBEB,U+F000-U+F2E0,U+F300-U+F32F,U+F400-U+F4A9,U+F500-U+F8FF Symbols Nerd Font Mono
|
|
|
|
|
|
|
|
|
|
#: Map the specified Unicode codepoints to a particular font. Useful
|
|
|
|
|
#: if you need special rendering for some symbols, such as for
|
|
|
|
|
#: Powerline. Avoids the need for patched fonts. Each Unicode code
|
|
|
|
@ -104,10 +94,16 @@ symbol_map U+23FB-U+23FE,U+2665,U+26A1,U+2B58,U+E000-U+E00A,U+E0A0-U+E0A3,U+E0B0
|
|
|
|
|
|
|
|
|
|
#: narrow_symbols codepoints [optionally the number of cells]
|
|
|
|
|
|
|
|
|
|
# always, cursor, never
|
|
|
|
|
disable_ligatures cursor
|
|
|
|
|
# disable_ligatures never
|
|
|
|
|
|
|
|
|
|
#: Choose how you want to handle multi-character ligatures. The
|
|
|
|
|
#: default is to always render them. You can tell kitty to not render
|
|
|
|
|
#: them when the cursor is over them by using cursor to make editing
|
|
|
|
|
#: easier, or have kitty never render them at all by using always, if
|
|
|
|
|
#: you don't like them. The ligature strategy can be set per-window
|
|
|
|
|
#: either using the kitty remote control facility or by defining
|
|
|
|
|
#: shortcuts for it in kitty.conf, for example::
|
|
|
|
|
|
|
|
|
|
#: or you can set shortcuts
|
|
|
|
|
#: map alt+1 disable_ligatures_in active always
|
|
|
|
|
#: map alt+2 disable_ligatures_in all never
|
|
|
|
|
#: map alt+3 disable_ligatures_in tab cursor
|
|
|
|
@ -182,9 +178,9 @@ disable_ligatures cursor
|
|
|
|
|
#: suffix px for pixels or % for percentage of original value. No
|
|
|
|
|
#: suffix means use pts. For example::
|
|
|
|
|
|
|
|
|
|
modify_font underline_position 1
|
|
|
|
|
# modify_font underline_thickness 150%
|
|
|
|
|
# modify_font strikethrough_position 2px
|
|
|
|
|
#: modify_font underline_position -2
|
|
|
|
|
#: modify_font underline_thickness 150%
|
|
|
|
|
#: modify_font strikethrough_position 2px
|
|
|
|
|
|
|
|
|
|
#: Additionally, you can modify the size of the cell in which each
|
|
|
|
|
#: font glyph is rendered and the baseline at which the glyph is
|
|
|
|
@ -274,7 +270,7 @@ modify_font underline_position 1
|
|
|
|
|
|
|
|
|
|
#: Cursor customization {{{
|
|
|
|
|
|
|
|
|
|
cursor none
|
|
|
|
|
# cursor #cccccc
|
|
|
|
|
|
|
|
|
|
#: Default cursor color. If set to the special value none the cursor
|
|
|
|
|
#: will be rendered with a "reverse video" effect. It's color will be
|
|
|
|
@ -284,7 +280,7 @@ cursor none
|
|
|
|
|
#: precedence. Also, the cursor colors are modified if the cell
|
|
|
|
|
#: background and foreground colors have very low contrast.
|
|
|
|
|
|
|
|
|
|
# cursor_text_color background
|
|
|
|
|
# cursor_text_color #111111
|
|
|
|
|
|
|
|
|
|
#: The color of text under the cursor. If you want it rendered with
|
|
|
|
|
#: the background color of the cell underneath instead, use the
|
|
|
|
@ -302,7 +298,7 @@ cursor none
|
|
|
|
|
#: the cursor shape to beam at shell prompts. You can avoid this by
|
|
|
|
|
#: setting shell_integration to no-cursor.
|
|
|
|
|
|
|
|
|
|
cursor_beam_thickness 1.0
|
|
|
|
|
# cursor_beam_thickness 1.5
|
|
|
|
|
|
|
|
|
|
#: The thickness of the beam cursor (in pts).
|
|
|
|
|
|
|
|
|
@ -337,7 +333,6 @@ cursor_beam_thickness 1.0
|
|
|
|
|
#: ones.
|
|
|
|
|
|
|
|
|
|
# scrollback_pager less --chop-long-lines --RAW-CONTROL-CHARS +INPUT_LINE_NUMBER
|
|
|
|
|
scrollback_pager nvim +"source $HOME/.config/kitty/vi-mode.lua"
|
|
|
|
|
|
|
|
|
|
#: Program with which to view scrollback in a new window. The
|
|
|
|
|
#: scrollback buffer is passed as STDIN to this program. If you change
|
|
|
|
@ -349,7 +344,7 @@ scrollback_pager nvim +"source $HOME/.config/kitty/vi-mode.lua"
|
|
|
|
|
#: set to 0 if there is no cursor, for example, when showing the last
|
|
|
|
|
#: command output.
|
|
|
|
|
|
|
|
|
|
scrollback_pager_history_size 10
|
|
|
|
|
# scrollback_pager_history_size 0
|
|
|
|
|
|
|
|
|
|
#: Separate scrollback history size (in MB), used only for browsing
|
|
|
|
|
#: the scrollback buffer with pager. This separate buffer is not
|
|
|
|
@ -395,7 +390,7 @@ scrollback_pager_history_size 10
|
|
|
|
|
|
|
|
|
|
#: Mouse {{{
|
|
|
|
|
|
|
|
|
|
mouse_hide_wait -1
|
|
|
|
|
# mouse_hide_wait 3.0
|
|
|
|
|
|
|
|
|
|
#: Hide mouse cursor after the specified number of seconds of the
|
|
|
|
|
#: mouse not being used. Set to zero to disable mouse cursor hiding.
|
|
|
|
@ -405,12 +400,12 @@ mouse_hide_wait -1
|
|
|
|
|
#: much effort.
|
|
|
|
|
|
|
|
|
|
# url_color #0087bd
|
|
|
|
|
url_style straight
|
|
|
|
|
# url_style curly
|
|
|
|
|
|
|
|
|
|
#: The color and style for highlighting URLs on mouse-over. url_style
|
|
|
|
|
#: can be one of: none, straight, double, curly, dotted, dashed.
|
|
|
|
|
|
|
|
|
|
open_url_with default
|
|
|
|
|
# open_url_with default
|
|
|
|
|
|
|
|
|
|
#: The program to open clicked URLs. The special value default with
|
|
|
|
|
#: first look for any URL handlers defined via the open_actions
|
|
|
|
@ -442,7 +437,7 @@ open_url_with default
|
|
|
|
|
#: specified using backslash escapes, to specify a backslash use a
|
|
|
|
|
#: double backslash.
|
|
|
|
|
|
|
|
|
|
show_hyperlink_targets no
|
|
|
|
|
# show_hyperlink_targets no
|
|
|
|
|
|
|
|
|
|
#: When the mouse hovers over a terminal hyperlink, show the actual
|
|
|
|
|
#: URL that will be activated when the hyperlink is clicked.
|
|
|
|
@ -457,7 +452,7 @@ show_hyperlink_targets no
|
|
|
|
|
#: value to/from always will only affect text subsequently received by
|
|
|
|
|
#: kitty.
|
|
|
|
|
|
|
|
|
|
copy_on_select clipboard
|
|
|
|
|
# copy_on_select no
|
|
|
|
|
|
|
|
|
|
#: Copy to clipboard or a private buffer on select. With this set to
|
|
|
|
|
#: clipboard, selecting text with the mouse will cause the text to be
|
|
|
|
@ -474,7 +469,7 @@ copy_on_select clipboard
|
|
|
|
|
#: programs, including websites open in your browser can read the
|
|
|
|
|
#: contents of the system clipboard.
|
|
|
|
|
|
|
|
|
|
paste_actions quote-urls-at-prompt,confirm,confirm-if-large
|
|
|
|
|
# paste_actions quote-urls-at-prompt,confirm
|
|
|
|
|
|
|
|
|
|
#: A comma separated list of actions to take when pasting text into
|
|
|
|
|
#: the terminal. The supported paste actions are:
|
|
|
|
@ -526,7 +521,7 @@ paste_actions quote-urls-at-prompt,confirm,confirm-if-large
|
|
|
|
|
#: clicks (in seconds). Negative numbers will use the system default
|
|
|
|
|
#: instead, if available, or fallback to 0.5.
|
|
|
|
|
|
|
|
|
|
focus_follows_mouse no
|
|
|
|
|
# focus_follows_mouse no
|
|
|
|
|
|
|
|
|
|
#: Set the active window to the window under the mouse when moving the
|
|
|
|
|
#: mouse around. On macOS, this will also cause the OS Window under
|
|
|
|
@ -592,7 +587,7 @@ focus_follows_mouse no
|
|
|
|
|
|
|
|
|
|
#: Click the link under the mouse or move the cursor
|
|
|
|
|
|
|
|
|
|
mouse_map left click ungrabbed mouse_handle_click selection link prompt
|
|
|
|
|
# mouse_map left click ungrabbed mouse_handle_click selection link prompt
|
|
|
|
|
|
|
|
|
|
#:: First check for a selection and if one exists do nothing. Then
|
|
|
|
|
#:: check for a link under the mouse cursor and if one exists, click
|
|
|
|
@ -601,9 +596,6 @@ mouse_map left click ungrabbed mouse_handle_click selection link prompt
|
|
|
|
|
#:: that this requires shell integration
|
|
|
|
|
#:: <https://sw.kovidgoyal.net/kitty/shell-integration/> to work.
|
|
|
|
|
|
|
|
|
|
# select the output of a command by right clicking the mouse on the output
|
|
|
|
|
mouse_map right press ungrabbed mouse_select_command_output
|
|
|
|
|
|
|
|
|
|
#: Click the link under the mouse or move the cursor even when grabbed
|
|
|
|
|
|
|
|
|
|
# mouse_map shift+left click grabbed,ungrabbed mouse_handle_click selection link prompt
|
|
|
|
@ -701,8 +693,6 @@ mouse_map right press ungrabbed mouse_select_command_output
|
|
|
|
|
|
|
|
|
|
# mouse_map ctrl+shift+right press ungrabbed mouse_show_command_output
|
|
|
|
|
|
|
|
|
|
mouse_map kitty_mod+right press ungrabbed combine : mouse_select_command_output : kitty_scrollback_nvim --config ksb_builtin_last_visited_cmd_output
|
|
|
|
|
|
|
|
|
|
#:: Requires shell integration
|
|
|
|
|
#:: <https://sw.kovidgoyal.net/kitty/shell-integration/> to work.
|
|
|
|
|
|
|
|
|
@ -743,12 +733,13 @@ mouse_map kitty_mod+right press ungrabbed combine : mouse_select_command_output
|
|
|
|
|
|
|
|
|
|
#: Terminal bell {{{
|
|
|
|
|
|
|
|
|
|
enable_audio_bell no
|
|
|
|
|
# enable_audio_bell yes
|
|
|
|
|
|
|
|
|
|
#: The audio bell. Useful to disable it in environments that require
|
|
|
|
|
#: silence.
|
|
|
|
|
|
|
|
|
|
visual_bell_duration 0.05
|
|
|
|
|
# visual_bell_duration 0.0
|
|
|
|
|
|
|
|
|
|
#: The visual bell duration (in seconds). Flash the screen when a bell
|
|
|
|
|
#: occurs for the specified number of seconds. Set to zero to disable.
|
|
|
|
|
|
|
|
|
@ -810,8 +801,8 @@ visual_bell_duration 0.05
|
|
|
|
|
#: suffix of "c" on the width/height values to have them interpreted
|
|
|
|
|
#: as number of cells instead of pixels.
|
|
|
|
|
|
|
|
|
|
# enabled_layouts tall, fat:bias=75, splits:split_axis=vertical, grid, vertical, horizontal, stack
|
|
|
|
|
enabled_layouts fat:bias=75, tall, splits:split_axis=vertical, grid, stack
|
|
|
|
|
# enabled_layouts *
|
|
|
|
|
|
|
|
|
|
#: The enabled window layouts. A comma separated list of layout names.
|
|
|
|
|
#: The special value all means all layouts. The first listed layout
|
|
|
|
|
#: will be used as the startup layout. Default configuration is all
|
|
|
|
@ -841,14 +832,14 @@ enabled_layouts fat:bias=75, tall, splits:split_axis=vertical, grid, stack
|
|
|
|
|
#: that setting a non-zero window_margin_width overrides this and
|
|
|
|
|
#: causes all borders to be drawn.
|
|
|
|
|
|
|
|
|
|
# window_margin_width 0 12
|
|
|
|
|
# window_margin_width 0
|
|
|
|
|
|
|
|
|
|
#: The window margin (in pts) (blank area outside the border). A
|
|
|
|
|
#: single value sets all four sides. Two values set the vertical and
|
|
|
|
|
#: horizontal sides. Three values set top, horizontal and bottom. Four
|
|
|
|
|
#: values set top, right, bottom and left.
|
|
|
|
|
|
|
|
|
|
single_window_margin_width 0 2
|
|
|
|
|
# single_window_margin_width -1
|
|
|
|
|
|
|
|
|
|
#: The window margin to use when only a single window is visible (in
|
|
|
|
|
#: pts). Negative values will cause the value of window_margin_width
|
|
|
|
@ -894,12 +885,12 @@ single_window_margin_width 0 2
|
|
|
|
|
#: The color for the border of inactive windows in which a bell has
|
|
|
|
|
#: occurred.
|
|
|
|
|
|
|
|
|
|
inactive_text_alpha 0.7
|
|
|
|
|
# inactive_text_alpha 1.0
|
|
|
|
|
|
|
|
|
|
#: Fade the text in inactive windows by the specified amount (a number
|
|
|
|
|
#: between zero and one, with zero being fully faded).
|
|
|
|
|
|
|
|
|
|
hide_window_decorations no
|
|
|
|
|
# hide_window_decorations no
|
|
|
|
|
|
|
|
|
|
#: Hide the window decorations (title-bar and window borders) with
|
|
|
|
|
#: yes. On macOS, titlebar-only and titlebar-and-corners can be used
|
|
|
|
@ -953,7 +944,7 @@ hide_window_decorations no
|
|
|
|
|
#: used to keep the margins as small as possible when resizing the OS
|
|
|
|
|
#: window. Note that this does not currently work on Wayland.
|
|
|
|
|
|
|
|
|
|
visual_window_select_characters hjklfdsagtyrueiwoqpbnvmcxz
|
|
|
|
|
# visual_window_select_characters 1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ
|
|
|
|
|
|
|
|
|
|
#: The list of characters for visual window selection. For example,
|
|
|
|
|
#: for selecting a window to focus on with focus_visible_window. The
|
|
|
|
@ -995,7 +986,7 @@ visual_window_select_characters hjklfdsagtyrueiwoqpbnvmcxz
|
|
|
|
|
#: The second number is the margin between the tab bar and the
|
|
|
|
|
#: contents of the current tab.
|
|
|
|
|
|
|
|
|
|
tab_bar_style custom
|
|
|
|
|
# tab_bar_style fade
|
|
|
|
|
|
|
|
|
|
#: The tab bar style, can be one of:
|
|
|
|
|
|
|
|
|
@ -1021,12 +1012,12 @@ tab_bar_style custom
|
|
|
|
|
#: a mapping for the select_tab action which presents you with a list of
|
|
|
|
|
#: tabs and allows for easy switching to a tab.
|
|
|
|
|
|
|
|
|
|
tab_bar_align left
|
|
|
|
|
# tab_bar_align left
|
|
|
|
|
|
|
|
|
|
#: The horizontal alignment of the tab bar, can be one of: left,
|
|
|
|
|
#: center, right.
|
|
|
|
|
|
|
|
|
|
tab_bar_min_tabs 1
|
|
|
|
|
# tab_bar_min_tabs 2
|
|
|
|
|
|
|
|
|
|
#: The minimum number of tabs that must exist before the tab bar is
|
|
|
|
|
#: shown.
|
|
|
|
@ -1053,7 +1044,7 @@ tab_bar_min_tabs 1
|
|
|
|
|
#: The separator between tabs in the tab bar when using separator as
|
|
|
|
|
#: the tab_bar_style.
|
|
|
|
|
|
|
|
|
|
tab_powerline_style slanted
|
|
|
|
|
# tab_powerline_style angled
|
|
|
|
|
|
|
|
|
|
#: The powerline separator style between tabs in the tab bar when
|
|
|
|
|
#: using powerline as the tab_bar_style, can be one of: angled,
|
|
|
|
@ -1066,13 +1057,12 @@ tab_powerline_style slanted
|
|
|
|
|
#: leading or trailing spaces, surround the text with quotes. See
|
|
|
|
|
#: tab_title_template for how this is rendered.
|
|
|
|
|
|
|
|
|
|
tab_title_max_length 20
|
|
|
|
|
# tab_title_max_length 0
|
|
|
|
|
|
|
|
|
|
#: The maximum number of cells that can be used to render the text in
|
|
|
|
|
#: a tab. A value of zero means that no limit is applied.
|
|
|
|
|
|
|
|
|
|
# tab_title_template "{fmt.fg.red}{bell_symbol}{activity_symbol}{fmt.fg.tab}{index}:{title}"
|
|
|
|
|
tab_title_template "{title}{fmt.bold}{' ' if num_windows > 1 and layout_name == 'stack' else ''}"
|
|
|
|
|
# tab_title_template "{fmt.fg.red}{bell_symbol}{activity_symbol}{fmt.fg.tab}{title}"
|
|
|
|
|
|
|
|
|
|
#: A template to render the tab title. The default just renders the
|
|
|
|
|
#: title with optional symbols for bell and activity. If you wish to
|
|
|
|
@ -1113,8 +1103,8 @@ tab_title_template "{title}{fmt.bold}{' ' if num_windows > 1 and layout_name
|
|
|
|
|
#: Note that for backward compatibility, if {bell_symbol} or
|
|
|
|
|
#: {activity_symbol} are not present in the template, they are
|
|
|
|
|
#: prepended to it.
|
|
|
|
|
# active_tab_title_template "{" " if layout_name == "grid" else " " if layout_name == "stack" else " " if layout_name == "fat" else " " if layout_name == "tall" else " "}{fmt.fg.tab}{sub.index}:{title}"
|
|
|
|
|
active_tab_title_template "{fmt.fg.tab}{index}:{title}"
|
|
|
|
|
|
|
|
|
|
# active_tab_title_template none
|
|
|
|
|
|
|
|
|
|
#: Template to use for active tabs. If not specified falls back to
|
|
|
|
|
#: tab_title_template.
|
|
|
|
@ -1149,7 +1139,7 @@ active_tab_title_template "{fmt.fg.tab}{index}:{title}"
|
|
|
|
|
|
|
|
|
|
#: The foreground and background colors.
|
|
|
|
|
|
|
|
|
|
background_opacity 1
|
|
|
|
|
# background_opacity 1.0
|
|
|
|
|
|
|
|
|
|
#: The opacity of the background. A number between zero and one, where
|
|
|
|
|
#: one is opaque and zero is fully transparent. This will only work if
|
|
|
|
@ -1185,6 +1175,8 @@ background_opacity 1
|
|
|
|
|
#: platform implements it, so use with care. Currently supported on
|
|
|
|
|
#: macOS and KDE under X11.
|
|
|
|
|
|
|
|
|
|
# background_image none
|
|
|
|
|
|
|
|
|
|
#: Path to a background image. Must be in PNG format.
|
|
|
|
|
|
|
|
|
|
# background_image_layout tiled
|
|
|
|
@ -1199,14 +1191,14 @@ background_opacity 1
|
|
|
|
|
#: When background image is scaled, whether linear interpolation
|
|
|
|
|
#: should be used.
|
|
|
|
|
|
|
|
|
|
dynamic_background_opacity yes
|
|
|
|
|
# dynamic_background_opacity no
|
|
|
|
|
|
|
|
|
|
#: Allow changing of the background_opacity dynamically, using either
|
|
|
|
|
#: keyboard shortcuts (increase_background_opacity and
|
|
|
|
|
#: decrease_background_opacity) or the remote control facility.
|
|
|
|
|
#: Changing this option by reloading the config is not supported.
|
|
|
|
|
|
|
|
|
|
# background_tint 1
|
|
|
|
|
# background_tint 0.0
|
|
|
|
|
|
|
|
|
|
#: How much to tint the background image by the background color. This
|
|
|
|
|
#: option makes it easier to read the text. Tinting is done using the
|
|
|
|
@ -1380,8 +1372,7 @@ dynamic_background_opacity yes
|
|
|
|
|
#: See rc_custom_auth <https://sw.kovidgoyal.net/kitty/remote-
|
|
|
|
|
#: control/#rc-custom-auth> for details.
|
|
|
|
|
|
|
|
|
|
allow_remote_control socket-only
|
|
|
|
|
listen_on unix:/tmp/mykitty
|
|
|
|
|
# allow_remote_control no
|
|
|
|
|
|
|
|
|
|
#: Allow other programs to control kitty. If you turn this on, other
|
|
|
|
|
#: programs can control all aspects of kitty, including sending text
|
|
|
|
@ -1468,7 +1459,7 @@ listen_on unix:/tmp/mykitty
|
|
|
|
|
#: exe_search_path +/some/appended/path
|
|
|
|
|
#: exe_search_path -/some/excluded/path
|
|
|
|
|
|
|
|
|
|
update_check_interval 0
|
|
|
|
|
# update_check_interval 24
|
|
|
|
|
|
|
|
|
|
#: The interval to periodically check if an update to kitty is
|
|
|
|
|
#: available (in hours). If an update is found, a system notification
|
|
|
|
@ -1478,7 +1469,7 @@ update_check_interval 0
|
|
|
|
|
#: builds do not do update checking. Changing this option by reloading
|
|
|
|
|
#: the config is not supported.
|
|
|
|
|
|
|
|
|
|
startup_session sessions/example.session
|
|
|
|
|
# startup_session none
|
|
|
|
|
|
|
|
|
|
#: Path to a session file to use for all kitty instances. Can be
|
|
|
|
|
#: overridden by using the kitty --session =none command line option
|
|
|
|
@ -1630,7 +1621,7 @@ startup_session sessions/example.session
|
|
|
|
|
#: background_opacity. If you want to use both, you are probably
|
|
|
|
|
#: better off just hiding the titlebar with hide_window_decorations.
|
|
|
|
|
|
|
|
|
|
macos_option_as_alt left
|
|
|
|
|
# macos_option_as_alt no
|
|
|
|
|
|
|
|
|
|
#: Use the Option key as an Alt key on macOS. With this set to no,
|
|
|
|
|
#: kitty will use the macOS native Option+Key to enter Unicode
|
|
|
|
@ -1676,7 +1667,7 @@ macos_option_as_alt left
|
|
|
|
|
#: Use the macOS traditional full-screen transition, that is faster,
|
|
|
|
|
#: but less pretty.
|
|
|
|
|
|
|
|
|
|
macos_show_window_title_in none
|
|
|
|
|
# macos_show_window_title_in all
|
|
|
|
|
|
|
|
|
|
#: Control where the window title is displayed on macOS. A value of
|
|
|
|
|
#: window will show the title of the currently active window at the
|
|
|
|
@ -1790,13 +1781,22 @@ macos_show_window_title_in none
|
|
|
|
|
#: The full list of actions that can be mapped to key presses is
|
|
|
|
|
#: available here <https://sw.kovidgoyal.net/kitty/actions/>.
|
|
|
|
|
|
|
|
|
|
# kitty_mod ctrl+alt+shift
|
|
|
|
|
#: Special modifier key alias for default shortcuts. You can change
|
|
|
|
|
#: the value of this option to alter all default shortcuts that use
|
|
|
|
|
#: kitty_mod.
|
|
|
|
|
#default was ctrl+shift. I changed it because it was masking
|
|
|
|
|
# my tmux keybindings with ctrl shift.
|
|
|
|
|
|
|
|
|
|
# clear_all_shortcuts yes
|
|
|
|
|
|
|
|
|
|
#: Remove all shortcut definitions up to this point. Useful, for
|
|
|
|
|
#: instance, to remove the default shortcuts.
|
|
|
|
|
# I just get rid of all shortcuts because I don't use a single one of them
|
|
|
|
|
|
|
|
|
|
# action_alias
|
|
|
|
|
|
|
|
|
|
#: E.g. action_alias launch_tab launch --type=tab --cwd=current
|
|
|
|
|
action_alias launch_tab launch --type=tab --cwd=current
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#: Define action aliases to avoid repeating the same options in
|
|
|
|
|
#: multiple mappings. Aliases can be defined for any action and will
|
|
|
|
@ -1804,7 +1804,7 @@ action_alias launch_tab launch --type=tab --cwd=current
|
|
|
|
|
#: create mappings to launch a new tab in the current working
|
|
|
|
|
#: directory without duplication::
|
|
|
|
|
|
|
|
|
|
map f1 launch_tab ${EDITOR}
|
|
|
|
|
#: map f1 launch_tab vim
|
|
|
|
|
#: map f2 launch_tab emacs
|
|
|
|
|
|
|
|
|
|
#: Similarly, to alias kitten invocation::
|
|
|
|
@ -1826,8 +1826,8 @@ map f1 launch_tab ${EDITOR}
|
|
|
|
|
|
|
|
|
|
#: Copy to clipboard
|
|
|
|
|
|
|
|
|
|
map ctrl+c copy_and_clear_or_interrupt
|
|
|
|
|
map cmd+c copy_to_clipboard
|
|
|
|
|
# map kitty_mod+c copy_to_clipboard
|
|
|
|
|
# map cmd+c copy_to_clipboard
|
|
|
|
|
|
|
|
|
|
#:: 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
|
|
|
|
@ -1837,8 +1837,8 @@ map cmd+c copy_to_clipboard
|
|
|
|
|
|
|
|
|
|
#: Paste from clipboard
|
|
|
|
|
|
|
|
|
|
map kitty_mod+v paste_from_clipboard
|
|
|
|
|
map cmd+v paste_from_clipboard
|
|
|
|
|
# map kitty_mod+v paste_from_clipboard
|
|
|
|
|
# map cmd+v paste_from_clipboard
|
|
|
|
|
|
|
|
|
|
#: Paste from selection
|
|
|
|
|
|
|
|
|
@ -1869,42 +1869,40 @@ map cmd+v paste_from_clipboard
|
|
|
|
|
#: Scroll line up
|
|
|
|
|
|
|
|
|
|
# map kitty_mod+up scroll_line_up
|
|
|
|
|
map kitty_mod+k scroll_line_up
|
|
|
|
|
# map kitty_mod+k scroll_line_up
|
|
|
|
|
# map opt+cmd+page_up scroll_line_up
|
|
|
|
|
# map cmd+up scroll_line_up
|
|
|
|
|
|
|
|
|
|
#: Scroll line down
|
|
|
|
|
|
|
|
|
|
# map kitty_mod+down scroll_line_down
|
|
|
|
|
map kitty_mod+j scroll_line_down
|
|
|
|
|
# map kitty_mod+j scroll_line_down
|
|
|
|
|
# map opt+cmd+page_down scroll_line_down
|
|
|
|
|
# map cmd+down scroll_line_down
|
|
|
|
|
|
|
|
|
|
#: Scroll page up
|
|
|
|
|
|
|
|
|
|
map kitty_mod+u scroll_page_up
|
|
|
|
|
map kitty_mod+page_up scroll_page_up
|
|
|
|
|
# map kitty_mod+page_up scroll_page_up
|
|
|
|
|
# map cmd+page_up scroll_page_up
|
|
|
|
|
|
|
|
|
|
#: Scroll page down
|
|
|
|
|
|
|
|
|
|
map kitty_mod+d scroll_page_down
|
|
|
|
|
map kitty_mod+page_down scroll_page_down
|
|
|
|
|
# map kitty_mod+page_down scroll_page_down
|
|
|
|
|
# map cmd+page_down scroll_page_down
|
|
|
|
|
|
|
|
|
|
#: Scroll to top
|
|
|
|
|
|
|
|
|
|
map kitty_mod+home scroll_home
|
|
|
|
|
# map kitty_mod+home scroll_home
|
|
|
|
|
# map cmd+home scroll_home
|
|
|
|
|
|
|
|
|
|
#: Scroll to bottom
|
|
|
|
|
|
|
|
|
|
map kitty_mod+end scroll_end
|
|
|
|
|
# map kitty_mod+end scroll_end
|
|
|
|
|
# map cmd+end scroll_end
|
|
|
|
|
|
|
|
|
|
#: Scroll to previous shell prompt
|
|
|
|
|
|
|
|
|
|
map kitty_mod+z scroll_to_prompt -1
|
|
|
|
|
# map kitty_mod+z scroll_to_prompt -1
|
|
|
|
|
|
|
|
|
|
#:: Use a parameter of 0 for scroll_to_prompt to scroll to the last
|
|
|
|
|
#:: jumped to or the last clicked position. Requires shell
|
|
|
|
@ -1913,16 +1911,12 @@ map kitty_mod+z scroll_to_prompt -1
|
|
|
|
|
|
|
|
|
|
#: Scroll to next shell prompt
|
|
|
|
|
|
|
|
|
|
map kitty_mod+x scroll_to_prompt 1
|
|
|
|
|
# map kitty_mod+x scroll_to_prompt 1
|
|
|
|
|
|
|
|
|
|
#: Browse scrollback buffer in pager
|
|
|
|
|
|
|
|
|
|
# map kitty_mod+h show_scrollback
|
|
|
|
|
|
|
|
|
|
# Browse scrollback buffer in nvim
|
|
|
|
|
map kitty_mod+h kitty_scrollback_nvim
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#:: You can pipe the contents of the current screen and history
|
|
|
|
|
#:: buffer as STDIN to an arbitrary program using launch --stdin-
|
|
|
|
|
#:: source. For example, the following opens the scrollback buffer in
|
|
|
|
@ -1936,9 +1930,6 @@ map kitty_mod+h kitty_scrollback_nvim
|
|
|
|
|
#: Browse output of the last shell command in pager
|
|
|
|
|
|
|
|
|
|
# map kitty_mod+g show_last_command_output
|
|
|
|
|
# Browse output of the last shell command in nvim
|
|
|
|
|
map kitty_mod+g kitty_scrollback_nvim --config ksb_builtin_last_cmd_output
|
|
|
|
|
# Show clicked command output in nvim
|
|
|
|
|
|
|
|
|
|
#:: You can also define additional shortcuts to get the command
|
|
|
|
|
#:: output. For example, to get the first command output on screen::
|
|
|
|
@ -1954,7 +1945,7 @@ map kitty_mod+g kitty_scrollback_nvim --config ksb_builtin_last_cmd_output
|
|
|
|
|
#:: using the launch action. For example, the following opens the
|
|
|
|
|
#:: output in less in an overlay window::
|
|
|
|
|
|
|
|
|
|
# map f1 launch --stdin-source=@last_cmd_output --stdin-add-formatting --type=overlay less +G -R
|
|
|
|
|
#:: map f1 launch --stdin-source=@last_cmd_output --stdin-add-formatting --type=overlay less +G -R
|
|
|
|
|
|
|
|
|
|
#:: To get the output of the first command on the screen, use
|
|
|
|
|
#:: @first_cmd_output_on_screen. To get the output of the last jumped
|
|
|
|
@ -1969,8 +1960,7 @@ map kitty_mod+g kitty_scrollback_nvim --config ksb_builtin_last_cmd_output
|
|
|
|
|
|
|
|
|
|
#: New window
|
|
|
|
|
|
|
|
|
|
map kitty_mod+c launch --cwd=current --location=vsplit
|
|
|
|
|
map kitty_mod+shift+c launch --cwd=current --location=hsplit
|
|
|
|
|
# map kitty_mod+enter new_window
|
|
|
|
|
# map cmd+enter new_window
|
|
|
|
|
|
|
|
|
|
#:: You can open a new kitty window running an arbitrary program, for
|
|
|
|
@ -1993,8 +1983,8 @@ map kitty_mod+shift+c launch --cwd=current --location=hsplit
|
|
|
|
|
#:: You can open a new window next to the currently active window or
|
|
|
|
|
#:: as the first window, with::
|
|
|
|
|
|
|
|
|
|
## new window beside
|
|
|
|
|
map kitty_mod+f launch --location=first
|
|
|
|
|
#:: map ctrl+n launch --location=neighbor
|
|
|
|
|
#:: map ctrl+f launch --location=first
|
|
|
|
|
|
|
|
|
|
#:: For more details, see launch
|
|
|
|
|
#:: <https://sw.kovidgoyal.net/kitty/launch/>.
|
|
|
|
@ -2010,7 +2000,7 @@ map kitty_mod+f launch --location=first
|
|
|
|
|
|
|
|
|
|
#: Close window
|
|
|
|
|
|
|
|
|
|
map kitty_mod+q close_window
|
|
|
|
|
# map kitty_mod+w close_window
|
|
|
|
|
# map shift+cmd+d close_window
|
|
|
|
|
|
|
|
|
|
#: Next window
|
|
|
|
@ -2023,28 +2013,18 @@ map kitty_mod+q close_window
|
|
|
|
|
|
|
|
|
|
#: Move window forward
|
|
|
|
|
|
|
|
|
|
map kitty_mod+. move_window_forward
|
|
|
|
|
# map kitty_mod+f move_window_forward
|
|
|
|
|
|
|
|
|
|
#: Move window backward
|
|
|
|
|
|
|
|
|
|
map kitty_mod+, move_window_backward
|
|
|
|
|
# map kitty_mod+b move_window_backward
|
|
|
|
|
|
|
|
|
|
#: Make window mAin window
|
|
|
|
|
map kitty_mod+a move_window_to_top
|
|
|
|
|
#: Move window to top
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
map ctrl+j kitten pass_keys.py neighboring_window bottom ctrl+j
|
|
|
|
|
map ctrl+k kitten pass_keys.py neighboring_window top ctrl+k
|
|
|
|
|
map ctrl+h kitten pass_keys.py neighboring_window left ctrl+h
|
|
|
|
|
map ctrl+l kitten pass_keys.py neighboring_window right ctrl+l
|
|
|
|
|
|
|
|
|
|
# the 3 here is the resize amount, adjust as needed
|
|
|
|
|
map kitty_mod+ctrl+j kitten pass_keys.py relative_resize down 3 alt+j
|
|
|
|
|
map kitty_mod+ctrl+k kitten pass_keys.py relative_resize up 3 alt+k
|
|
|
|
|
map kitty_mod+ctrl+h kitten pass_keys.py relative_resize left 3 alt+h
|
|
|
|
|
map kitty_mod+ctrl+l kitten pass_keys.py relative_resize right 3 alt+l
|
|
|
|
|
# map kitty_mod+` move_window_to_top
|
|
|
|
|
|
|
|
|
|
#: Start resizing window
|
|
|
|
|
|
|
|
|
|
# map kitty_mod+r start_resizing_window
|
|
|
|
|
# map cmd+r start_resizing_window
|
|
|
|
|
|
|
|
|
@ -2099,7 +2079,7 @@ map kitty_mod+ctrl+l kitten pass_keys.py relative_resize right 3 alt+l
|
|
|
|
|
|
|
|
|
|
#: Visually select and focus window
|
|
|
|
|
|
|
|
|
|
map kitty_mod+s focus_visible_window
|
|
|
|
|
# map kitty_mod+f7 focus_visible_window
|
|
|
|
|
|
|
|
|
|
#:: Display overlay numbers and alphabets on the window, and switch
|
|
|
|
|
#:: the focus to the window when you press the key. When there are
|
|
|
|
@ -2109,7 +2089,7 @@ map kitty_mod+s focus_visible_window
|
|
|
|
|
|
|
|
|
|
#: Visually swap window with another
|
|
|
|
|
|
|
|
|
|
map kitty_mod+ctrl+s swap_with_window
|
|
|
|
|
# map kitty_mod+f8 swap_with_window
|
|
|
|
|
|
|
|
|
|
#:: Works like focus_visible_window above, but swaps the window.
|
|
|
|
|
|
|
|
|
@ -2119,28 +2099,24 @@ map kitty_mod+ctrl+s swap_with_window
|
|
|
|
|
|
|
|
|
|
#: Next tab
|
|
|
|
|
|
|
|
|
|
map kitty_mod+n next_tab
|
|
|
|
|
# map kitty_mod+right next_tab
|
|
|
|
|
# map shift+cmd+] next_tab
|
|
|
|
|
# map ctrl+tab next_tab
|
|
|
|
|
|
|
|
|
|
#: Previous tab
|
|
|
|
|
|
|
|
|
|
map kitty_mod+p previous_tab
|
|
|
|
|
# map kitty_mod+left previous_tab
|
|
|
|
|
# map shift+cmd+[ previous_tab
|
|
|
|
|
# map ctrl+shift+tab previous_tab
|
|
|
|
|
map kitty_mod+shift+t new_tab
|
|
|
|
|
map kitty_mod+shift+t new_tab
|
|
|
|
|
|
|
|
|
|
#: New tab
|
|
|
|
|
|
|
|
|
|
map kitty_mod+t new_tab !neighbor
|
|
|
|
|
# map kitty_mod+t new_tab
|
|
|
|
|
# map cmd+t new_tab
|
|
|
|
|
|
|
|
|
|
#: Close tab
|
|
|
|
|
|
|
|
|
|
map kitty_mod+w close_tab
|
|
|
|
|
# map kitty_mod+q close_tab
|
|
|
|
|
# map cmd+w close_tab
|
|
|
|
|
|
|
|
|
|
#: Close OS window
|
|
|
|
@ -2149,15 +2125,15 @@ map kitty_mod+w close_tab
|
|
|
|
|
|
|
|
|
|
#: Move tab forward
|
|
|
|
|
|
|
|
|
|
map kitty_mod+shift+. move_tab_forward
|
|
|
|
|
# map kitty_mod+. move_tab_forward
|
|
|
|
|
|
|
|
|
|
#: Move tab backward
|
|
|
|
|
|
|
|
|
|
map kitty_mod+shift+, move_tab_backward
|
|
|
|
|
# map kitty_mod+, move_tab_backward
|
|
|
|
|
|
|
|
|
|
#: Set tab title
|
|
|
|
|
|
|
|
|
|
map kitty_mod+r set_tab_title
|
|
|
|
|
# map kitty_mod+alt+t set_tab_title
|
|
|
|
|
# map shift+cmd+i set_tab_title
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -2165,27 +2141,8 @@ map kitty_mod+r set_tab_title
|
|
|
|
|
#: the first tab, 2 the second tab and -1 being the previously active
|
|
|
|
|
#: tab, and any number larger than the last tab being the last tab::
|
|
|
|
|
|
|
|
|
|
map ctrl+s>' goto_tab -1
|
|
|
|
|
map kitty_mod+tab goto_tab -1
|
|
|
|
|
map kitty_mod+1 goto_tab 1
|
|
|
|
|
map kitty_mod+2 goto_tab 2
|
|
|
|
|
map kitty_mod+3 goto_tab 3
|
|
|
|
|
map kitty_mod+4 goto_tab 4
|
|
|
|
|
map kitty_mod+5 goto_tab 5
|
|
|
|
|
map kitty_mod+6 goto_tab 6
|
|
|
|
|
map kitty_mod+7 goto_tab 7
|
|
|
|
|
map kitty_mod+8 goto_tab 8
|
|
|
|
|
map kitty_mod+9 goto_tab 9
|
|
|
|
|
|
|
|
|
|
# map kitty_mod+ctrl+q goto_tab 1
|
|
|
|
|
# map kitty_mod+ctrl+w goto_tab 2
|
|
|
|
|
# map kitty_mod+ctrl+e goto_tab 3
|
|
|
|
|
# map kitty_mod+ctrl+r goto_tab 4
|
|
|
|
|
# map kitty_mod+ctrl+t goto_tab 5
|
|
|
|
|
# map kitty_mod+ctrl+y goto_tab 6
|
|
|
|
|
# map kitty_mod+ctrl+u goto_tab 7
|
|
|
|
|
# map kitty_mod+ctrl+i goto_tab 8
|
|
|
|
|
# map kitty_mod+ctrl+o goto_tab 9
|
|
|
|
|
#: map ctrl+alt+1 goto_tab 1
|
|
|
|
|
#: map ctrl+alt+2 goto_tab 2
|
|
|
|
|
|
|
|
|
|
#: Just as with new_window above, you can also pass the name of
|
|
|
|
|
#: arbitrary commands to run when using new_tab and new_tab_with_cwd.
|
|
|
|
@ -2193,7 +2150,6 @@ map kitty_mod+9 goto_tab 9
|
|
|
|
|
#: rather than at the end of the tabs list, use::
|
|
|
|
|
|
|
|
|
|
#: map ctrl+t new_tab !neighbor [optional cmd to run]
|
|
|
|
|
map kitty_mod+shift+t new_tab
|
|
|
|
|
#: }}}
|
|
|
|
|
|
|
|
|
|
#: Layout management {{{
|
|
|
|
@ -2201,7 +2157,6 @@ map kitty_mod+shift+t new_tab
|
|
|
|
|
#: Next layout
|
|
|
|
|
|
|
|
|
|
# map kitty_mod+l next_layout
|
|
|
|
|
map kitty_mod+space next_layout
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#: You can also create shortcuts to switch to specific layouts::
|
|
|
|
@ -2212,8 +2167,6 @@ map kitty_mod+space next_layout
|
|
|
|
|
#: Similarly, to switch back to the previous layout::
|
|
|
|
|
|
|
|
|
|
#: map ctrl+alt+p last_used_layout
|
|
|
|
|
map kitty_mod+shift+space last_used_layout
|
|
|
|
|
map kitty_mod+ctrl+space last_used_layout
|
|
|
|
|
|
|
|
|
|
#: There is also a toggle_layout action that switches to the named
|
|
|
|
|
#: layout or back to the previous layout if in the named layout.
|
|
|
|
@ -2221,7 +2174,6 @@ map kitty_mod+ctrl+space last_used_layout
|
|
|
|
|
#: stack layout::
|
|
|
|
|
|
|
|
|
|
#: map ctrl+alt+z toggle_layout stack
|
|
|
|
|
map kitty_mod+m toggle_layout stack
|
|
|
|
|
#: }}}
|
|
|
|
|
|
|
|
|
|
#: Font sizes {{{
|
|
|
|
@ -2231,24 +2183,23 @@ map kitty_mod+m toggle_layout stack
|
|
|
|
|
|
|
|
|
|
#: Increase font size
|
|
|
|
|
|
|
|
|
|
map kitty_mod+equal change_font_size all +0.5
|
|
|
|
|
map kitty_mod+plus change_font_size all +0.5
|
|
|
|
|
map kitty_mod+kp_add change_font_size all +0.5
|
|
|
|
|
# map kitty_mod+equal change_font_size all +2.0
|
|
|
|
|
# map kitty_mod+plus change_font_size all +2.0
|
|
|
|
|
# map kitty_mod+kp_add change_font_size all +2.0
|
|
|
|
|
# map cmd+plus change_font_size all +2.0
|
|
|
|
|
# map cmd+equal change_font_size all +2.0
|
|
|
|
|
# map shift+cmd+equal change_font_size all +2.0
|
|
|
|
|
|
|
|
|
|
#: Decrease font size
|
|
|
|
|
|
|
|
|
|
map kitty_mod+minus change_font_size all -0.5
|
|
|
|
|
map kitty_mod+kp_subtract change_font_size all -0.5
|
|
|
|
|
# map kitty_mod+minus change_font_size all -2.0
|
|
|
|
|
# map kitty_mod+kp_subtract change_font_size all -2.0
|
|
|
|
|
# map cmd+minus change_font_size all -2.0
|
|
|
|
|
# map shift+cmd+minus change_font_size all -2.0
|
|
|
|
|
|
|
|
|
|
#: Reset font size
|
|
|
|
|
|
|
|
|
|
map kitty_mod+backspace change_font_size all 0
|
|
|
|
|
map kitty_mod+0 change_font_size all 0
|
|
|
|
|
# map kitty_mod+backspace change_font_size all 0
|
|
|
|
|
# map cmd+0 change_font_size all 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -2270,30 +2221,28 @@ map kitty_mod+0 change_font_size all 0
|
|
|
|
|
|
|
|
|
|
#: Open URL
|
|
|
|
|
|
|
|
|
|
map kitty_mod+e open_url_with_hints
|
|
|
|
|
# map kitty_mod+e open_url_with_hints
|
|
|
|
|
|
|
|
|
|
#:: Open a currently visible URL using the keyboard. The program used
|
|
|
|
|
#:: to open the URL is specified in open_url_with.
|
|
|
|
|
|
|
|
|
|
#: Insert selected path
|
|
|
|
|
|
|
|
|
|
# map kitty_mod+p>f kitten hints --type path --alphabet abcdefghijklmnopqrstuvwxyz1234567890 --program -
|
|
|
|
|
map kitty_mod+i>f kitten hints --type path --alphabet hjklfdsagtyrueiwoqpbnvmcxz1234567890 --program -
|
|
|
|
|
# map kitty_mod+p>f kitten hints --type path --program -
|
|
|
|
|
|
|
|
|
|
#:: Select a path/filename and insert it into the terminal. Useful,
|
|
|
|
|
#:: for instance to run git commands on a filename output from a
|
|
|
|
|
#:: previous git command.
|
|
|
|
|
|
|
|
|
|
#: Open selected path
|
|
|
|
|
|
|
|
|
|
# map kitty_mod+p>shift+f kitten hints --type path
|
|
|
|
|
map kitty_mod+o>f kitten hints --type path
|
|
|
|
|
|
|
|
|
|
#:: Select a path/filename and open it with the default open program.
|
|
|
|
|
|
|
|
|
|
#: Insert selected line
|
|
|
|
|
|
|
|
|
|
# map kitty_mod+p>l kitten hints --type line --program -
|
|
|
|
|
map kitty_mod+i>l kitten hints --type line --program -
|
|
|
|
|
|
|
|
|
|
#:: Select a line of text and insert it into the terminal. Useful for
|
|
|
|
|
#:: the output of things like: `ls -1`.
|
|
|
|
@ -2301,14 +2250,12 @@ map kitty_mod+i>l kitten hints --type line --program -
|
|
|
|
|
#: Insert selected word
|
|
|
|
|
|
|
|
|
|
# map kitty_mod+p>w kitten hints --type word --program -
|
|
|
|
|
map kitty_mod+i>w kitten hints --type word --program -
|
|
|
|
|
|
|
|
|
|
#:: Select words and insert into terminal.
|
|
|
|
|
|
|
|
|
|
#: yank selected hash
|
|
|
|
|
map kitty_mod+y>h kitten hints --type hash --program @
|
|
|
|
|
#: insert selected hash
|
|
|
|
|
map kitty_mod+i>h kitten hints --type hash --program -
|
|
|
|
|
#: Insert selected hash
|
|
|
|
|
|
|
|
|
|
# map kitty_mod+p>h kitten hints --type hash --program -
|
|
|
|
|
|
|
|
|
|
#:: Select something that looks like a hash and insert it into the
|
|
|
|
|
#:: terminal. Useful with git, which uses SHA1 hashes to identify
|
|
|
|
@ -2317,7 +2264,6 @@ map kitty_mod+i>h kitten hints --type hash --program -
|
|
|
|
|
#: Open the selected file at the selected line
|
|
|
|
|
|
|
|
|
|
# map kitty_mod+p>n kitten hints --type linenum
|
|
|
|
|
map kitty_mod+o>n kitten hints --type linenum
|
|
|
|
|
|
|
|
|
|
#:: Select something that looks like filename:linenum and open it in
|
|
|
|
|
#:: vim at the specified line number.
|
|
|
|
@ -2325,8 +2271,6 @@ map kitty_mod+o>n kitten hints --type linenum
|
|
|
|
|
#: Open the selected hyperlink
|
|
|
|
|
|
|
|
|
|
# map kitty_mod+p>y kitten hints --type hyperlink
|
|
|
|
|
map kitty_mod+o>h kitten hints --type hyperlink
|
|
|
|
|
map kitty_mod+o>l kitten hints --type hyperlink
|
|
|
|
|
|
|
|
|
|
#:: Select a hyperlink (i.e. a URL that has been marked as such by
|
|
|
|
|
#:: the terminal program, for example, by `ls --hyperlink=auto`).
|
|
|
|
@ -2359,7 +2303,6 @@ map kitty_mod+o>l kitten hints --type hyperlink
|
|
|
|
|
#: Unicode input
|
|
|
|
|
|
|
|
|
|
# map kitty_mod+u kitten unicode_input
|
|
|
|
|
map kitty_mod+shift+u kitten unicode_input
|
|
|
|
|
# map ctrl+cmd+space kitten unicode_input
|
|
|
|
|
|
|
|
|
|
#: Edit config file
|
|
|
|
@ -2369,36 +2312,30 @@ map kitty_mod+shift+u kitten unicode_input
|
|
|
|
|
|
|
|
|
|
#: Open the kitty command shell
|
|
|
|
|
|
|
|
|
|
map kitty_mod+escape kitty_shell window
|
|
|
|
|
# map kitty_mod+escape kitty_shell window
|
|
|
|
|
|
|
|
|
|
#:: Open the kitty shell in a new window / tab / overlay / os_window
|
|
|
|
|
#:: to control kitty using commands.
|
|
|
|
|
|
|
|
|
|
#: Increase background opacity
|
|
|
|
|
|
|
|
|
|
map kitty_mod+ctrl+i set_background_opacity +0.1
|
|
|
|
|
# map kitty_mod+a>m set_background_opacity +0.1
|
|
|
|
|
|
|
|
|
|
#: Decrease background opacity
|
|
|
|
|
|
|
|
|
|
map kitty_mod+ctrl+d set_background_opacity -0.1
|
|
|
|
|
# map kitty_mod+a>l set_background_opacity -0.1
|
|
|
|
|
|
|
|
|
|
#: Make background fully opaque
|
|
|
|
|
|
|
|
|
|
map kitty_mod+ctrl+f set_background_opacity 1
|
|
|
|
|
# map kitty_mod+a>1 set_background_opacity 1
|
|
|
|
|
|
|
|
|
|
#: Reset background opacity
|
|
|
|
|
|
|
|
|
|
map kitty_mod+ctrl+r set_background_opacity default
|
|
|
|
|
# map kitty_mod+a>d set_background_opacity default
|
|
|
|
|
|
|
|
|
|
#: Reset the terminal
|
|
|
|
|
|
|
|
|
|
# map kitty_mod+delete clear_terminal reset active
|
|
|
|
|
map kitty_mod+delete clear_terminal reset active
|
|
|
|
|
map kitty_mod+backspace clear_terminal reset active
|
|
|
|
|
# map opt+cmd+r clear_terminal reset active
|
|
|
|
|
|
|
|
|
|
#:: You can create shortcuts to clear/reset the terminal. For
|
|
|
|
@ -2456,7 +2393,7 @@ map kitty_mod+backspace clear_terminal reset active
|
|
|
|
|
|
|
|
|
|
#: Reload kitty.conf
|
|
|
|
|
|
|
|
|
|
map kitty_mod+f5 load_config_file
|
|
|
|
|
# map kitty_mod+f5 load_config_file
|
|
|
|
|
# map ctrl+cmd+, load_config_file
|
|
|
|
|
|
|
|
|
|
#:: Reload kitty.conf, applying any changes since the last time it
|
|
|
|
@ -2482,8 +2419,6 @@ map kitty_mod+f5 load_config_file
|
|
|
|
|
#: Send arbitrary text on key presses
|
|
|
|
|
|
|
|
|
|
#:: E.g. map ctrl+shift+alt+h send_text all Hello World
|
|
|
|
|
#send ctrl+l with kitty mod
|
|
|
|
|
map kitty_mod+l send_text application \f
|
|
|
|
|
|
|
|
|
|
#:: You can tell kitty to send arbitrary (UTF-8) encoded text to the
|
|
|
|
|
#:: client program when pressing specified shortcut keys. For
|
|
|
|
@ -2539,4 +2474,3 @@ map kitty_mod+l send_text application \f
|
|
|
|
|
|
|
|
|
|
#: }}}
|
|
|
|
|
|
|
|
|
|
map kitty_mod+b launch --allow-remote-control kitty +kitten broadcast --match-tab state:focused
|
|
|
|
|