kitty: config updates

notable options that changed or were recently added to kitty and
needed to be ingegrated:
* scrollback_fill_enlarged_window yes
* scrollback_lines 500000
  scrollback has been limited to 500k lines, which, in practice is
  still too much
* confirm_os_window_close 1
* allow_hyperlinks ask
* tab_activity_symbol have been set to 🚦, cause why not
* per-tab zoom keybinding have been added
* tab title template have been edited to also include tab index number
* new url prefixes have been added
This commit is contained in:
surtur 2021-05-03 02:39:23 +02:00
parent 447e85b88f
commit 5fe9344396
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -185,7 +185,7 @@ cursor_stop_blinking_after 15.0
#: Scrollback {{{
scrollback_lines 10000000
scrollback_lines 500000
#: Number of lines of history to keep in memory for scrolling back.
#: Memory is allocated on demand. Negative numbers are (effectively)
@ -212,6 +212,11 @@ scrollback_lines 10000000
#: 2500 lines per megabyte at 100 chars per line. A value of zero or
#: less disables this feature. The maximum allowed size is 4GB.
scrollback_fill_enlarged_window yes
#: Fill new space with lines from the scrollback buffer after enlarging a
#: window.
# wheel_scroll_multiplier 5.0
#: Modify the amount scrolled by the mouse wheel. Note this is only
@ -255,11 +260,17 @@ open_url_modifiers kitty_mod
#: special value default means to use the operating system's default
#: URL handler.
url_prefixes http https file ftp ssh git irc
url_prefixes http https file ftp gemini irc gopher mailto news git ssh
#: The set of URL prefixes to look for when detecting a URL under the
#: mouse cursor.
detect_urls yes
#: Detect URLs under the mouse. Detected URLs are highlighted with an underline
#: and the mouse cursor becomes a hand over them. Even if this option is
#: disabled, URLs are still clickable.
copy_on_select no
#: Copy to clipboard or a private buffer on select. With this set to
@ -276,7 +287,7 @@ copy_on_select no
#: programs, including websites open in your browser can read the
#: contents of the system clipboard.
strip_trailing_spaces always
strip_trailing_spaces smart
#: Remove spaces at the end of lines when copying to clipboard. A
#: value of smart will do it when using normal selections, but not
@ -314,6 +325,16 @@ focus_follows_mouse yes
#: The shape of the mouse pointer when the program running in the
#: terminal grabs the mouse. Valid values are: arrow, beam and hand
default_pointer_shape beam
#: The default shape of the mouse pointer. Valid values are: arrow, beam and
#: hand
pointer_shape_when_dragging beam
#: The default shape of the mouse pointer when dragging across text. Valid
#: values are: arrow, beam and hand
#: }}}
#: Performance tuning {{{
@ -501,6 +522,13 @@ resize_in_steps yes
#: when resizing the OS window. Note that this does not currently work
#: on Wayland.
confirm_os_window_close 1
#: Ask for confirmation when closing an OS window or a tab that has at least
#: this number of kitty windows in it. A value of zero disables confirmation.
#: This confirmation also applies to requests to quit the entire application (all
#: OS windows, via the quit action).
#: }}}
#: Tab bar {{{
@ -513,6 +541,7 @@ tab_bar_margin_width 0.0
#: The margin to the left and right of the tab bar (in pts)
# tab_bar_style powerline
tab_bar_style fade
#: The tab bar style, can be one of: fade, separator, powerline, or
@ -548,7 +577,17 @@ tab_separator " "
#: The separator between tabs in the tab bar when using separator as
#: the tab_bar_style.
tab_title_template "{title}"
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, slanted, or round.
tab_activity_symbol 🚦
#: Some text or a unicode symbol to show on the tab if a window in the tab that
#: does not have focus has some activity.
tab_title_template "{index}:{title}"
#: A template to render the tab title. The default just renders the
#: title. If you wish to include the tab-index as well, use something
@ -864,6 +903,13 @@ editor vim
#: functionality is a security risk as it means that any program, even
#: one running on a remote server via SSH can read your clipboard.
allow_hyperlinks ask
#: Process hyperlink (OSC 8) escape sequences. If disabled OSC 8 escape
#: sequences are ignored. Otherwise they become clickable links, that you can
#: click by holding down ctrl+shift and clicking with the mouse. The special
#: value of ask means that kitty will ask before opening the link.
# term xterm-kitty
#: The value of the TERM environment variable to set. Changing this
@ -880,6 +926,14 @@ editor vim
#: OS specific tweaks {{{
wayland_titlebar_color system
#: Change the color of the kitty windows titlebar on Wayland systems with
#: client side window decorations such as GNOME. A value of system means to use
#: the default system color, a value of background means to use the background
#: color of the currently active window and finally you can use an arbitrary
#: color, such as #12af59 or red.
# macos_titlebar_color system
#: Change the color of the kitty window's titlebar on macOS. A value
@ -1183,6 +1237,9 @@ map kitty_mod+t new_tab
#: You can change the font size for all top-level kitty OS windows at
#: a time or only the current one.
map kitty_mod+alt+equal change_font_size current +2.0
map kitty_mod+alt+minus change_font_size current -2.0
map kitty_mod+alt+backspace change_font_size current 0
# map kitty_mod+equal change_font_size all +2.0
# map kitty_mod+minus change_font_size all -2.0
# map kitty_mod+backspace change_font_size all 0