kitty.conf 45 KB

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