kitty.conf 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320
  1. #: Fonts {{{
  2. #: kitty has very powerful font management. You can configure
  3. #: individual font faces and even specify special fonts for particular
  4. #: characters.
  5. # font_family monospace
  6. # bold_font auto
  7. # italic_font auto
  8. # bold_italic_font auto
  9. #: You can specify different fonts for the bold/italic/bold-italic
  10. #: variants. To get a full list of supported fonts use the `kitty
  11. #: list-fonts` command. By default they are derived automatically, by
  12. #: the OSes font system. Setting them manually is useful for font
  13. #: families that have many weight variants like Book, Medium, Thick,
  14. #: etc. For example::
  15. #: font_family Operator Mono Book
  16. #: bold_font Operator Mono Medium
  17. #: italic_font Operator Mono Book Italic
  18. #: bold_italic_font Operator Mono Medium Italic
  19. font_family FiraCode Nerd Font Mono
  20. #bold_font Fira Mono Bold Nerd Font Complete Mono
  21. #italic_font Fira Mono Medium Nerd Font Complete Mono
  22. #Fira Mono Regular Nerd Font Complete Mono
  23. font_size 11.0
  24. #: Font size (in pts)
  25. # force_ltr no
  26. #: kitty does not support BIDI (bidirectional text), however, for RTL
  27. #: scripts, words are automatically displayed in RTL. That is to say,
  28. #: in an RTL script, the words "HELLO WORLD" display in kitty as
  29. #: "WORLD HELLO", and if you try to select a substring of an RTL-
  30. #: shaped string, you will get the character that would be there had
  31. #: the the string been LTR. For example, assuming the Hebrew word
  32. #: ירושלים, selecting the character that on the screen appears to be ם
  33. #: actually writes into the selection buffer the character י.
  34. #: kitty's default behavior is useful in conjunction with a filter to
  35. #: reverse the word order, however, if you wish to manipulate RTL
  36. #: glyphs, it can be very challenging to work with, so this option is
  37. #: provided to turn it off. Furthermore, this option can be used with
  38. #: the command line program GNU FriBidi
  39. #: <https://github.com/fribidi/fribidi#executable> to get BIDI
  40. #: support, because it will force kitty to always treat the text as
  41. #: LTR, which FriBidi expects for terminals.
  42. # adjust_line_height 0
  43. # adjust_column_width 0
  44. #: Change the size of each character cell kitty renders. You can use
  45. #: either numbers, which are interpreted as pixels or percentages
  46. #: (number followed by %), which are interpreted as percentages of the
  47. #: unmodified values. You can use negative pixels or percentages less
  48. #: than 100% to reduce sizes (but this might cause rendering
  49. #: artifacts).
  50. symbol_map U+E0A0-U+E0A3,U+E0C0-U+E0C7 PowerlineSymbols
  51. #: Map the specified unicode codepoints to a particular font. Useful
  52. #: if you need special rendering for some symbols, such as for
  53. #: Powerline. Avoids the need for patched fonts. Each unicode code
  54. #: point is specified in the form U+<code point in hexadecimal>. You
  55. #: can specify multiple code points, separated by commas and ranges
  56. #: separated by hyphens. symbol_map itself can be specified multiple
  57. #: times. Syntax is::
  58. #: symbol_map codepoints Font Family Name
  59. # disable_ligatures never
  60. #: Choose how you want to handle multi-character ligatures. The
  61. #: default is to always render them. You can tell kitty to not render
  62. #: them when the cursor is over them by using cursor to make editing
  63. #: easier, or have kitty never render them at all by using always, if
  64. #: you don't like them. The ligature strategy can be set per-window
  65. #: either using the kitty remote control facility or by defining
  66. #: shortcuts for it in kitty.conf, for example::
  67. map alt+1 disable_ligatures_in active always
  68. map alt+2 disable_ligatures_in all never
  69. map alt+3 disable_ligatures_in tab cursor
  70. #: Note that this refers to programming ligatures, typically
  71. #: implemented using the calt OpenType feature. For disabling general
  72. #: ligatures, use the font_features setting.
  73. # font_features none
  74. #: Choose exactly which OpenType features to enable or disable. This
  75. #: is useful as some fonts might have features worthwhile in a
  76. #: terminal. For example, Fira Code Retina includes a discretionary
  77. #: feature, zero, which in that font changes the appearance of the
  78. #: zero (0), to make it more easily distinguishable from Ø. Fira Code
  79. #: Retina also includes other discretionary features known as
  80. #: Stylistic Sets which have the tags ss01 through ss20.
  81. #: Note that this code is indexed by PostScript name, and not the font
  82. #: family. This allows you to define very precise feature settings;
  83. #: e.g. you can disable a feature in the italic font but not in the
  84. #: regular font.
  85. #: On Linux, these are read from the FontConfig database first and
  86. #: then this, setting is applied, so they can be configured in a
  87. #: single, central place.
  88. #: To get the PostScript name for a font, use kitty + list-fonts
  89. #: --psnames:
  90. #: .. code-block:: sh
  91. #: $ kitty + list-fonts --psnames | grep Fira
  92. #: Fira Code
  93. #: Fira Code Bold (FiraCode-Bold)
  94. #: Fira Code Light (FiraCode-Light)
  95. #: Fira Code Medium (FiraCode-Medium)
  96. #: Fira Code Regular (FiraCode-Regular)
  97. #: Fira Code Retina (FiraCode-Retina)
  98. #: The part in brackets is the PostScript name.
  99. #: Enable alternate zero and oldstyle numerals::
  100. #: font_features FiraCode-Retina +zero +onum
  101. #: Enable only alternate zero::
  102. #: font_features FiraCode-Retina +zero
  103. #: Disable the normal ligatures, but keep the calt feature which (in
  104. #: this font) breaks up monotony::
  105. #: font_features TT2020StyleB-Regular -liga +calt
  106. #: In conjunction with force_ltr, you may want to disable Arabic
  107. #: shaping entirely, and only look at their isolated forms if they
  108. #: show up in a document. You can do this with e.g.::
  109. #: font_features UnifontMedium +isol -medi -fina -init
  110. # box_drawing_scale 0.001, 1, 1.5, 2
  111. #: Change the sizes of the lines used for the box drawing unicode
  112. #: characters These values are in pts. They will be scaled by the
  113. #: monitor DPI to arrive at a pixel value. There must be four values
  114. #: corresponding to thin, normal, thick, and very thick lines.
  115. #: }}}
  116. #: Cursor customization {{{
  117. # cursor #cccccc
  118. #: Default cursor color
  119. # cursor_text_color #111111
  120. #: Choose the color of text under the cursor. If you want it rendered
  121. #: with the background color of the cell underneath instead, use the
  122. #: special keyword: background
  123. # cursor_shape block
  124. #: The cursor shape can be one of (block, beam, underline)
  125. # cursor_beam_thickness 1.5
  126. #: Defines the thickness of the beam cursor (in pts)
  127. # cursor_underline_thickness 2.0
  128. #: Defines the thickness of the underline cursor (in pts)
  129. # cursor_blink_interval -1
  130. #: The interval (in seconds) at which to blink the cursor. Set to zero
  131. #: to disable blinking. Negative values mean use system default. Note
  132. #: that numbers smaller than repaint_delay will be limited to
  133. #: repaint_delay.
  134. # cursor_stop_blinking_after 15.0
  135. #: Stop blinking cursor after the specified number of seconds of
  136. #: keyboard inactivity. Set to zero to never stop blinking.
  137. #: }}}
  138. #: Scrollback {{{
  139. # scrollback_lines 2000
  140. #: Number of lines of history to keep in memory for scrolling back.
  141. #: Memory is allocated on demand. Negative numbers are (effectively)
  142. #: infinite scrollback. Note that using very large scrollback is not
  143. #: recommended as it can slow down performance of the terminal and
  144. #: also use large amounts of RAM. Instead, consider using
  145. #: scrollback_pager_history_size.
  146. # scrollback_pager less --chop-long-lines --RAW-CONTROL-CHARS +INPUT_LINE_NUMBER
  147. #: Program with which to view scrollback in a new window. The
  148. #: scrollback buffer is passed as STDIN to this program. If you change
  149. #: it, make sure the program you use can handle ANSI escape sequences
  150. #: for colors and text formatting. INPUT_LINE_NUMBER in the command
  151. #: line above will be replaced by an integer representing which line
  152. #: should be at the top of the screen. Similarly CURSOR_LINE and
  153. #: CURSOR_COLUMN will be replaced by the current cursor position.
  154. # scrollback_pager_history_size 0
  155. #: Separate scrollback history size, used only for browsing the
  156. #: scrollback buffer (in MB). This separate buffer is not available
  157. #: for interactive scrolling but will be piped to the pager program
  158. #: when viewing scrollback buffer in a separate window. The current
  159. #: implementation stores the data in UTF-8, so approximatively 10000
  160. #: lines per megabyte at 100 chars per line, for pure ASCII text,
  161. #: unformatted text. A value of zero or less disables this feature.
  162. #: The maximum allowed size is 4GB.
  163. # wheel_scroll_multiplier 5.0
  164. #: Modify the amount scrolled by the mouse wheel. Note this is only
  165. #: used for low precision scrolling devices, not for high precision
  166. #: scrolling on platforms such as macOS and Wayland. Use negative
  167. #: numbers to change scroll direction.
  168. # touch_scroll_multiplier 1.0
  169. #: Modify the amount scrolled by a touchpad. Note this is only used
  170. #: for high precision scrolling devices on platforms such as macOS and
  171. #: Wayland. Use negative numbers to change scroll direction.
  172. #: }}}
  173. #: Mouse {{{
  174. # mouse_hide_wait 3.0
  175. #: Hide mouse cursor after the specified number of seconds of the
  176. #: mouse not being used. Set to zero to disable mouse cursor hiding.
  177. #: Set to a negative value to hide the mouse cursor immediately when
  178. #: typing text. Disabled by default on macOS as getting it to work
  179. #: robustly with the ever-changing sea of bugs that is Cocoa is too
  180. #: much effort.
  181. # url_color #0087bd
  182. # url_style curly
  183. #: The color and style for highlighting URLs on mouse-over. url_style
  184. #: can be one of: none, single, double, curly
  185. # open_url_modifiers kitty_mod
  186. #: The modifier keys to press when clicking with the mouse on URLs to
  187. #: open the URL
  188. # open_url_with default
  189. #: The program with which to open URLs that are clicked on. The
  190. #: special value default means to use the operating system's default
  191. #: URL handler.
  192. # url_prefixes http https file ftp
  193. #: The set of URL prefixes to look for when detecting a URL under the
  194. #: mouse cursor.
  195. # detect_urls yes
  196. #: Detect URLs under the mouse. Detected URLs are highlighted with an
  197. #: underline and the mouse cursor becomes a hand over them. Even if
  198. #: this option is disabled, URLs are still clickable.
  199. # copy_on_select no
  200. #: Copy to clipboard or a private buffer on select. With this set to
  201. #: clipboard, simply selecting text with the mouse will cause the text
  202. #: to be copied to clipboard. Useful on platforms such as macOS that
  203. #: do not have the concept of primary selections. You can instead
  204. #: specify a name such as a1 to copy to a private kitty buffer
  205. #: instead. Map a shortcut with the paste_from_buffer action to paste
  206. #: from this private buffer. For example::
  207. #: map cmd+shift+v paste_from_buffer a1
  208. #: Note that copying to the clipboard is a security risk, as all
  209. #: programs, including websites open in your browser can read the
  210. #: contents of the system clipboard.
  211. # strip_trailing_spaces never
  212. #: Remove spaces at the end of lines when copying to clipboard. A
  213. #: value of smart will do it when using normal selections, but not
  214. #: rectangle selections. always will always do it.
  215. # rectangle_select_modifiers ctrl+alt
  216. #: The modifiers to use rectangular selection (i.e. to select text in
  217. #: a rectangular block with the mouse)
  218. # terminal_select_modifiers shift
  219. #: The modifiers to override mouse selection even when a terminal
  220. #: application has grabbed the mouse
  221. # select_by_word_characters @-./_~?&=%+#
  222. #: Characters considered part of a word when double clicking. In
  223. #: addition to these characters any character that is marked as an
  224. #: alphanumeric character in the unicode database will be matched.
  225. # click_interval -1.0
  226. #: The interval between successive clicks to detect double/triple
  227. #: clicks (in seconds). Negative numbers will use the system default
  228. #: instead, if available, or fallback to 0.5.
  229. # focus_follows_mouse no
  230. #: Set the active window to the window under the mouse when moving the
  231. #: mouse around
  232. # pointer_shape_when_grabbed arrow
  233. #: The shape of the mouse pointer when the program running in the
  234. #: terminal grabs the mouse. Valid values are: arrow, beam and hand
  235. # default_pointer_shape beam
  236. #: The default shape of the mouse pointer. Valid values are: arrow,
  237. #: beam and hand
  238. # pointer_shape_when_dragging beam
  239. #: The default shape of the mouse pointer when dragging across text.
  240. #: Valid values are: arrow, beam and hand
  241. #: }}}
  242. #: Performance tuning {{{
  243. # repaint_delay 10
  244. #: Delay (in milliseconds) between screen updates. Decreasing it,
  245. #: increases frames-per-second (FPS) at the cost of more CPU usage.
  246. #: The default value yields ~100 FPS which is more than sufficient for
  247. #: most uses. Note that to actually achieve 100 FPS you have to either
  248. #: set sync_to_monitor to no or use a monitor with a high refresh
  249. #: rate. Also, to minimize latency when there is pending input to be
  250. #: processed, repaint_delay is ignored.
  251. # input_delay 3
  252. #: Delay (in milliseconds) before input from the program running in
  253. #: the terminal is processed. Note that decreasing it will increase
  254. #: responsiveness, but also increase CPU usage and might cause flicker
  255. #: in full screen programs that redraw the entire screen on each loop,
  256. #: because kitty is so fast that partial screen updates will be drawn.
  257. # sync_to_monitor yes
  258. #: Sync screen updates to the refresh rate of the monitor. This
  259. #: prevents tearing (https://en.wikipedia.org/wiki/Screen_tearing)
  260. #: when scrolling. However, it limits the rendering speed to the
  261. #: refresh rate of your monitor. With a very high speed mouse/high
  262. #: keyboard repeat rate, you may notice some slight input latency. If
  263. #: so, set this to no.
  264. #: }}}
  265. #: Terminal bell {{{
  266. enable_audio_bell no
  267. #: Enable/disable the audio bell. Useful in environments that require
  268. #: silence.
  269. # visual_bell_duration 0.0
  270. #: Visual bell duration. Flash the screen when a bell occurs for the
  271. #: specified number of seconds. Set to zero to disable.
  272. # window_alert_on_bell yes
  273. #: Request window attention on bell. Makes the dock icon bounce on
  274. #: macOS or the taskbar flash on linux.
  275. # bell_on_tab yes
  276. #: Show a bell symbol on the tab if a bell occurs in one of the
  277. #: windows in the tab and the window is not the currently focused
  278. #: window
  279. # command_on_bell none
  280. #: Program to run when a bell occurs.
  281. #: }}}
  282. #: Window layout {{{
  283. # remember_window_size yes
  284. # initial_window_width 640
  285. # initial_window_height 400
  286. #: If enabled, the window size will be remembered so that new
  287. #: instances of kitty will have the same size as the previous
  288. #: instance. If disabled, the window will initially have size
  289. #: configured by initial_window_width/height, in pixels. You can use a
  290. #: suffix of "c" on the width/height values to have them interpreted
  291. #: as number of cells instead of pixels.
  292. # enabled_layouts *
  293. #: The enabled window layouts. A comma separated list of layout names.
  294. #: The special value all means all layouts. The first listed layout
  295. #: will be used as the startup layout. Default configuration is all
  296. #: layouts in alphabetical order. For a list of available layouts, see
  297. #: the https://sw.kovidgoyal.net/kitty/index.html#layouts.
  298. # window_resize_step_cells 2
  299. # window_resize_step_lines 2
  300. #: The step size (in units of cell width/cell height) to use when
  301. #: resizing windows. The cells value is used for horizontal resizing
  302. #: and the lines value for vertical resizing.
  303. # window_border_width 0.5pt
  304. #: The width of window borders. Can be either in pixels (px) or pts
  305. #: (pt). Values in pts will be rounded to the nearest number of pixels
  306. #: based on screen resolution. If not specified the unit is assumed to
  307. #: be pts. Note that borders are displayed only when more than one
  308. #: window is visible. They are meant to separate multiple windows.
  309. # draw_minimal_borders yes
  310. #: Draw only the minimum borders needed. This means that only the
  311. #: minimum needed borders for inactive windows are drawn. That is only
  312. #: the borders that separate the inactive window from a neighbor. Note
  313. #: that setting a non-zero window margin overrides this and causes all
  314. #: borders to be drawn.
  315. # window_margin_width 0
  316. #: The window margin (in pts) (blank area outside the border). A
  317. #: single value sets all four sides. Two values set the vertical and
  318. #: horizontal sides. Three values set top, horizontal and bottom. Four
  319. #: values set top, right, bottom and left.
  320. # single_window_margin_width -1
  321. #: The window margin (in pts) to use when only a single window is
  322. #: visible. Negative values will cause the value of
  323. #: window_margin_width to be used instead. A single value sets all
  324. #: four sides. Two values set the vertical and horizontal sides. Three
  325. #: values set top, horizontal and bottom. Four values set top, right,
  326. #: bottom and left.
  327. # window_padding_width 0
  328. #: The window padding (in pts) (blank area between the text and the
  329. #: window border). A single value sets all four sides. Two values set
  330. #: the vertical and horizontal sides. Three values set top, horizontal
  331. #: and bottom. Four values set top, right, bottom and left.
  332. # placement_strategy center
  333. #: When the window size is not an exact multiple of the cell size, the
  334. #: cell area of the terminal window will have some extra padding on
  335. #: the sides. You can control how that padding is distributed with
  336. #: this option. Using a value of center means the cell area will be
  337. #: placed centrally. A value of top-left means the padding will be on
  338. #: only the bottom and right edges.
  339. # active_border_color #00ff00
  340. #: The color for the border of the active window. Set this to none to
  341. #: not draw borders around the active window.
  342. # inactive_border_color #cccccc
  343. #: The color for the border of inactive windows
  344. # bell_border_color #ff5a00
  345. #: The color for the border of inactive windows in which a bell has
  346. #: occurred
  347. # inactive_text_alpha 1.0
  348. #: Fade the text in inactive windows by the specified amount (a number
  349. #: between zero and one, with zero being fully faded).
  350. # hide_window_decorations no
  351. #: Hide the window decorations (title-bar and window borders) with
  352. #: yes. On macOS, titlebar-only can be used to only hide the titlebar.
  353. #: Whether this works and exactly what effect it has depends on the
  354. #: window manager/operating system.
  355. # resize_debounce_time 0.1
  356. #: The time (in seconds) to wait before redrawing the screen when a
  357. #: resize event is received. On platforms such as macOS, where the
  358. #: operating system sends events corresponding to the start and end of
  359. #: a resize, this number is ignored.
  360. # resize_draw_strategy static
  361. #: Choose how kitty draws a window while a resize is in progress. A
  362. #: value of static means draw the current window contents, mostly
  363. #: unchanged. A value of scale means draw the current window contents
  364. #: scaled. A value of blank means draw a blank window. A value of size
  365. #: means show the window size in cells.
  366. # resize_in_steps no
  367. #: Resize the OS window in steps as large as the cells, instead of
  368. #: with the usual pixel accuracy. Combined with an
  369. #: initial_window_width and initial_window_height in number of cells,
  370. #: this option can be used to keep the margins as small as possible
  371. #: when resizing the OS window. Note that this does not currently work
  372. #: on Wayland.
  373. # confirm_os_window_close 0
  374. #: Ask for confirmation when closing an OS window or a tab that has at
  375. #: least this number of kitty windows in it. A value of zero disables
  376. #: confirmation. This confirmation also applies to requests to quit
  377. #: the entire application (all OS windows, via the quit action).
  378. #: }}}
  379. #: Tab bar {{{
  380. # tab_bar_edge bottom
  381. #: Which edge to show the tab bar on, top or bottom
  382. # tab_bar_margin_width 0.0
  383. #: The margin to the left and right of the tab bar (in pts)
  384. tab_bar_style powerline
  385. #: The tab bar style, can be one of: fade, separator, powerline, or
  386. #: hidden. In the fade style, each tab's edges fade into the
  387. #: background color, in the separator style, tabs are separated by a
  388. #: configurable separator, and the powerline shows the tabs as a
  389. #: continuous line. If you use the hidden style, you might want to
  390. #: create a mapping for the select_tab action which presents you with
  391. #: a list of tabs and allows for easy switching to a tab.
  392. # tab_bar_min_tabs 2
  393. #: The minimum number of tabs that must exist before the tab bar is
  394. #: shown
  395. # tab_switch_strategy previous
  396. #: The algorithm to use when switching to a tab when the current tab
  397. #: is closed. The default of previous will switch to the last used
  398. #: tab. A value of left will switch to the tab to the left of the
  399. #: closed tab. A value of right will switch to the tab to the right of
  400. #: the closed tab. A value of last will switch to the right-most tab.
  401. # tab_fade 0.25 0.5 0.75 1
  402. #: Control how each tab fades into the background when using fade for
  403. #: the tab_bar_style. Each number is an alpha (between zero and one)
  404. #: that controls how much the corresponding cell fades into the
  405. #: background, with zero being no fade and one being full fade. You
  406. #: can change the number of cells used by adding/removing entries to
  407. #: this list.
  408. # tab_separator " ┇"
  409. #: The separator between tabs in the tab bar when using separator as
  410. #: the tab_bar_style.
  411. # tab_activity_symbol none
  412. #: Some text or a unicode symbol to show on the tab if a window in the
  413. #: tab that does not have focus has some activity.
  414. # tab_title_template "{title}"
  415. #: A template to render the tab title. The default just renders the
  416. #: title. If you wish to include the tab-index as well, use something
  417. #: like: {index}: {title}. Useful if you have shortcuts mapped for
  418. #: goto_tab N. In addition you can use {layout_name} for the current
  419. #: layout name and {num_windows} for the number of windows in the tab.
  420. #: Note that formatting is done by Python's string formatting
  421. #: machinery, so you can use, for instance, {layout_name[:2].upper()}
  422. #: to show only the first two letters of the layout name, upper-cased.
  423. #: If you want to style the text, you can use styling directives, for
  424. #: example: {fmt.fg.red}red{fmt.fg.default}normal{fmt.bg._00FF00}green
  425. #: bg{fmt.bg.normal}. Similarly, for bold and italic:
  426. #: {fmt.bold}bold{fmt.nobold}normal{fmt.italic}italic{fmt.noitalic}.
  427. # active_tab_title_template none
  428. #: Template to use for active tabs, if not specified falls back to
  429. #: tab_title_template.
  430. # active_tab_foreground #000
  431. # active_tab_background #eee
  432. # active_tab_font_style bold-italic
  433. # inactive_tab_foreground #444
  434. # inactive_tab_background #999
  435. # inactive_tab_font_style normal
  436. #: Tab bar colors and styles
  437. # tab_bar_background none
  438. #: Background color for the tab bar. Defaults to using the terminal
  439. #: background color.
  440. #: }}}
  441. #: Color scheme {{{
  442. include ./nord.conf
  443. # foreground #dddddd
  444. # background #000000
  445. #: The foreground and background colors
  446. # background_opacity 1.0
  447. #: The opacity of the background. A number between 0 and 1, where 1 is
  448. #: opaque and 0 is fully transparent. This will only work if
  449. #: supported by the OS (for instance, when using a compositor under
  450. #: X11). Note that it only sets the background color's opacity in
  451. #: cells that have the same background color as the default terminal
  452. #: background. This is so that things like the status bar in vim,
  453. #: powerline prompts, etc. still look good. But it means that if you
  454. #: use a color theme with a background color in your editor, it will
  455. #: not be rendered as transparent. Instead you should change the
  456. #: default background color in your kitty config and not use a
  457. #: background color in the editor color scheme. Or use the escape
  458. #: codes to set the terminals default colors in a shell script to
  459. #: launch your editor. Be aware that using a value less than 1.0 is a
  460. #: (possibly significant) performance hit. If you want to dynamically
  461. #: change transparency of windows set dynamic_background_opacity to
  462. #: yes (this is off by default as it has a performance cost)
  463. # background_image none
  464. #: Path to a background image. Must be in PNG format.
  465. # background_image_layout tiled
  466. #: Whether to tile or scale the background image.
  467. # background_image_linear no
  468. #: When background image is scaled, whether linear interpolation
  469. #: should be used.
  470. # dynamic_background_opacity no
  471. #: Allow changing of the background_opacity dynamically, using either
  472. #: keyboard shortcuts (increase_background_opacity and
  473. #: decrease_background_opacity) or the remote control facility.
  474. # background_tint 0.0
  475. #: How much to tint the background image by the background color. The
  476. #: tint is applied only under the text area, not margin/borders. Makes
  477. #: it easier to read the text. Tinting is done using the current
  478. #: background color for each window. This setting applies only if
  479. #: background_opacity is set and transparent windows are supported or
  480. #: background_image is set.
  481. # dim_opacity 0.75
  482. #: How much to dim text that has the DIM/FAINT attribute set. One
  483. #: means no dimming and zero means fully dimmed (i.e. invisible).
  484. # selection_foreground #000000
  485. #: The foreground for text selected with the mouse. A value of none
  486. #: means to leave the color unchanged.
  487. # selection_background #fffacd
  488. #: The background for text selected with the mouse.
  489. #: The 16 terminal colors. There are 8 basic colors, each color has a
  490. #: dull and bright version. You can also set the remaining colors from
  491. #: the 256 color table as color16 to color255.
  492. # color0 #000000
  493. # color8 #767676
  494. #: black
  495. # color1 #cc0403
  496. # color9 #f2201f
  497. #: red
  498. # color2 #19cb00
  499. # color10 #23fd00
  500. #: green
  501. # color3 #cecb00
  502. # color11 #fffd00
  503. #: yellow
  504. # color4 #0d73cc
  505. # color12 #1a8fff
  506. #: blue
  507. # color5 #cb1ed1
  508. # color13 #fd28ff
  509. #: magenta
  510. # color6 #0dcdcd
  511. # color14 #14ffff
  512. #: cyan
  513. # color7 #dddddd
  514. # color15 #ffffff
  515. #: white
  516. # mark1_foreground black
  517. #: Color for marks of type 1
  518. # mark1_background #98d3cb
  519. #: Color for marks of type 1 (light steel blue)
  520. # mark2_foreground black
  521. #: Color for marks of type 2
  522. # mark2_background #f2dcd3
  523. #: Color for marks of type 1 (beige)
  524. # mark3_foreground black
  525. #: Color for marks of type 3
  526. # mark3_background #f274bc
  527. #: Color for marks of type 1 (violet)
  528. #: }}}
  529. #: Advanced {{{
  530. # shell .
  531. #: The shell program to execute. The default value of . means to use
  532. #: whatever shell is set as the default shell for the current user.
  533. #: Note that on macOS if you change this, you might need to add
  534. #: --login to ensure that the shell starts in interactive mode and
  535. #: reads its startup rc files.
  536. # editor .
  537. #: The console editor to use when editing the kitty config file or
  538. #: similar tasks. A value of . means to use the environment variables
  539. #: VISUAL and EDITOR in that order. Note that this environment
  540. #: variable has to be set not just in your shell startup scripts but
  541. #: system-wide, otherwise kitty will not see it.
  542. # close_on_child_death no
  543. #: Close the window when the child process (shell) exits. If no (the
  544. #: default), the terminal will remain open when the child exits as
  545. #: long as there are still processes outputting to the terminal (for
  546. #: example disowned or backgrounded processes). If yes, the window
  547. #: will close as soon as the child process exits. Note that setting it
  548. #: to yes means that any background processes still using the terminal
  549. #: can fail silently because their stdout/stderr/stdin no longer work.
  550. # allow_remote_control no
  551. #: Allow other programs to control kitty. If you turn this on other
  552. #: programs can control all aspects of kitty, including sending text
  553. #: to kitty windows, opening new windows, closing windows, reading the
  554. #: content of windows, etc. Note that this even works over ssh
  555. #: connections. You can chose to either allow any program running
  556. #: within kitty to control it, with yes or only programs that connect
  557. #: to the socket specified with the kitty --listen-on command line
  558. #: option, if you use the value socket-only. The latter is useful if
  559. #: you want to prevent programs running on a remote computer over ssh
  560. #: from controlling kitty.
  561. # listen_on none
  562. #: Tell kitty to listen to the specified unix/tcp socket for remote
  563. #: control connections. Note that this will apply to all kitty
  564. #: instances. It can be overridden by the kitty --listen-on command
  565. #: line flag. This option accepts only UNIX sockets, such as
  566. #: unix:${TEMP}/mykitty or (on Linux) unix:@mykitty. Environment
  567. #: variables are expanded. If {kitty_pid} is present then it is
  568. #: replaced by the PID of the kitty process, otherwise the PID of the
  569. #: kitty process is appended to the value, with a hyphen. This option
  570. #: is ignored unless you also set allow_remote_control to enable
  571. #: remote control. See the help for kitty --listen-on for more
  572. #: details.
  573. # env
  574. #: Specify environment variables to set in all child processes. Note
  575. #: that environment variables are expanded recursively, so if you
  576. #: use::
  577. #: env MYVAR1=a
  578. #: env MYVAR2=${MYVAR1}/${HOME}/b
  579. #: The value of MYVAR2 will be a/<path to home directory>/b.
  580. update_check_interval 0
  581. #: Periodically check if an update to kitty is available. If an update
  582. #: is found a system notification is displayed informing you of the
  583. #: available update. The default is to check every 24 hrs, set to zero
  584. #: to disable.
  585. # startup_session none
  586. #: Path to a session file to use for all kitty instances. Can be
  587. #: overridden by using the kitty --session command line option for
  588. #: individual instances. See
  589. #: https://sw.kovidgoyal.net/kitty/index.html#sessions in the kitty
  590. #: documentation for details. Note that relative paths are interpreted
  591. #: with respect to the kitty config directory. Environment variables
  592. #: in the path are expanded.
  593. # clipboard_control write-clipboard write-primary
  594. #: Allow programs running in kitty to read and write from the
  595. #: clipboard. You can control exactly which actions are allowed. The
  596. #: set of possible actions is: write-clipboard read-clipboard write-
  597. #: primary read-primary. You can additionally specify no-append to
  598. #: disable kitty's protocol extension for clipboard concatenation. The
  599. #: default is to allow writing to the clipboard and primary selection
  600. #: with concatenation enabled. Note that enabling the read
  601. #: functionality is a security risk as it means that any program, even
  602. #: one running on a remote server via SSH can read your clipboard.
  603. # allow_hyperlinks yes
  604. #: Process hyperlink (OSC 8) escape sequences. If disabled OSC 8
  605. #: escape sequences are ignored. Otherwise they become clickable
  606. #: links, that you can click by holding down ctrl+shift and clicking
  607. #: with the mouse. The special value of ``ask`` means that kitty will
  608. #: ask before opening the link.
  609. # term xterm-kitty
  610. #: The value of the TERM environment variable to set. Changing this
  611. #: can break many terminal programs, only change it if you know what
  612. #: you are doing, not because you read some advice on Stack Overflow
  613. #: to change it. The TERM variable is used by various programs to get
  614. #: information about the capabilities and behavior of the terminal. If
  615. #: you change it, depending on what programs you run, and how
  616. #: different the terminal you are changing it to is, various things
  617. #: from key-presses, to colors, to various advanced features may not
  618. #: work.
  619. #: }}}
  620. #: OS specific tweaks {{{
  621. # macos_titlebar_color system
  622. #: Change the color of the kitty window's titlebar on macOS. A value
  623. #: of system means to use the default system color, a value of
  624. #: background means to use the background color of the currently
  625. #: active window and finally you can use an arbitrary color, such as
  626. #: #12af59 or red. WARNING: This option works by using a hack, as
  627. #: there is no proper Cocoa API for it. It sets the background color
  628. #: of the entire window and makes the titlebar transparent. As such it
  629. #: is incompatible with background_opacity. If you want to use both,
  630. #: you are probably better off just hiding the titlebar with
  631. #: hide_window_decorations.
  632. # macos_option_as_alt no
  633. #: Use the option key as an alt key. With this set to no, kitty will
  634. #: use the macOS native Option+Key = unicode character behavior. This
  635. #: will break any Alt+key keyboard shortcuts in your terminal
  636. #: programs, but you can use the macOS unicode input technique. You
  637. #: can use the values: left, right, or both to use only the left,
  638. #: right or both Option keys as Alt, instead.
  639. # macos_hide_from_tasks no
  640. #: Hide the kitty window from running tasks (Option+Tab) on macOS.
  641. # macos_quit_when_last_window_closed no
  642. #: Have kitty quit when all the top-level windows are closed. By
  643. #: default, kitty will stay running, even with no open windows, as is
  644. #: the expected behavior on macOS.
  645. # macos_window_resizable yes
  646. #: Disable this if you want kitty top-level (OS) windows to not be
  647. #: resizable on macOS.
  648. # macos_thicken_font 0
  649. #: Draw an extra border around the font with the given width, to
  650. #: increase legibility at small font sizes. For example, a value of
  651. #: 0.75 will result in rendering that looks similar to sub-pixel
  652. #: antialiasing at common font sizes.
  653. # macos_traditional_fullscreen no
  654. #: Use the traditional full-screen transition, that is faster, but
  655. #: less pretty.
  656. # macos_show_window_title_in all
  657. #: Show or hide the window title in the macOS window or menu-bar. A
  658. #: value of window will show the title of the currently active window
  659. #: at the top of the macOS window. A value of menubar will show the
  660. #: title of the currently active window in the macOS menu-bar, making
  661. #: use of otherwise wasted space. all will show the title everywhere
  662. #: and none hides the title in the window and the menu-bar.
  663. # macos_custom_beam_cursor no
  664. #: Enable/disable custom mouse cursor for macOS that is easier to see
  665. #: on both light and dark backgrounds. WARNING: this might make your
  666. #: mouse cursor invisible on dual GPU machines.
  667. # linux_display_server auto
  668. #: Choose between Wayland and X11 backends. By default, an appropriate
  669. #: backend based on the system state is chosen automatically. Set it
  670. #: to x11 or wayland to force the choice.
  671. #: }}}
  672. #: Keyboard shortcuts {{{
  673. #: For a list of key names, see: the GLFW key macros
  674. #: <https://github.com/kovidgoyal/kitty/blob/master/glfw/glfw3.h#L349>.
  675. #: The name to use is the part after the GLFW_KEY_ prefix. For a list
  676. #: of modifier names, see: GLFW mods
  677. #: <https://www.glfw.org/docs/latest/group__mods.html>
  678. #: On Linux you can also use XKB key names to bind keys that are not
  679. #: supported by GLFW. See XKB keys
  680. #: <https://github.com/xkbcommon/libxkbcommon/blob/master/xkbcommon/xkbcommon-
  681. #: keysyms.h> for a list of key names. The name to use is the part
  682. #: after the XKB_KEY_ prefix. Note that you can only use an XKB key
  683. #: name for keys that are not known as GLFW keys.
  684. #: Finally, you can use raw system key codes to map keys, again only
  685. #: for keys that are not known as GLFW keys. To see the system key
  686. #: code for a key, start kitty with the kitty --debug-keyboard option.
  687. #: Then kitty will output some debug text for every key event. In that
  688. #: text look for ``native_code`` the value of that becomes the key
  689. #: name in the shortcut. For example:
  690. #: .. code-block:: none
  691. #: on_key_input: glfw key: 65 native_code: 0x61 action: PRESS mods: 0x0 text: 'a'
  692. #: Here, the key name for the A key is 0x61 and you can use it with::
  693. #: map ctrl+0x61 something
  694. #: to map ctrl+a to something.
  695. #: You can use the special action no_op to unmap a keyboard shortcut
  696. #: that is assigned in the default configuration::
  697. #: map kitty_mod+space no_op
  698. #: You can combine multiple actions to be triggered by a single
  699. #: shortcut, using the syntax below::
  700. #: map key combine <separator> action1 <separator> action2 <separator> action3 ...
  701. #: For example::
  702. #: map kitty_mod+e combine : new_window : next_layout
  703. #: this will create a new window and switch to the next available
  704. #: layout
  705. #: You can use multi-key shortcuts using the syntax shown below::
  706. #: map key1>key2>key3 action
  707. #: For example::
  708. #: map ctrl+f>2 set_font_size 20
  709. # kitty_mod ctrl+shift
  710. #: The value of kitty_mod is used as the modifier for all default
  711. #: shortcuts, you can change it in your kitty.conf to change the
  712. #: modifiers for all the default shortcuts.
  713. # clear_all_shortcuts no
  714. #: You can have kitty remove all shortcut definition seen up to this
  715. #: point. Useful, for instance, to remove the default shortcuts.
  716. # kitten_alias hints hints --hints-offset=0
  717. #: You can create aliases for kitten names, this allows overriding the
  718. #: defaults for kitten options and can also be used to shorten
  719. #: repeated mappings of the same kitten with a specific group of
  720. #: options. For example, the above alias changes the default value of
  721. #: kitty +kitten hints --hints-offset to zero for all mappings,
  722. #: including the builtin ones.
  723. #: Clipboard {{{
  724. # map kitty_mod+c copy_to_clipboard
  725. #: There is also a copy_or_interrupt action that can be optionally
  726. #: mapped to Ctrl+c. It will copy only if there is a selection and
  727. #: send an interrupt otherwise. Similarly, copy_and_clear_or_interrupt
  728. #: will copy and clear the selection or send an interrupt if there is
  729. #: no selection.
  730. # map kitty_mod+v paste_from_clipboard
  731. # map kitty_mod+s paste_from_selection
  732. # map shift+insert paste_from_selection
  733. # map kitty_mod+o pass_selection_to_program
  734. #: You can also pass the contents of the current selection to any
  735. #: program using pass_selection_to_program. By default, the system's
  736. #: open program is used, but you can specify your own, the selection
  737. #: will be passed as a command line argument to the program, for
  738. #: example::
  739. #: map kitty_mod+o pass_selection_to_program firefox
  740. #: You can pass the current selection to a terminal program running in
  741. #: a new kitty window, by using the @selection placeholder::
  742. #: map kitty_mod+y new_window less @selection
  743. #: }}}
  744. #: Scrolling {{{
  745. # map kitty_mod+up scroll_line_up
  746. # map kitty_mod+k scroll_line_up
  747. # map kitty_mod+down scroll_line_down
  748. # map kitty_mod+j scroll_line_down
  749. # map kitty_mod+page_up scroll_page_up
  750. # map kitty_mod+page_down scroll_page_down
  751. # map kitty_mod+home scroll_home
  752. # map kitty_mod+end scroll_end
  753. # map kitty_mod+h show_scrollback
  754. #: You can pipe the contents of the current screen + history buffer as
  755. #: STDIN to an arbitrary program using the ``launch`` function. For
  756. #: example, the following opens the scrollback buffer in less in an
  757. #: overlay window::
  758. #: map f1 launch --stdin-source=@screen_scrollback --stdin-add-formatting --type=overlay less +G -R
  759. #: For more details on piping screen and buffer contents to external
  760. #: programs, see launch.
  761. #: }}}
  762. #: Window management {{{
  763. # map kitty_mod+enter new_window
  764. #: You can open a new window running an arbitrary program, for
  765. #: example::
  766. #: map kitty_mod+y launch mutt
  767. #: You can open a new window with the current working directory set to
  768. #: the working directory of the current window using::
  769. #: map ctrl+alt+enter launch --cwd=current
  770. #: You can open a new window that is allowed to control kitty via the
  771. #: kitty remote control facility by prefixing the command line with @.
  772. #: Any programs running in that window will be allowed to control
  773. #: kitty. For example::
  774. #: map ctrl+enter launch --allow-remote-control some_program
  775. #: You can open a new window next to the currently active window or as
  776. #: the first window, with::
  777. #: map ctrl+n launch --location=neighbor some_program
  778. #: map ctrl+f launch --location=first some_program
  779. #: For more details, see launch.
  780. # map kitty_mod+n new_os_window
  781. #: Works like new_window above, except that it opens a top level OS
  782. #: kitty window. In particular you can use new_os_window_with_cwd to
  783. #: open a window with the current working directory.
  784. # map kitty_mod+w close_window
  785. # map kitty_mod+] next_window
  786. # map kitty_mod+[ previous_window
  787. # map kitty_mod+f move_window_forward
  788. # map kitty_mod+b move_window_backward
  789. # map kitty_mod+` move_window_to_top
  790. # map kitty_mod+r start_resizing_window
  791. # map kitty_mod+1 first_window
  792. # map kitty_mod+2 second_window
  793. # map kitty_mod+3 third_window
  794. # map kitty_mod+4 fourth_window
  795. # map kitty_mod+5 fifth_window
  796. # map kitty_mod+6 sixth_window
  797. # map kitty_mod+7 seventh_window
  798. # map kitty_mod+8 eighth_window
  799. # map kitty_mod+9 ninth_window
  800. # map kitty_mod+0 tenth_window
  801. #: }}}
  802. #: Tab management {{{
  803. # map kitty_mod+right next_tab
  804. # map kitty_mod+left previous_tab
  805. # map kitty_mod+t new_tab
  806. # map kitty_mod+q close_tab
  807. # map kitty_mod+. move_tab_forward
  808. # map kitty_mod+, move_tab_backward
  809. # map kitty_mod+alt+t set_tab_title
  810. #: You can also create shortcuts to go to specific tabs, with 1 being
  811. #: the first tab, 2 the second tab and -1 being the previously active
  812. #: tab, and any number larger than the last tab being the last tab::
  813. #: map ctrl+alt+1 goto_tab 1
  814. #: map ctrl+alt+2 goto_tab 2
  815. #: Just as with new_window above, you can also pass the name of
  816. #: arbitrary commands to run when using new_tab and use
  817. #: new_tab_with_cwd. Finally, if you want the new tab to open next to
  818. #: the current tab rather than at the end of the tabs list, use::
  819. #: map ctrl+t new_tab !neighbor [optional cmd to run]
  820. #: }}}
  821. #: Layout management {{{
  822. # map kitty_mod+l next_layout
  823. #: You can also create shortcuts to switch to specific layouts::
  824. #: map ctrl+alt+t goto_layout tall
  825. #: map ctrl+alt+s goto_layout stack
  826. #: Similarly, to switch back to the previous layout::
  827. #: map ctrl+alt+p last_used_layout
  828. #: }}}
  829. #: Font sizes {{{
  830. #: You can change the font size for all top-level kitty OS windows at
  831. #: a time or only the current one.
  832. # map kitty_mod+equal change_font_size all +2.0
  833. # map kitty_mod+minus change_font_size all -2.0
  834. # map kitty_mod+backspace change_font_size all 0
  835. #: To setup shortcuts for specific font sizes::
  836. #: map kitty_mod+f6 change_font_size all 10.0
  837. #: To setup shortcuts to change only the current OS window's font
  838. #: size::
  839. #: map kitty_mod+f6 change_font_size current 10.0
  840. #: }}}
  841. #: Select and act on visible text {{{
  842. #: Use the hints kitten to select text and either pass it to an
  843. #: external program or insert it into the terminal or copy it to the
  844. #: clipboard.
  845. # map kitty_mod+e kitten hints
  846. #: Open a currently visible URL using the keyboard. The program used
  847. #: to open the URL is specified in open_url_with.
  848. # map kitty_mod+p>f kitten hints --type path --program -
  849. #: Select a path/filename and insert it into the terminal. Useful, for
  850. #: instance to run git commands on a filename output from a previous
  851. #: git command.
  852. # map kitty_mod+p>shift+f kitten hints --type path
  853. #: Select a path/filename and open it with the default open program.
  854. # map kitty_mod+p>l kitten hints --type line --program -
  855. #: Select a line of text and insert it into the terminal. Use for the
  856. #: output of things like: ls -1
  857. # map kitty_mod+p>w kitten hints --type word --program -
  858. #: Select words and insert into terminal.
  859. # map kitty_mod+p>h kitten hints --type hash --program -
  860. #: Select something that looks like a hash and insert it into the
  861. #: terminal. Useful with git, which uses sha1 hashes to identify
  862. #: commits
  863. # map kitty_mod+p>n kitten hints --type linenum
  864. #: Select something that looks like filename:linenum and open it in
  865. #: vim at the specified line number.
  866. # map kitty_mod+p>y kitten hints --type hyperlink
  867. #: Select a hyperlink (i.e. a URL that has been marked as such by the
  868. #: terminal program, for example, by ls --hyperlink=auto).
  869. #: The hints kitten has many more modes of operation that you can map
  870. #: to different shortcuts. For a full description see kittens/hints.
  871. #: }}}
  872. #: Miscellaneous {{{
  873. # map kitty_mod+f11 toggle_fullscreen
  874. # map kitty_mod+f10 toggle_maximized
  875. # map kitty_mod+u kitten unicode_input
  876. # map kitty_mod+f2 edit_config_file
  877. # map kitty_mod+escape kitty_shell window
  878. #: Open the kitty shell in a new window/tab/overlay/os_window to
  879. #: control kitty using commands.
  880. # map kitty_mod+a>m set_background_opacity +0.1
  881. # map kitty_mod+a>l set_background_opacity -0.1
  882. # map kitty_mod+a>1 set_background_opacity 1
  883. # map kitty_mod+a>d set_background_opacity default
  884. # map kitty_mod+delete clear_terminal reset active
  885. #: You can create shortcuts to clear/reset the terminal. For example::
  886. #: # Reset the terminal
  887. #: map kitty_mod+f9 clear_terminal reset active
  888. #: # Clear the terminal screen by erasing all contents
  889. #: map kitty_mod+f10 clear_terminal clear active
  890. #: # Clear the terminal scrollback by erasing it
  891. #: map kitty_mod+f11 clear_terminal scrollback active
  892. #: # Scroll the contents of the screen into the scrollback
  893. #: map kitty_mod+f12 clear_terminal scroll active
  894. #: If you want to operate on all windows instead of just the current
  895. #: one, use all instead of active.
  896. #: It is also possible to remap Ctrl+L to both scroll the current
  897. #: screen contents into the scrollback buffer and clear the screen,
  898. #: instead of just clearing the screen::
  899. #: map ctrl+l combine : clear_terminal scroll active : send_text normal,application \x0c
  900. #: You can tell kitty to send arbitrary (UTF-8) encoded text to the
  901. #: client program when pressing specified shortcut keys. For example::
  902. #: map ctrl+alt+a send_text all Special text
  903. #: This will send "Special text" when you press the ctrl+alt+a key
  904. #: combination. The text to be sent is a python string literal so you
  905. #: can use escapes like \x1b to send control codes or \u21fb to send
  906. #: unicode characters (or you can just input the unicode characters
  907. #: directly as UTF-8 text). The first argument to send_text is the
  908. #: keyboard modes in which to activate the shortcut. The possible
  909. #: values are normal or application or kitty or a comma separated
  910. #: combination of them. The special keyword all means all modes. The
  911. #: modes normal and application refer to the DECCKM cursor key mode
  912. #: for terminals, and kitty refers to the special kitty extended
  913. #: keyboard protocol.
  914. #: Another example, that outputs a word and then moves the cursor to
  915. #: the start of the line (same as pressing the Home key)::
  916. #: map ctrl+alt+a send_text normal Word\x1b[H
  917. #: map ctrl+alt+a send_text application Word\x1bOH
  918. #: }}}
  919. # }}}
  920. # vim:fileencoding=utf-8:ft=conf:foldmethod=marker foldenable