kitty.conf 74 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189
  1. # vim:fileencoding=utf-8:foldmethod=marker
  2. include ./custom/theme.conf
  3. # include ./kitty-themes/themes/Red_Alert.conf
  4. include ./custom/symbols.conf
  5. include ./custom/special.conf
  6. include ./custom/tabline.conf
  7. include ./custom/mouse.conf
  8. include ./custom/window_layout.conf
  9. include ./custom/keyboard/main.conf
  10. #: Fonts {{{
  11. #: kitty has very powerful font management. You can configure
  12. #: individual font faces and even specify special fonts for particular
  13. #: characters.
  14. # font_family monospace
  15. # bold_font auto
  16. # italic_font auto
  17. # bold_italic_font auto
  18. #: You can specify different fonts for the bold/italic/bold-italic
  19. #: variants. To get a full list of supported fonts use the `kitty
  20. #: +list-fonts` command. By default they are derived automatically, by
  21. #: the OSes font system. When bold_font or bold_italic_font is set to
  22. #: auto on macOS, the priority of bold fonts is semi-bold, bold,
  23. #: heavy. Setting them manually is useful for font families that have
  24. #: many weight variants like Book, Medium, Thick, etc. For example::
  25. #: font_family Operator Mono Book
  26. #: bold_font Operator Mono Medium
  27. #: italic_font Operator Mono Book Italic
  28. #: bold_italic_font Operator Mono Medium Italic
  29. # font_family FiraCode Nerd Font Mono
  30. # font_family FiraCode
  31. # font_size 11.0
  32. #: Font size (in pts)
  33. # force_ltr no
  34. #: kitty does not support BIDI (bidirectional text), however, for RTL
  35. #: scripts, words are automatically displayed in RTL. That is to say,
  36. #: in an RTL script, the words "HELLO WORLD" display in kitty as
  37. #: "WORLD HELLO", and if you try to select a substring of an RTL-
  38. #: shaped string, you will get the character that would be there had
  39. #: the the string been LTR. For example, assuming the Hebrew word
  40. #: ירושלים, selecting the character that on the screen appears to be ם
  41. #: actually writes into the selection buffer the character י. kitty's
  42. #: default behavior is useful in conjunction with a filter to reverse
  43. #: the word order, however, if you wish to manipulate RTL glyphs, it
  44. #: can be very challenging to work with, so this option is provided to
  45. #: turn it off. Furthermore, this option can be used with the command
  46. #: line program GNU FriBidi
  47. #: <https://github.com/fribidi/fribidi#executable> to get BIDI
  48. #: support, because it will force kitty to always treat the text as
  49. #: LTR, which FriBidi expects for terminals.
  50. # symbol_map
  51. # symbol_map U+23FB-U+23FE,U+2665,U+26A1,U+2B58,U+E000-U+E00A,U+E0A0-U+E0A3,U+E0B0-U+E0D4,U+E200-U+E2A9,U+E300-U+E3E3,U+E5FA-U+E6AA,U+E700-U+E7C5,U+EA60-U+EBEB,U+F000-U+F2E0,U+F300-U+F32F,U+F400-U+F4A9,U+F500-U+F8FF,U+F0001-U+F1AF0 Symbols Nerd Font Mono
  52. #: E.g. symbol_map U+E0A0-U+E0A3,U+E0C0-U+E0C7 PowerlineSymbols
  53. #: Map the specified Unicode codepoints to a particular font. Useful
  54. #: if you need special rendering for some symbols, such as for
  55. #: Powerline. Avoids the need for patched fonts. Each Unicode code
  56. #: point is specified in the form `U+<code point in hexadecimal>`. You
  57. #: can specify multiple code points, separated by commas and ranges
  58. #: separated by hyphens. This option can be specified multiple times.
  59. #: The syntax is::
  60. #: symbol_map codepoints Font Family Name
  61. # narrow_symbols
  62. #: E.g. narrow_symbols U+E0A0-U+E0A3,U+E0C0-U+E0C7 1
  63. #: Usually, for Private Use Unicode characters and some symbol/dingbat
  64. #: characters, if the character is followed by one or more spaces,
  65. #: kitty will use those extra cells to render the character larger, if
  66. #: the character in the font has a wide aspect ratio. Using this
  67. #: option you can force kitty to restrict the specified code points to
  68. #: render in the specified number of cells (defaulting to one cell).
  69. #: This option can be specified multiple times. The syntax is::
  70. #: narrow_symbols codepoints [optionally the number of cells]
  71. # disable_ligatures never
  72. #: Choose how you want to handle multi-character ligatures. The
  73. #: default is to always render them. You can tell kitty to not render
  74. #: them when the cursor is over them by using cursor to make editing
  75. #: easier, or have kitty never render them at all by using always, if
  76. #: you don't like them. The ligature strategy can be set per-window
  77. #: either using the kitty remote control facility or by defining
  78. #: shortcuts for it in kitty.conf, for example::
  79. #: map alt+1 disable_ligatures_in active always
  80. #: map alt+2 disable_ligatures_in all never
  81. #: map alt+3 disable_ligatures_in tab cursor
  82. #: Note that this refers to programming ligatures, typically
  83. #: implemented using the calt OpenType feature. For disabling general
  84. #: ligatures, use the font_features option.
  85. # font_features
  86. #: E.g. font_features none
  87. #: Choose exactly which OpenType features to enable or disable. This
  88. #: is useful as some fonts might have features worthwhile in a
  89. #: terminal. For example, Fira Code includes a discretionary feature,
  90. #: zero, which in that font changes the appearance of the zero (0), to
  91. #: make it more easily distinguishable from Ø. Fira Code also includes
  92. #: other discretionary features known as Stylistic Sets which have the
  93. #: tags ss01 through ss20.
  94. #: For the exact syntax to use for individual features, see the
  95. #: HarfBuzz documentation <https://harfbuzz.github.io/harfbuzz-hb-
  96. #: common.html#hb-feature-from-string>.
  97. #: Note that this code is indexed by PostScript name, and not the font
  98. #: family. This allows you to define very precise feature settings;
  99. #: e.g. you can disable a feature in the italic font but not in the
  100. #: regular font.
  101. #: On Linux, font features are first read from the FontConfig database
  102. #: and then this option is applied, so they can be configured in a
  103. #: single, central place.
  104. #: To get the PostScript name for a font, use `kitty +list-fonts
  105. #: --psnames`:
  106. #: .. code-block:: sh
  107. #: $ kitty +list-fonts --psnames | grep Fira
  108. #: Fira Code
  109. #: Fira Code Bold (FiraCode-Bold)
  110. #: Fira Code Light (FiraCode-Light)
  111. #: Fira Code Medium (FiraCode-Medium)
  112. #: Fira Code Regular (FiraCode-Regular)
  113. #: Fira Code Retina (FiraCode-Retina)
  114. #: The part in brackets is the PostScript name.
  115. #: Enable alternate zero and oldstyle numerals::
  116. #: font_features FiraCode-Retina +zero +onum
  117. #: Enable only alternate zero in the bold font::
  118. #: font_features FiraCode-Bold +zero
  119. #: Disable the normal ligatures, but keep the calt feature which (in
  120. #: this font) breaks up monotony::
  121. #: font_features TT2020StyleB-Regular -liga +calt
  122. #: In conjunction with force_ltr, you may want to disable Arabic
  123. #: shaping entirely, and only look at their isolated forms if they
  124. #: show up in a document. You can do this with e.g.::
  125. #: font_features UnifontMedium +isol -medi -fina -init
  126. # modify_font
  127. #: Modify font characteristics such as the position or thickness of
  128. #: the underline and strikethrough. The modifications can have the
  129. #: suffix px for pixels or % for percentage of original value. No
  130. #: suffix means use pts. For example::
  131. #: modify_font underline_position -2
  132. #: modify_font underline_thickness 150%
  133. #: modify_font strikethrough_position 2px
  134. #: Additionally, you can modify the size of the cell in which each
  135. #: font glyph is rendered and the baseline at which the glyph is
  136. #: placed in the cell. For example::
  137. #: modify_font cell_width 80%
  138. #: modify_font cell_height -2px
  139. #: modify_font baseline 3
  140. #: Note that modifying the baseline will automatically adjust the
  141. #: underline and strikethrough positions by the same amount.
  142. #: Increasing the baseline raises glyphs inside the cell and
  143. #: decreasing it lowers them. Decreasing the cell size might cause
  144. #: rendering artifacts, so use with care.
  145. # box_drawing_scale 0.001, 1, 1.5, 2
  146. #: The sizes of the lines used for the box drawing Unicode characters.
  147. #: These values are in pts. They will be scaled by the monitor DPI to
  148. #: arrive at a pixel value. There must be four values corresponding to
  149. #: thin, normal, thick, and very thick lines.
  150. # undercurl_style thin-sparse
  151. #: The style with which undercurls are rendered. This option takes the
  152. #: form (thin|thick)-(sparse|dense). Thin and thick control the
  153. #: thickness of the undercurl. Sparse and dense control how often the
  154. #: curl oscillates. With sparse the curl will peak once per character,
  155. #: with dense twice.
  156. # text_composition_strategy platform
  157. #: Control how kitty composites text glyphs onto the background color.
  158. #: The default value of platform tries for text rendering as close to
  159. #: "native" for the platform kitty is running on as possible.
  160. #: A value of legacy uses the old (pre kitty 0.28) strategy for how
  161. #: glyphs are composited. This will make dark text on light
  162. #: backgrounds look thicker and light text on dark backgrounds
  163. #: thinner. It might also make some text appear like the strokes are
  164. #: uneven.
  165. #: You can fine tune the actual contrast curve used for glyph
  166. #: composition by specifying two space separated numbers for this
  167. #: setting.
  168. #: The first number is the gamma adjustment, which controls the
  169. #: thickness of dark text on light backgrounds. Increasing the value
  170. #: will make text appear thicker. The default value for this is 1.0 on
  171. #: Linux and 1.7 on macOS. Valid values are 0.01 and above. The result
  172. #: is scaled based on the luminance difference between the background
  173. #: and the foreground. Dark text on light backgrounds receives the
  174. #: full impact of the curve while light text on dark backgrounds is
  175. #: affected very little.
  176. #: The second number is an additional multiplicative contrast. It is
  177. #: percentage ranging from 0 to 100. The default value is 0 on Linux
  178. #: and 30 on macOS.
  179. #: If you wish to achieve similar looking thickness in light and dark
  180. #: themes, a good way to experiment is start by setting the value to
  181. #: 1.0 0 and use a dark theme. Then adjust the second parameter until
  182. #: it looks good. Then switch to a light theme and adjust the first
  183. #: parameter until the perceived thickness matches the dark theme.
  184. #: }}}
  185. #: Cursor customization {{{
  186. # cursor #cccccc
  187. #: Default cursor color. If set to the special value none the cursor
  188. #: will be rendered with a "reverse video" effect. It's color will be
  189. #: the color of the text in the cell it is over and the text will be
  190. #: rendered with the background color of the cell. Note that if the
  191. #: program running in the terminal sets a cursor color, this takes
  192. #: precedence. Also, the cursor colors are modified if the cell
  193. #: background and foreground colors have very low contrast.
  194. # cursor_text_color #111111
  195. #: The color of text under the cursor. If you want it rendered with
  196. #: the background color of the cell underneath instead, use the
  197. #: special keyword: background. Note that if cursor is set to none
  198. #: then this option is ignored.
  199. # cursor_shape block
  200. #: The cursor shape can be one of block, beam, underline. Note that
  201. #: when reloading the config this will be changed only if the cursor
  202. #: shape has not been set by the program running in the terminal. This
  203. #: sets the default cursor shape, applications running in the terminal
  204. #: can override it. In particular, shell integration
  205. #: <https://sw.kovidgoyal.net/kitty/shell-integration/> in kitty sets
  206. #: the cursor shape to beam at shell prompts. You can avoid this by
  207. #: setting shell_integration to no-cursor.
  208. # cursor_beam_thickness 1.5
  209. #: The thickness of the beam cursor (in pts).
  210. # cursor_underline_thickness 2.0
  211. #: The thickness of the underline cursor (in pts).
  212. # cursor_blink_interval -1
  213. #: The interval to blink the cursor (in seconds). Set to zero to
  214. #: disable blinking. Negative values mean use system default. Note
  215. #: that the minimum interval will be limited to repaint_delay.
  216. # cursor_stop_blinking_after 15.0
  217. #: Stop blinking cursor after the specified number of seconds of
  218. #: keyboard inactivity. Set to zero to never stop blinking.
  219. #: }}}
  220. #: Scrollback {{{
  221. # scrollback_lines 2000
  222. #: Number of lines of history to keep in memory for scrolling back.
  223. #: Memory is allocated on demand. Negative numbers are (effectively)
  224. #: infinite scrollback. Note that using very large scrollback is not
  225. #: recommended as it can slow down performance of the terminal and
  226. #: also use large amounts of RAM. Instead, consider using
  227. #: scrollback_pager_history_size. Note that on config reload if this
  228. #: is changed it will only affect newly created windows, not existing
  229. #: ones.
  230. # scrollback_pager less --chop-long-lines --RAW-CONTROL-CHARS +INPUT_LINE_NUMBER
  231. #: Program with which to view scrollback in a new window. The
  232. #: scrollback buffer is passed as STDIN to this program. If you change
  233. #: it, make sure the program you use can handle ANSI escape sequences
  234. #: for colors and text formatting. INPUT_LINE_NUMBER in the command
  235. #: line above will be replaced by an integer representing which line
  236. #: should be at the top of the screen. Similarly CURSOR_LINE and
  237. #: CURSOR_COLUMN will be replaced by the current cursor position or
  238. #: set to 0 if there is no cursor, for example, when showing the last
  239. #: command output.
  240. # scrollback_pager_history_size 0
  241. #: Separate scrollback history size (in MB), used only for browsing
  242. #: the scrollback buffer with pager. This separate buffer is not
  243. #: available for interactive scrolling but will be piped to the pager
  244. #: program when viewing scrollback buffer in a separate window. The
  245. #: current implementation stores the data in UTF-8, so approximatively
  246. #: 10000 lines per megabyte at 100 chars per line, for pure ASCII,
  247. #: unformatted text. A value of zero or less disables this feature.
  248. #: The maximum allowed size is 4GB. Note that on config reload if this
  249. #: is changed it will only affect newly created windows, not existing
  250. #: ones.
  251. # scrollback_fill_enlarged_window no
  252. #: Fill new space with lines from the scrollback buffer after
  253. #: enlarging a window.
  254. # wheel_scroll_multiplier 5.0
  255. #: Multiplier for the number of lines scrolled by the mouse wheel.
  256. #: Note that this is only used for low precision scrolling devices,
  257. #: not for high precision scrolling devices on platforms such as macOS
  258. #: and Wayland. Use negative numbers to change scroll direction. See
  259. #: also wheel_scroll_min_lines.
  260. # wheel_scroll_min_lines 1
  261. #: The minimum number of lines scrolled by the mouse wheel. The scroll
  262. #: multiplier wheel_scroll_multiplier only takes effect after it
  263. #: reaches this number. Note that this is only used for low precision
  264. #: scrolling devices like wheel mice that scroll by very small amounts
  265. #: when using the wheel. With a negative number, the minimum number of
  266. #: lines will always be added.
  267. # touch_scroll_multiplier 1.0
  268. #: Multiplier for the number of lines scrolled by a touchpad. Note
  269. #: that this is only used for high precision scrolling devices on
  270. #: platforms such as macOS and Wayland. Use negative numbers to change
  271. #: scroll direction.
  272. #: }}}
  273. #: Mouse {{{
  274. # mouse_hide_wait 3.0
  275. # mouse_hide_wait 1.0
  276. #: Hide mouse cursor after the specified number of seconds of the
  277. #: mouse not being used. Set to zero to disable mouse cursor hiding.
  278. #: Set to a negative value to hide the mouse cursor immediately when
  279. #: typing text. Disabled by default on macOS as getting it to work
  280. #: robustly with the ever-changing sea of bugs that is Cocoa is too
  281. #: much effort.
  282. # url_color #0087bd
  283. # url_style curly
  284. #: The color and style for highlighting URLs on mouse-over. url_style
  285. #: can be one of: none, straight, double, curly, dotted, dashed.
  286. # open_url_with default
  287. #: The program to open clicked URLs. The special value default with
  288. #: first look for any URL handlers defined via the open_actions
  289. #: <https://sw.kovidgoyal.net/kitty/open_actions/> facility and if non
  290. #: are found, it will use the Operating System's default URL handler
  291. #: (open on macOS and xdg-open on Linux).
  292. # url_prefixes file ftp ftps gemini git gopher http https irc ircs kitty mailto news sftp ssh
  293. #: The set of URL prefixes to look for when detecting a URL under the
  294. #: mouse cursor.
  295. # detect_urls yes
  296. #: Detect URLs under the mouse. Detected URLs are highlighted with an
  297. #: underline and the mouse cursor becomes a hand over them. Even if
  298. #: this option is disabled, URLs are still clickable.
  299. # url_excluded_characters
  300. #: Additional characters to be disallowed from URLs, when detecting
  301. #: URLs under the mouse cursor. By default, all characters that are
  302. #: legal in URLs are allowed. Additionally, newlines are allowed (but
  303. #: stripped). This is to accommodate programs such as mutt that add
  304. #: hard line breaks even for continued lines. \n can be added to this
  305. #: option to disable this behavior. Special characters can be
  306. #: specified using backslash escapes, to specify a backslash use a
  307. #: double backslash.
  308. # show_hyperlink_targets no
  309. #: When the mouse hovers over a terminal hyperlink, show the actual
  310. #: URL that will be activated when the hyperlink is clicked.
  311. # copy_on_select no
  312. #: Copy to clipboard or a private buffer on select. With this set to
  313. #: clipboard, selecting text with the mouse will cause the text to be
  314. #: copied to clipboard. Useful on platforms such as macOS that do not
  315. #: have the concept of primary selection. You can instead specify a
  316. #: name such as a1 to copy to a private kitty buffer. Map a shortcut
  317. #: with the paste_from_buffer action to paste from this private
  318. #: buffer. For example::
  319. #: copy_on_select a1
  320. #: map shift+cmd+v paste_from_buffer a1
  321. #: Note that copying to the clipboard is a security risk, as all
  322. #: programs, including websites open in your browser can read the
  323. #: contents of the system clipboard.
  324. # paste_actions quote-urls-at-prompt
  325. #: A comma separated list of actions to take when pasting text into
  326. #: the terminal. The supported paste actions are:
  327. #: quote-urls-at-prompt:
  328. #: If the text being pasted is a URL and the cursor is at a shell prompt,
  329. #: automatically quote the URL (needs shell_integration).
  330. #: confirm:
  331. #: Confirm the paste if bracketed paste mode is not active or there is
  332. #: a large amount of text being pasted.
  333. #: filter:
  334. #: Run the filter_paste() function from the file paste-actions.py in
  335. #: the kitty config directory on the pasted text. The text returned by the
  336. #: function will be actually pasted.
  337. # strip_trailing_spaces never
  338. #: Remove spaces at the end of lines when copying to clipboard. A
  339. #: value of smart will do it when using normal selections, but not
  340. #: rectangle selections. A value of always will always do it.
  341. # select_by_word_characters @-./_~?&=%+#
  342. #: Characters considered part of a word when double clicking. In
  343. #: addition to these characters any character that is marked as an
  344. #: alphanumeric character in the Unicode database will be matched.
  345. # select_by_word_characters_forward
  346. #: Characters considered part of a word when extending the selection
  347. #: forward on double clicking. In addition to these characters any
  348. #: character that is marked as an alphanumeric character in the
  349. #: Unicode database will be matched.
  350. #: If empty (default) select_by_word_characters will be used for both
  351. #: directions.
  352. # click_interval -1.0
  353. #: The interval between successive clicks to detect double/triple
  354. #: clicks (in seconds). Negative numbers will use the system default
  355. #: instead, if available, or fallback to 0.5.
  356. # focus_follows_mouse no
  357. #: Set the active window to the window under the mouse when moving the
  358. #: mouse around.
  359. # pointer_shape_when_grabbed arrow
  360. #: The shape of the mouse pointer when the program running in the
  361. #: terminal grabs the mouse. Valid values are: arrow, beam and hand.
  362. # default_pointer_shape beam
  363. #: The default shape of the mouse pointer. Valid values are: arrow,
  364. #: beam and hand.
  365. # pointer_shape_when_dragging beam
  366. #: The default shape of the mouse pointer when dragging across text.
  367. #: Valid values are: arrow, beam and hand.
  368. #: Mouse actions {{{
  369. #: Mouse buttons can be mapped to perform arbitrary actions. The
  370. #: syntax is:
  371. #: .. code-block:: none
  372. #: mouse_map button-name event-type modes action
  373. #: Where button-name is one of left, middle, right, b1 ... b8 with
  374. #: added keyboard modifiers. For example: ctrl+shift+left refers to
  375. #: holding the Ctrl+Shift keys while clicking with the left mouse
  376. #: button. The value b1 ... b8 can be used to refer to up to eight
  377. #: buttons on a mouse.
  378. #: event-type is one of press, release, doublepress, triplepress,
  379. #: click, doubleclick. modes indicates whether the action is performed
  380. #: when the mouse is grabbed by the program running in the terminal,
  381. #: or not. The values are grabbed or ungrabbed or a comma separated
  382. #: combination of them. grabbed refers to when the program running in
  383. #: the terminal has requested mouse events. Note that the click and
  384. #: double click events have a delay of click_interval to disambiguate
  385. #: from double and triple presses.
  386. #: You can run kitty with the kitty --debug-input command line option
  387. #: to see mouse events. See the builtin actions below to get a sense
  388. #: of what is possible.
  389. #: If you want to unmap an action, map it to no_op. For example, to
  390. #: disable opening of URLs with a plain click::
  391. #: mouse_map left click ungrabbed no_op
  392. #: See all the mappable actions including mouse actions here
  393. #: <https://sw.kovidgoyal.net/kitty/actions/>.
  394. #: .. note::
  395. #: Once a selection is started, releasing the button that started it will
  396. #: automatically end it and no release event will be dispatched.
  397. # clear_all_mouse_actions no
  398. #: Remove all mouse action definitions up to this point. Useful, for
  399. #: instance, to remove the default mouse actions.
  400. #: Click the link under the mouse or move the cursor
  401. # mouse_map left click ungrabbed mouse_handle_click selection link prompt
  402. #:: First check for a selection and if one exists do nothing. Then
  403. #:: check for a link under the mouse cursor and if one exists, click
  404. #:: it. Finally check if the click happened at the current shell
  405. #:: prompt and if so, move the cursor to the click location. Note
  406. #:: that this requires shell integration
  407. #:: <https://sw.kovidgoyal.net/kitty/shell-integration/> to work.
  408. #: Click the link under the mouse or move the cursor even when grabbed
  409. # mouse_map shift+left click grabbed,ungrabbed mouse_handle_click selection link prompt
  410. #:: Same as above, except that the action is performed even when the
  411. #:: mouse is grabbed by the program running in the terminal.
  412. #: Click the link under the mouse cursor
  413. # mouse_map ctrl+shift+left release grabbed,ungrabbed mouse_handle_click link
  414. #:: Variant with Ctrl+Shift is present because the simple click based
  415. #:: version has an unavoidable delay of click_interval, to
  416. #:: disambiguate clicks from double clicks.
  417. #: Discard press event for link click
  418. # mouse_map ctrl+shift+left press grabbed discard_event
  419. #:: Prevent this press event from being sent to the program that has
  420. #:: grabbed the mouse, as the corresponding release event is used to
  421. #:: open a URL.
  422. #: Paste from the primary selection
  423. # mouse_map middle release ungrabbed paste_from_selection
  424. #: Start selecting text
  425. # mouse_map left press ungrabbed mouse_selection normal
  426. #: Start selecting text in a rectangle
  427. # mouse_map ctrl+alt+left press ungrabbed mouse_selection rectangle
  428. #: Select a word
  429. # mouse_map left doublepress ungrabbed mouse_selection word
  430. #: Select a line
  431. # mouse_map left triplepress ungrabbed mouse_selection line
  432. #: Select line from point
  433. # mouse_map ctrl+alt+left triplepress ungrabbed mouse_selection line_from_point
  434. #:: Select from the clicked point to the end of the line.
  435. #: Extend the current selection
  436. # mouse_map right press ungrabbed mouse_selection extend
  437. #:: If you want only the end of the selection to be moved instead of
  438. #:: the nearest boundary, use move-end instead of extend.
  439. #: Paste from the primary selection even when grabbed
  440. # mouse_map shift+middle release ungrabbed,grabbed paste_selection
  441. # mouse_map shift+middle press grabbed discard_event
  442. #: Start selecting text even when grabbed
  443. # mouse_map shift+left press ungrabbed,grabbed mouse_selection normal
  444. #: Start selecting text in a rectangle even when grabbed
  445. # mouse_map ctrl+shift+alt+left press ungrabbed,grabbed mouse_selection rectangle
  446. #: Select a word even when grabbed
  447. # mouse_map shift+left doublepress ungrabbed,grabbed mouse_selection word
  448. #: Select a line even when grabbed
  449. # mouse_map shift+left triplepress ungrabbed,grabbed mouse_selection line
  450. #: Select line from point even when grabbed
  451. # mouse_map ctrl+shift+alt+left triplepress ungrabbed,grabbed mouse_selection line_from_point
  452. #:: Select from the clicked point to the end of the line even when
  453. #:: grabbed.
  454. #: Extend the current selection even when grabbed
  455. # mouse_map shift+right press ungrabbed,grabbed mouse_selection extend
  456. #: Show clicked command output in pager
  457. # mouse_map ctrl+shift+right press ungrabbed mouse_show_command_output
  458. #:: Requires shell integration
  459. #:: <https://sw.kovidgoyal.net/kitty/shell-integration/> to work.
  460. #: }}}
  461. #: }}}
  462. #: Performance tuning {{{
  463. # repaint_delay 10
  464. #: Delay between screen updates (in milliseconds). Decreasing it,
  465. #: increases frames-per-second (FPS) at the cost of more CPU usage.
  466. #: The default value yields ~100 FPS which is more than sufficient for
  467. #: most uses. Note that to actually achieve 100 FPS, you have to
  468. #: either set sync_to_monitor to no or use a monitor with a high
  469. #: refresh rate. Also, to minimize latency when there is pending input
  470. #: to be processed, this option is ignored.
  471. # input_delay 3
  472. #: Delay before input from the program running in the terminal is
  473. #: processed (in milliseconds). Note that decreasing it will increase
  474. #: responsiveness, but also increase CPU usage and might cause flicker
  475. #: in full screen programs that redraw the entire screen on each loop,
  476. #: because kitty is so fast that partial screen updates will be drawn.
  477. # sync_to_monitor yes
  478. #: Sync screen updates to the refresh rate of the monitor. This
  479. #: prevents screen tearing
  480. #: <https://en.wikipedia.org/wiki/Screen_tearing> when scrolling.
  481. #: However, it limits the rendering speed to the refresh rate of your
  482. #: monitor. With a very high speed mouse/high keyboard repeat rate,
  483. #: you may notice some slight input latency. If so, set this to no.
  484. #: }}}
  485. #: Terminal bell {{{
  486. # enable_audio_bell yes
  487. # enable_audio_bell no
  488. #: The audio bell. Useful to disable it in environments that require
  489. #: silence.
  490. # visual_bell_duration 0.0
  491. #: The visual bell duration (in seconds). Flash the screen when a bell
  492. #: occurs for the specified number of seconds. Set to zero to disable.
  493. # visual_bell_color none
  494. #: The color used by visual bell. Set to none will fall back to
  495. #: selection background color. If you feel that the visual bell is too
  496. #: bright, you can set it to a darker color.
  497. # window_alert_on_bell yes
  498. #: Request window attention on bell. Makes the dock icon bounce on
  499. #: macOS or the taskbar flash on linux.
  500. # bell_on_tab "🔔 "
  501. #: Some text or a Unicode symbol to show on the tab if a window in the
  502. #: tab that does not have focus has a bell. If you want to use leading
  503. #: or trailing spaces, surround the text with quotes. See
  504. #: tab_title_template for how this is rendered.
  505. #: For backwards compatibility, values of yes, y and true are
  506. #: converted to the default bell symbol and no, n, false and none are
  507. #: converted to the empty string.
  508. # command_on_bell none
  509. #: Program to run when a bell occurs. The environment variable
  510. #: KITTY_CHILD_CMDLINE can be used to get the program running in the
  511. #: window in which the bell occurred.
  512. # bell_path none
  513. #: Path to a sound file to play as the bell sound. If set to none, the
  514. #: system default bell sound is used. Must be in a format supported by
  515. #: the operating systems sound API, such as WAV or OGA on Linux
  516. #: (libcanberra) or AIFF, MP3 or WAV on macOS (NSSound)
  517. # linux_bell_theme __custom
  518. #: The XDG Sound Theme kitty will use to play the bell sound. Defaults
  519. #: to the custom theme name used by GNOME and Budgie, falling back to
  520. #: the default freedesktop theme if it does not exist. This option may
  521. #: be removed if Linux ever provides desktop-agnostic support for
  522. #: setting system sound themes.
  523. #: }}}
  524. #: Tab bar {{{
  525. # tab_bar_edge bottom
  526. #: The edge to show the tab bar on, top or bottom.
  527. # tab_bar_margin_width 0.0
  528. #: The margin to the left and right of the tab bar (in pts).
  529. # tab_bar_margin_height 0.0 0.0
  530. #: The margin above and below the tab bar (in pts). The first number
  531. #: is the margin between the edge of the OS Window and the tab bar.
  532. #: The second number is the margin between the tab bar and the
  533. #: contents of the current tab.
  534. # tab_bar_style fade
  535. # tab_bar_style powerline
  536. #: The tab bar style, can be one of:
  537. #: fade
  538. #: Each tab's edges fade into the background color. (See also tab_fade)
  539. #: slant
  540. #: Tabs look like the tabs in a physical file.
  541. #: separator
  542. #: Tabs are separated by a configurable separator. (See also
  543. #: tab_separator)
  544. #: powerline
  545. #: Tabs are shown as a continuous line with "fancy" separators.
  546. #: (See also tab_powerline_style)
  547. #: custom
  548. #: A user-supplied Python function called draw_tab is loaded from the file
  549. #: tab_bar.py in the kitty config directory. For examples of how to
  550. #: write such a function, see the functions named draw_tab_with_* in
  551. #: kitty's source code: kitty/tab_bar.py. See also
  552. #: this discussion <https://github.com/kovidgoyal/kitty/discussions/4447>
  553. #: for examples from kitty users.
  554. #: hidden
  555. #: The tab bar is hidden. If you use this, you might want to create
  556. #: a mapping for the select_tab action which presents you with a list of
  557. #: tabs and allows for easy switching to a tab.
  558. # tab_bar_align left
  559. #: The horizontal alignment of the tab bar, can be one of: left,
  560. #: center, right.
  561. # tab_bar_min_tabs 2
  562. #: The minimum number of tabs that must exist before the tab bar is
  563. #: shown.
  564. # tab_switch_strategy previous
  565. #: The algorithm to use when switching to a tab when the current tab
  566. #: is closed. The default of previous will switch to the last used
  567. #: tab. A value of left will switch to the tab to the left of the
  568. #: closed tab. A value of right will switch to the tab to the right of
  569. #: the closed tab. A value of last will switch to the right-most tab.
  570. # tab_fade 0.25 0.5 0.75 1
  571. #: Control how each tab fades into the background when using fade for
  572. #: the tab_bar_style. Each number is an alpha (between zero and one)
  573. #: that controls how much the corresponding cell fades into the
  574. #: background, with zero being no fade and one being full fade. You
  575. #: can change the number of cells used by adding/removing entries to
  576. #: this list.
  577. # tab_separator " ┇"
  578. #: The separator between tabs in the tab bar when using separator as
  579. #: the tab_bar_style.
  580. # tab_powerline_style angled
  581. #: The powerline separator style between tabs in the tab bar when
  582. #: using powerline as the tab_bar_style, can be one of: angled,
  583. #: slanted, round.
  584. # tab_activity_symbol none
  585. #: Some text or a Unicode symbol to show on the tab if a window in the
  586. #: tab that does not have focus has some activity. If you want to use
  587. #: leading or trailing spaces, surround the text with quotes. See
  588. #: tab_title_template for how this is rendered.
  589. # tab_title_max_length 0
  590. #: The maximum number of cells that can be used to render the text in
  591. #: a tab. A value of zero means that no limit is applied.
  592. # tab_title_template "{fmt.fg.red}{bell_symbol}{activity_symbol}{fmt.fg.tab}{title}"
  593. #: A template to render the tab title. The default just renders the
  594. #: title with optional symbols for bell and activity. If you wish to
  595. #: include the tab-index as well, use something like: {index}:{title}.
  596. #: Useful if you have shortcuts mapped for goto_tab N. If you prefer
  597. #: to see the index as a superscript, use {sup.index}. All data
  598. #: available is:
  599. #: title
  600. #: The current tab title.
  601. #: index
  602. #: The tab index useable with goto_tab N goto_tab shortcuts.
  603. #: layout_name
  604. #: The current layout name.
  605. #: num_windows
  606. #: The number of windows in the tab.
  607. #: num_window_groups
  608. #: The number of window groups (not counting overlay windows) in the tab.
  609. #: tab.active_wd
  610. #: The working directory of the currently active window in the tab
  611. #: (expensive, requires syscall). Use active_oldest_wd to get
  612. #: the directory of the oldest foreground process rather than the newest.
  613. #: tab.active_exe
  614. #: The name of the executable running in the foreground of the currently
  615. #: active window in the tab (expensive, requires syscall). Use
  616. #: active_oldest_exe for the oldest foreground process.
  617. #: max_title_length
  618. #: The maximum title length available.
  619. #: Note that formatting is done by Python's string formatting
  620. #: machinery, so you can use, for instance, {layout_name[:2].upper()}
  621. #: to show only the first two letters of the layout name, upper-cased.
  622. #: If you want to style the text, you can use styling directives, for
  623. #: example:
  624. #: `{fmt.fg.red}red{fmt.fg.tab}normal{fmt.bg._00FF00}greenbg{fmt.bg.tab}`.
  625. #: Similarly, for bold and italic:
  626. #: `{fmt.bold}bold{fmt.nobold}normal{fmt.italic}italic{fmt.noitalic}`.
  627. #: Note that for backward compatibility, if {bell_symbol} or
  628. #: {activity_symbol} are not present in the template, they are
  629. #: prepended to it.
  630. # active_tab_title_template none
  631. #: Template to use for active tabs. If not specified falls back to
  632. #: tab_title_template.
  633. # active_tab_foreground #000
  634. # active_tab_background #eee
  635. # active_tab_font_style bold-italic
  636. # inactive_tab_foreground #444
  637. # inactive_tab_background #999
  638. # inactive_tab_font_style normal
  639. #: Tab bar colors and styles.
  640. # tab_bar_background none
  641. #: Background color for the tab bar. Defaults to using the terminal
  642. #: background color.
  643. # tab_bar_margin_color none
  644. #: Color for the tab bar margin area. Defaults to using the terminal
  645. #: background color for margins above and below the tab bar. For side
  646. #: margins the default color is chosen to match the background color
  647. #: of the neighboring tab.
  648. #: }}}
  649. #: Color scheme {{{
  650. # foreground #dddddd
  651. # background #000000
  652. #: The foreground and background colors.
  653. # background_opacity 0.8
  654. #: The opacity of the background. A number between zero and one, where
  655. #: one is opaque and zero is fully transparent. This will only work if
  656. #: supported by the OS (for instance, when using a compositor under
  657. #: X11). Note that it only sets the background color's opacity in
  658. #: cells that have the same background color as the default terminal
  659. #: background, so that things like the status bar in vim, powerline
  660. #: prompts, etc. still look good. But it means that if you use a color
  661. #: theme with a background color in your editor, it will not be
  662. #: rendered as transparent. Instead you should change the default
  663. #: background color in your kitty config and not use a background
  664. #: color in the editor color scheme. Or use the escape codes to set
  665. #: the terminals default colors in a shell script to launch your
  666. #: editor. Be aware that using a value less than 1.0 is a (possibly
  667. #: significant) performance hit. If you want to dynamically change
  668. #: transparency of windows, set dynamic_background_opacity to yes
  669. #: (this is off by default as it has a performance cost). Changing
  670. #: this option when reloading the config will only work if
  671. #: dynamic_background_opacity was enabled in the original config.
  672. # background_image none
  673. #: Path to a background image. Must be in PNG format.
  674. # background_image_layout tiled
  675. #: Whether to tile, scale or clamp the background image. The value can
  676. #: be one of tiled, mirror-tiled, scaled, clamped or centered.
  677. # background_image_linear no
  678. #: When background image is scaled, whether linear interpolation
  679. #: should be used.
  680. # dynamic_background_opacity no
  681. #: Allow changing of the background_opacity dynamically, using either
  682. #: keyboard shortcuts (increase_background_opacity and
  683. #: decrease_background_opacity) or the remote control facility.
  684. #: Changing this option by reloading the config is not supported.
  685. # background_tint 0.0
  686. #: How much to tint the background image by the background color. This
  687. #: option makes it easier to read the text. Tinting is done using the
  688. #: current background color for each window. This option applies only
  689. #: if background_opacity is set and transparent windows are supported
  690. #: or background_image is set.
  691. # background_tint_gaps 1.0
  692. #: How much to tint the background image at the window gaps by the
  693. #: background color, after applying background_tint. Since this is
  694. #: multiplicative with background_tint, it can be used to lighten the
  695. #: tint over the window gaps for a *separated* look.
  696. # dim_opacity 0.75
  697. #: How much to dim text that has the DIM/FAINT attribute set. One
  698. #: means no dimming and zero means fully dimmed (i.e. invisible).
  699. # selection_foreground #000000
  700. # selection_background #fffacd
  701. #: The foreground and background colors for text selected with the
  702. #: mouse. Setting both of these to none will cause a "reverse video"
  703. #: effect for selections, where the selection will be the cell text
  704. #: color and the text will become the cell background color. Setting
  705. #: only selection_foreground to none will cause the foreground color
  706. #: to be used unchanged. Note that these colors can be overridden by
  707. #: the program running in the terminal.
  708. #: The color table {{{
  709. #: The 256 terminal colors. There are 8 basic colors, each color has a
  710. #: dull and bright version, for the first 16 colors. You can set the
  711. #: remaining 240 colors as color16 to color255.
  712. # color0 #000000
  713. # color8 #767676
  714. #: black
  715. # color1 #cc0403
  716. # color9 #f2201f
  717. #: red
  718. # color2 #19cb00
  719. # color10 #23fd00
  720. #: green
  721. # color3 #cecb00
  722. # color11 #fffd00
  723. #: yellow
  724. # color4 #0d73cc
  725. # color12 #1a8fff
  726. #: blue
  727. # color5 #cb1ed1
  728. # color13 #fd28ff
  729. #: magenta
  730. # color6 #0dcdcd
  731. # color14 #14ffff
  732. #: cyan
  733. # color7 #dddddd
  734. # color15 #ffffff
  735. #: white
  736. # mark1_foreground black
  737. #: Color for marks of type 1
  738. # mark1_background #98d3cb
  739. #: Color for marks of type 1 (light steel blue)
  740. # mark2_foreground black
  741. #: Color for marks of type 2
  742. # mark2_background #f2dcd3
  743. #: Color for marks of type 1 (beige)
  744. # mark3_foreground black
  745. #: Color for marks of type 3
  746. # mark3_background #f274bc
  747. #: Color for marks of type 3 (violet)
  748. #: }}}
  749. #: }}}
  750. #: Advanced {{{
  751. # shell .
  752. #: The shell program to execute. The default value of . means to use
  753. #: whatever shell is set as the default shell for the current user.
  754. #: Note that on macOS if you change this, you might need to add
  755. #: --login and --interactive to ensure that the shell starts in
  756. #: interactive mode and reads its startup rc files.
  757. # editor .
  758. #: The terminal based text editor (such as vim or nano) to use when
  759. #: editing the kitty config file or similar tasks.
  760. #: The default value of . means to use the environment variables
  761. #: VISUAL and EDITOR in that order. If these variables aren't set,
  762. #: kitty will run your shell ($SHELL -l -i -c env) to see if your
  763. #: shell startup rc files set VISUAL or EDITOR. If that doesn't work,
  764. #: kitty will cycle through various known editors (vim, emacs, etc.)
  765. #: and take the first one that exists on your system.
  766. # close_on_child_death no
  767. #: Close the window when the child process (shell) exits. With the
  768. #: default value no, the terminal will remain open when the child
  769. #: exits as long as there are still processes outputting to the
  770. #: terminal (for example disowned or backgrounded processes). When
  771. #: enabled with yes, the window will close as soon as the child
  772. #: process exits. Note that setting it to yes means that any
  773. #: background processes still using the terminal can fail silently
  774. #: because their stdout/stderr/stdin no longer work.
  775. # remote_control_password
  776. #: Allow other programs to control kitty using passwords. This option
  777. #: can be specified multiple times to add multiple passwords. If no
  778. #: passwords are present kitty will ask the user for permission if a
  779. #: program tries to use remote control with a password. A password can
  780. #: also *optionally* be associated with a set of allowed remote
  781. #: control actions. For example::
  782. #: remote_control_password "my passphrase" get-colors set-colors focus-window focus-tab
  783. #: Only the specified actions will be allowed when using this
  784. #: password. Glob patterns can be used too, for example::
  785. #: remote_control_password "my passphrase" set-tab-* resize-*
  786. #: To get a list of available actions, run::
  787. #: kitty @ --help
  788. #: A set of actions to be allowed when no password is sent can be
  789. #: specified by using an empty password. For example::
  790. #: remote_control_password "" *-colors
  791. #: Finally, the path to a python module can be specified that provides
  792. #: a function is_cmd_allowed that is used to check every remote
  793. #: control command. For example::
  794. #: remote_control_password "my passphrase" my_rc_command_checker.py
  795. #: Relative paths are resolved from the kitty configuration directory.
  796. #: See rc_custom_auth <https://sw.kovidgoyal.net/kitty/remote-
  797. #: control/#rc-custom-auth> for details.
  798. # allow_remote_control no
  799. #: Allow other programs to control kitty. If you turn this on, other
  800. #: programs can control all aspects of kitty, including sending text
  801. #: to kitty windows, opening new windows, closing windows, reading the
  802. #: content of windows, etc. Note that this even works over SSH
  803. #: connections. The default setting of no prevents any form of remote
  804. #: control. The meaning of the various values are:
  805. #: password
  806. #: Remote control requests received over both the TTY device and the socket
  807. #: are confirmed based on passwords, see remote_control_password.
  808. #: socket-only
  809. #: Remote control requests received over a socket are accepted
  810. #: unconditionally. Requests received over the TTY are denied.
  811. #: See listen_on.
  812. #: socket
  813. #: Remote control requests received over a socket are accepted
  814. #: unconditionally. Requests received over the TTY are confirmed based on
  815. #: password.
  816. #: no
  817. #: Remote control is completely disabled.
  818. #: yes
  819. #: Remote control requests are always accepted.
  820. # listen_on none
  821. #: Listen to the specified UNIX socket for remote control connections.
  822. #: Note that this will apply to all kitty instances. It can be
  823. #: overridden by the kitty --listen-on command line option, which also
  824. #: supports listening on a TCP socket. This option accepts only UNIX
  825. #: sockets, such as unix:${TEMP}/mykitty or unix:@mykitty (on Linux).
  826. #: Environment variables are expanded and relative paths are resolved
  827. #: with respect to the temporary directory. If {kitty_pid} is present,
  828. #: then it is replaced by the PID of the kitty process, otherwise the
  829. #: PID of the kitty process is appended to the value, with a hyphen.
  830. #: See the help for kitty --listen-on for more details. Note that this
  831. #: will be ignored unless allow_remote_control is set to either: yes,
  832. #: socket or socket-only. Changing this option by reloading the config
  833. #: is not supported.
  834. # env
  835. #: Specify the environment variables to be set in all child processes.
  836. #: Using the name with an equal sign (e.g. env VAR=) will set it to
  837. #: the empty string. Specifying only the name (e.g. env VAR) will
  838. #: remove the variable from the child process' environment. Note that
  839. #: environment variables are expanded recursively, for example::
  840. #: env VAR1=a
  841. #: env VAR2=${HOME}/${VAR1}/b
  842. #: The value of VAR2 will be <path to home directory>/a/b.
  843. # watcher
  844. #: Path to python file which will be loaded for watchers
  845. #: <https://sw.kovidgoyal.net/kitty/launch/#watchers>. Can be
  846. #: specified more than once to load multiple watchers. The watchers
  847. #: will be added to every kitty window. Relative paths are resolved
  848. #: relative to the kitty config directory. Note that reloading the
  849. #: config will only affect windows created after the reload.
  850. # exe_search_path
  851. #: Control where kitty finds the programs to run. The default search
  852. #: order is: First search the system wide PATH, then ~/.local/bin and
  853. #: ~/bin. If still not found, the PATH defined in the login shell
  854. #: after sourcing all its startup files is tried. Finally, if present,
  855. #: the PATH specified by the env option is tried.
  856. #: This option allows you to prepend, append, or remove paths from
  857. #: this search order. It can be specified multiple times for multiple
  858. #: paths. A simple path will be prepended to the search order. A path
  859. #: that starts with the + sign will be append to the search order,
  860. #: after ~/bin above. A path that starts with the - sign will be
  861. #: removed from the entire search order. For example::
  862. #: exe_search_path /some/prepended/path
  863. #: exe_search_path +/some/appended/path
  864. #: exe_search_path -/some/excluded/path
  865. # update_check_interval 24
  866. #: The interval to periodically check if an update to kitty is
  867. #: available (in hours). If an update is found, a system notification
  868. #: is displayed informing you of the available update. The default is
  869. #: to check every 24 hours, set to zero to disable. Update checking is
  870. #: only done by the official binary builds. Distro packages or source
  871. #: builds do not do update checking. Changing this option by reloading
  872. #: the config is not supported.
  873. # startup_session none
  874. #: Path to a session file to use for all kitty instances. Can be
  875. #: overridden by using the kitty --session =none command line option
  876. #: for individual instances. See sessions
  877. #: <https://sw.kovidgoyal.net/kitty/overview/#sessions> in the kitty
  878. #: documentation for details. Note that relative paths are interpreted
  879. #: with respect to the kitty config directory. Environment variables
  880. #: in the path are expanded. Changing this option by reloading the
  881. #: config is not supported.
  882. # clipboard_control write-clipboard write-primary read-clipboard-ask read-primary-ask
  883. #: Allow programs running in kitty to read and write from the
  884. #: clipboard. You can control exactly which actions are allowed. The
  885. #: possible actions are: write-clipboard, read-clipboard, write-
  886. #: primary, read-primary, read-clipboard-ask, read-primary-ask. The
  887. #: default is to allow writing to the clipboard and primary selection
  888. #: and to ask for permission when a program tries to read from the
  889. #: clipboard. Note that disabling the read confirmation is a security
  890. #: risk as it means that any program, even the ones running on a
  891. #: remote server via SSH can read your clipboard. See also
  892. #: clipboard_max_size.
  893. # clipboard_max_size 512
  894. #: The maximum size (in MB) of data from programs running in kitty
  895. #: that will be stored for writing to the system clipboard. A value of
  896. #: zero means no size limit is applied. See also clipboard_control.
  897. # file_transfer_confirmation_bypass
  898. #: The password that can be supplied to the file transfer kitten
  899. #: <https://sw.kovidgoyal.net/kitty/kittens/transfer/> to skip the
  900. #: transfer confirmation prompt. This should only be used when
  901. #: initiating transfers from trusted computers, over trusted networks
  902. #: or encrypted transports, as it allows any programs running on the
  903. #: remote machine to read/write to the local filesystem, without
  904. #: permission.
  905. # allow_hyperlinks yes
  906. #: Process hyperlink escape sequences (OSC 8). If disabled OSC 8
  907. #: escape sequences are ignored. Otherwise they become clickable
  908. #: links, that you can click with the mouse or by using the hints
  909. #: kitten <https://sw.kovidgoyal.net/kitty/kittens/hints/>. The
  910. #: special value of ask means that kitty will ask before opening the
  911. #: link when clicked.
  912. # shell_integration enabled
  913. #: Enable shell integration on supported shells. This enables features
  914. #: such as jumping to previous prompts, browsing the output of the
  915. #: previous command in a pager, etc. on supported shells. Set to
  916. #: disabled to turn off shell integration, completely. It is also
  917. #: possible to disable individual features, set to a space separated
  918. #: list of these values: no-rc, no-cursor, no-title, no-cwd, no-
  919. #: prompt-mark, no-complete. See Shell integration
  920. #: <https://sw.kovidgoyal.net/kitty/shell-integration/> for details.
  921. # allow_cloning ask
  922. #: Control whether programs running in the terminal can request new
  923. #: windows to be created. The canonical example is clone-in-kitty
  924. #: <https://sw.kovidgoyal.net/kitty/shell-integration/#clone-shell>.
  925. #: By default, kitty will ask for permission for each clone request.
  926. #: Allowing cloning unconditionally gives programs running in the
  927. #: terminal (including over SSH) permission to execute arbitrary code,
  928. #: as the user who is running the terminal, on the computer that the
  929. #: terminal is running on.
  930. # clone_source_strategies venv,conda,env_var,path
  931. #: Control what shell code is sourced when running clone-in-kitty in
  932. #: the newly cloned window. The supported strategies are:
  933. #: venv
  934. #: Source the file $VIRTUAL_ENV/bin/activate. This is used by the
  935. #: Python stdlib venv module and allows cloning venvs automatically.
  936. #: conda
  937. #: Run conda activate $CONDA_DEFAULT_ENV. This supports the virtual
  938. #: environments created by conda.
  939. #: env_var
  940. #: Execute the contents of the environment variable
  941. #: KITTY_CLONE_SOURCE_CODE with eval.
  942. #: path
  943. #: Source the file pointed to by the environment variable
  944. #: KITTY_CLONE_SOURCE_PATH.
  945. #: This option must be a comma separated list of the above values.
  946. #: This only source the first valid one in the above order.
  947. # term xterm-kitty
  948. #: The value of the TERM environment variable to set. Changing this
  949. #: can break many terminal programs, only change it if you know what
  950. #: you are doing, not because you read some advice on "Stack Overflow"
  951. #: to change it. The TERM variable is used by various programs to get
  952. #: information about the capabilities and behavior of the terminal. If
  953. #: you change it, depending on what programs you run, and how
  954. #: different the terminal you are changing it to is, various things
  955. #: from key-presses, to colors, to various advanced features may not
  956. #: work. Changing this option by reloading the config will only affect
  957. #: newly created windows.
  958. #: }}}
  959. #: OS specific tweaks {{{
  960. # wayland_titlebar_color system
  961. #: The color of the kitty window's titlebar on Wayland systems with
  962. #: client side window decorations such as GNOME. A value of system
  963. #: means to use the default system color, a value of background means
  964. #: to use the background color of the currently active window and
  965. #: finally you can use an arbitrary color, such as #12af59 or red.
  966. # macos_titlebar_color system
  967. #: The color of the kitty window's titlebar on macOS. A value of
  968. #: system means to use the default system color, light or dark can
  969. #: also be used to set it explicitly. A value of background means to
  970. #: use the background color of the currently active window and finally
  971. #: you can use an arbitrary color, such as #12af59 or red. WARNING:
  972. #: This option works by using a hack when arbitrary color (or
  973. #: background) is configured, as there is no proper Cocoa API for it.
  974. #: It sets the background color of the entire window and makes the
  975. #: titlebar transparent. As such it is incompatible with
  976. #: background_opacity. If you want to use both, you are probably
  977. #: better off just hiding the titlebar with hide_window_decorations.
  978. # macos_option_as_alt no
  979. #: Use the Option key as an Alt key on macOS. With this set to no,
  980. #: kitty will use the macOS native Option+Key to enter Unicode
  981. #: character behavior. This will break any Alt+Key keyboard shortcuts
  982. #: in your terminal programs, but you can use the macOS Unicode input
  983. #: technique. You can use the values: left, right or both to use only
  984. #: the left, right or both Option keys as Alt, instead. Note that
  985. #: kitty itself always treats Option the same as Alt. This means you
  986. #: cannot use this option to configure different kitty shortcuts for
  987. #: Option+Key vs. Alt+Key. Also, any kitty shortcuts using
  988. #: Option/Alt+Key will take priority, so that any such key presses
  989. #: will not be passed to terminal programs running inside kitty.
  990. #: Changing this option by reloading the config is not supported.
  991. # macos_hide_from_tasks no
  992. #: Hide the kitty window from running tasks on macOS (⌘+Tab and the
  993. #: Dock). Changing this option by reloading the config is not
  994. #: supported.
  995. # macos_quit_when_last_window_closed no
  996. #: Have kitty quit when all the top-level windows are closed on macOS.
  997. #: By default, kitty will stay running, even with no open windows, as
  998. #: is the expected behavior on macOS.
  999. # macos_window_resizable yes
  1000. #: Disable this if you want kitty top-level OS windows to not be
  1001. #: resizable on macOS. Changing this option by reloading the config
  1002. #: will only affect newly created OS windows.
  1003. # macos_thicken_font 0
  1004. #: Draw an extra border around the font with the given width, to
  1005. #: increase legibility at small font sizes on macOS. For example, a
  1006. #: value of 0.75 will result in rendering that looks similar to sub-
  1007. #: pixel antialiasing at common font sizes. Note that in modern kitty,
  1008. #: this option is obsolete (although still supported). Consider using
  1009. #: text_composition_strategy instead.
  1010. # macos_traditional_fullscreen no
  1011. #: Use the macOS traditional full-screen transition, that is faster,
  1012. #: but less pretty.
  1013. # macos_show_window_title_in all
  1014. #: Control where the window title is displayed on macOS. A value of
  1015. #: window will show the title of the currently active window at the
  1016. #: top of the macOS window. A value of menubar will show the title of
  1017. #: the currently active window in the macOS global menu bar, making
  1018. #: use of otherwise wasted space. A value of all will show the title
  1019. #: in both places, and none hides the title. See
  1020. #: macos_menubar_title_max_length for how to control the length of the
  1021. #: title in the menu bar.
  1022. # macos_menubar_title_max_length 0
  1023. #: The maximum number of characters from the window title to show in
  1024. #: the macOS global menu bar. Values less than one means that there is
  1025. #: no maximum limit.
  1026. # macos_custom_beam_cursor no
  1027. #: Use a custom mouse cursor for macOS that is easier to see on both
  1028. #: light and dark backgrounds. Nowadays, the default macOS cursor
  1029. #: already comes with a white border. WARNING: this might make your
  1030. #: mouse cursor invisible on dual GPU machines. Changing this option
  1031. #: by reloading the config is not supported.
  1032. # macos_colorspace srgb
  1033. #: The colorspace in which to interpret terminal colors. The default
  1034. #: of srgb will cause colors to match those seen in web browsers. The
  1035. #: value of default will use whatever the native colorspace of the
  1036. #: display is. The value of displayp3 will use Apple's special
  1037. #: snowflake display P3 color space, which will result in over
  1038. #: saturated (brighter) colors with some color shift. Reloading
  1039. #: configuration will change this value only for newly created OS
  1040. #: windows.
  1041. # linux_display_server auto
  1042. #: Choose between Wayland and X11 backends. By default, an appropriate
  1043. #: backend based on the system state is chosen automatically. Set it
  1044. #: to x11 or wayland to force the choice. Changing this option by
  1045. #: reloading the config is not supported.
  1046. #: }}}
  1047. #: Keyboard shortcuts {{{
  1048. #: Keys are identified simply by their lowercase Unicode characters.
  1049. #: For example: a for the A key, [ for the left square bracket key,
  1050. #: etc. For functional keys, such as Enter or Escape, the names are
  1051. #: present at Functional key definitions
  1052. #: <https://sw.kovidgoyal.net/kitty/keyboard-protocol/#functional>.
  1053. #: For modifier keys, the names are ctrl (control, ⌃), shift (⇧), alt
  1054. #: (opt, option, ⌥), super (cmd, command, ⌘). See also: GLFW mods
  1055. #: <https://www.glfw.org/docs/latest/group__mods.html>
  1056. #: On Linux you can also use XKB key names to bind keys that are not
  1057. #: supported by GLFW. See XKB keys
  1058. #: <https://github.com/xkbcommon/libxkbcommon/blob/master/include/xkbcommon/xkbcommon-
  1059. #: keysyms.h> for a list of key names. The name to use is the part
  1060. #: after the XKB_KEY_ prefix. Note that you can only use an XKB key
  1061. #: name for keys that are not known as GLFW keys.
  1062. #: Finally, you can use raw system key codes to map keys, again only
  1063. #: for keys that are not known as GLFW keys. To see the system key
  1064. #: code for a key, start kitty with the kitty --debug-input option,
  1065. #: kitty will output some debug text for every key event. In that text
  1066. #: look for native_code, the value of that becomes the key name in the
  1067. #: shortcut. For example:
  1068. #: .. code-block:: none
  1069. #: on_key_input: glfw key: 0x61 native_code: 0x61 action: PRESS mods: none text: 'a'
  1070. #: Here, the key name for the A key is 0x61 and you can use it with::
  1071. #: map ctrl+0x61 something
  1072. #: to map Ctrl+A to something.
  1073. #: You can use the special action no_op to unmap a keyboard shortcut
  1074. #: that is assigned in the default configuration::
  1075. #: map kitty_mod+space no_op
  1076. #: If you would like kitty to completely ignore a key event, not even
  1077. #: sending it to the program running in the terminal, map it to
  1078. #: discard_event::
  1079. #: map kitty_mod+f1 discard_event
  1080. #: You can combine multiple actions to be triggered by a single
  1081. #: shortcut with combine action, using the syntax below::
  1082. #: map key combine <separator> action1 <separator> action2 <separator> action3 ...
  1083. #: For example::
  1084. #: map kitty_mod+e combine : new_window : next_layout
  1085. #: This will create a new window and switch to the next available
  1086. #: layout.
  1087. #: You can use multi-key shortcuts with the syntax shown below::
  1088. #: map key1>key2>key3 action
  1089. #: For example::
  1090. #: map ctrl+f>2 set_font_size 20
  1091. #: The full list of actions that can be mapped to key presses is
  1092. #: available here <https://sw.kovidgoyal.net/kitty/actions/>.
  1093. # kitty_mod ctrl+shift
  1094. #: Special modifier key alias for default shortcuts. You can change
  1095. #: the value of this option to alter all default shortcuts that use
  1096. #: kitty_mod.
  1097. # clear_all_shortcuts no
  1098. #: Remove all shortcut definitions up to this point. Useful, for
  1099. #: instance, to remove the default shortcuts.
  1100. # action_alias
  1101. #: E.g. action_alias launch_tab launch --type=tab --cwd=current
  1102. #: Define action aliases to avoid repeating the same options in
  1103. #: multiple mappings. Aliases can be defined for any action and will
  1104. #: be expanded recursively. For example, the above alias allows you to
  1105. #: create mappings to launch a new tab in the current working
  1106. #: directory without duplication::
  1107. #: map f1 launch_tab vim
  1108. #: map f2 launch_tab emacs
  1109. #: Similarly, to alias kitten invocation::
  1110. #: action_alias hints kitten hints --hints-offset=0
  1111. # kitten_alias
  1112. #: E.g. kitten_alias hints hints --hints-offset=0
  1113. #: Like action_alias above, but specifically for kittens. Generally,
  1114. #: prefer to use action_alias. This option is a legacy version,
  1115. #: present for backwards compatibility. It causes all invocations of
  1116. #: the aliased kitten to be substituted. So the example above will
  1117. #: cause all invocations of the hints kitten to have the --hints-
  1118. #: offset=0 option applied.
  1119. #: Clipboard {{{
  1120. #: Copy to clipboard
  1121. # map kitty_mod+c copy_to_clipboard
  1122. # map cmd+c copy_to_clipboard
  1123. #:: There is also a copy_or_interrupt action that can be optionally
  1124. #:: mapped to Ctrl+C. It will copy only if there is a selection and
  1125. #:: send an interrupt otherwise. Similarly,
  1126. #:: copy_and_clear_or_interrupt will copy and clear the selection or
  1127. #:: send an interrupt if there is no selection.
  1128. #: Paste from clipboard
  1129. # map kitty_mod+v paste_from_clipboard
  1130. # map cmd+v paste_from_clipboard
  1131. #: Paste from selection
  1132. # map kitty_mod+s paste_from_selection
  1133. # map shift+insert paste_from_selection
  1134. #: Pass selection to program
  1135. # map kitty_mod+o pass_selection_to_program
  1136. #:: You can also pass the contents of the current selection to any
  1137. #:: program with pass_selection_to_program. By default, the system's
  1138. #:: open program is used, but you can specify your own, the selection
  1139. #:: will be passed as a command line argument to the program. For
  1140. #:: example::
  1141. #:: map kitty_mod+o pass_selection_to_program firefox
  1142. #:: You can pass the current selection to a terminal program running
  1143. #:: in a new kitty window, by using the @selection placeholder::
  1144. #:: map kitty_mod+y new_window less @selection
  1145. #: }}}
  1146. #: Scrolling {{{
  1147. #: Scroll line up
  1148. # map kitty_mod+up scroll_line_up
  1149. # map kitty_mod+k scroll_line_up
  1150. # map opt+cmd+page_up scroll_line_up
  1151. # map cmd+up scroll_line_up
  1152. #: Scroll line down
  1153. # map kitty_mod+down scroll_line_down
  1154. # map kitty_mod+j scroll_line_down
  1155. # map opt+cmd+page_down scroll_line_down
  1156. # map cmd+down scroll_line_down
  1157. #: Scroll page up
  1158. # map kitty_mod+page_up scroll_page_up
  1159. # map cmd+page_up scroll_page_up
  1160. #: Scroll page down
  1161. # map kitty_mod+page_down scroll_page_down
  1162. # map cmd+page_down scroll_page_down
  1163. #: Scroll to top
  1164. # map kitty_mod+home scroll_home
  1165. # map cmd+home scroll_home
  1166. #: Scroll to bottom
  1167. # map kitty_mod+end scroll_end
  1168. # map cmd+end scroll_end
  1169. #: Scroll to previous shell prompt
  1170. # map kitty_mod+z scroll_to_prompt -1
  1171. #:: Use a parameter of 0 for scroll_to_prompt to scroll to the last
  1172. #:: jumped to or the last clicked position. Requires shell
  1173. #:: integration <https://sw.kovidgoyal.net/kitty/shell-integration/>
  1174. #:: to work.
  1175. #: Scroll to next shell prompt
  1176. # map kitty_mod+x scroll_to_prompt 1
  1177. #: Browse scrollback buffer in pager
  1178. # map kitty_mod+h show_scrollback
  1179. #:: You can pipe the contents of the current screen and history
  1180. #:: buffer as STDIN to an arbitrary program using launch --stdin-
  1181. #:: source. For example, the following opens the scrollback buffer in
  1182. #:: less in an overlay window::
  1183. #:: map f1 launch --stdin-source=@screen_scrollback --stdin-add-formatting --type=overlay less +G -R
  1184. #:: For more details on piping screen and buffer contents to external
  1185. #:: programs, see launch <https://sw.kovidgoyal.net/kitty/launch/>.
  1186. #: Browse output of the last shell command in pager
  1187. # map kitty_mod+g show_last_command_output
  1188. #:: You can also define additional shortcuts to get the command
  1189. #:: output. For example, to get the first command output on screen::
  1190. #:: map f1 show_first_command_output_on_screen
  1191. #:: To get the command output that was last accessed by a keyboard
  1192. #:: action or mouse action::
  1193. #:: map f1 show_last_visited_command_output
  1194. #:: You can pipe the output of the last command run in the shell
  1195. #:: using the launch action. For example, the following opens the
  1196. #:: output in less in an overlay window::
  1197. #:: map f1 launch --stdin-source=@last_cmd_output --stdin-add-formatting --type=overlay less +G -R
  1198. #:: To get the output of the first command on the screen, use
  1199. #:: @first_cmd_output_on_screen. To get the output of the last jumped
  1200. #:: to command, use @last_visited_cmd_output.
  1201. #:: Requires shell integration
  1202. #:: <https://sw.kovidgoyal.net/kitty/shell-integration/> to work.
  1203. #: }}}
  1204. #: Window management {{{
  1205. #: New window
  1206. # map kitty_mod+enter new_window
  1207. # map cmd+enter new_window
  1208. #:: You can open a new kitty window running an arbitrary program, for
  1209. #:: example::
  1210. #:: map kitty_mod+y launch mutt
  1211. #:: You can open a new window with the current working directory set
  1212. #:: to the working directory of the current window using::
  1213. #:: map ctrl+alt+enter launch --cwd=current
  1214. #:: You can open a new window that is allowed to control kitty via
  1215. #:: the kitty remote control facility with launch --allow-remote-
  1216. #:: control. Any programs running in that window will be allowed to
  1217. #:: control kitty. For example::
  1218. #:: map ctrl+enter launch --allow-remote-control some_program
  1219. #:: You can open a new window next to the currently active window or
  1220. #:: as the first window, with::
  1221. #:: map ctrl+n launch --location=neighbor
  1222. #:: map ctrl+f launch --location=first
  1223. #:: For more details, see launch
  1224. #:: <https://sw.kovidgoyal.net/kitty/launch/>.
  1225. #: New OS window
  1226. # map kitty_mod+n new_os_window
  1227. # map cmd+n new_os_window
  1228. #:: Works like new_window above, except that it opens a top-level OS
  1229. #:: window. In particular you can use new_os_window_with_cwd to open
  1230. #:: a window with the current working directory.
  1231. #: Close window
  1232. # map kitty_mod+w close_window
  1233. # map shift+cmd+d close_window
  1234. #: Next window
  1235. # map kitty_mod+] next_window
  1236. #: Previous window
  1237. # map kitty_mod+[ previous_window
  1238. #: Move window forward
  1239. # map kitty_mod+f move_window_forward
  1240. #: Move window backward
  1241. # map kitty_mod+b move_window_backward
  1242. #: Move window to top
  1243. # map kitty_mod+` move_window_to_top
  1244. #: Start resizing window
  1245. # map kitty_mod+r start_resizing_window
  1246. # map cmd+r start_resizing_window
  1247. #: First window
  1248. # map kitty_mod+1 first_window
  1249. # map cmd+1 first_window
  1250. #: Second window
  1251. # map kitty_mod+2 second_window
  1252. # map cmd+2 second_window
  1253. #: Third window
  1254. # map kitty_mod+3 third_window
  1255. # map cmd+3 third_window
  1256. #: Fourth window
  1257. # map kitty_mod+4 fourth_window
  1258. # map cmd+4 fourth_window
  1259. #: Fifth window
  1260. # map kitty_mod+5 fifth_window
  1261. # map cmd+5 fifth_window
  1262. #: Sixth window
  1263. # map kitty_mod+6 sixth_window
  1264. # map cmd+6 sixth_window
  1265. #: Seventh window
  1266. # map kitty_mod+7 seventh_window
  1267. # map cmd+7 seventh_window
  1268. #: Eight window
  1269. # map kitty_mod+8 eighth_window
  1270. # map cmd+8 eighth_window
  1271. #: Ninth window
  1272. # map kitty_mod+9 ninth_window
  1273. # map cmd+9 ninth_window
  1274. #: Tenth window
  1275. # map kitty_mod+0 tenth_window
  1276. #: Visually select and focus window
  1277. # map kitty_mod+f7 focus_visible_window
  1278. #:: Display overlay numbers and alphabets on the window, and switch
  1279. #:: the focus to the window when you press the key. When there are
  1280. #:: only two windows, the focus will be switched directly without
  1281. #:: displaying the overlay. You can change the overlay characters and
  1282. #:: their order with option visual_window_select_characters.
  1283. #: Visually swap window with another
  1284. # map kitty_mod+f8 swap_with_window
  1285. #:: Works like focus_visible_window above, but swaps the window.
  1286. #: }}}
  1287. #: Tab management {{{
  1288. #: Next tab
  1289. # map kitty_mod+right next_tab
  1290. # map shift+cmd+] next_tab
  1291. # map ctrl+tab next_tab
  1292. #: Previous tab
  1293. # map kitty_mod+left previous_tab
  1294. # map shift+cmd+[ previous_tab
  1295. # map ctrl+shift+tab previous_tab
  1296. #: New tab
  1297. # map kitty_mod+t new_tab
  1298. # map cmd+t new_tab
  1299. #: Close tab
  1300. # map kitty_mod+q close_tab
  1301. # map cmd+w close_tab
  1302. #: Close OS window
  1303. # map shift+cmd+w close_os_window
  1304. #: Move tab forward
  1305. # map kitty_mod+. move_tab_forward
  1306. #: Move tab backward
  1307. # map kitty_mod+, move_tab_backward
  1308. #: Set tab title
  1309. # map kitty_mod+alt+t set_tab_title
  1310. # map shift+cmd+i set_tab_title
  1311. #: You can also create shortcuts to go to specific tabs, with 1 being
  1312. #: the first tab, 2 the second tab and -1 being the previously active
  1313. #: tab, and any number larger than the last tab being the last tab::
  1314. #: map ctrl+alt+1 goto_tab 1
  1315. #: map ctrl+alt+2 goto_tab 2
  1316. #: Just as with new_window above, you can also pass the name of
  1317. #: arbitrary commands to run when using new_tab and new_tab_with_cwd.
  1318. #: Finally, if you want the new tab to open next to the current tab
  1319. #: rather than at the end of the tabs list, use::
  1320. #: map ctrl+t new_tab !neighbor [optional cmd to run]
  1321. #: }}}
  1322. #: Layout management {{{
  1323. #: Next layout
  1324. # map kitty_mod+l next_layout
  1325. #: You can also create shortcuts to switch to specific layouts::
  1326. #: map ctrl+alt+t goto_layout tall
  1327. #: map ctrl+alt+s goto_layout stack
  1328. #: Similarly, to switch back to the previous layout::
  1329. #: map ctrl+alt+p last_used_layout
  1330. #: There is also a toggle_layout action that switches to the named
  1331. #: layout or back to the previous layout if in the named layout.
  1332. #: Useful to temporarily "zoom" the active window by switching to the
  1333. #: stack layout::
  1334. #: map ctrl+alt+z toggle_layout stack
  1335. #: }}}
  1336. #: Font sizes {{{
  1337. #: You can change the font size for all top-level kitty OS windows at
  1338. #: a time or only the current one.
  1339. #: Increase font size
  1340. # map kitty_mod+equal change_font_size all +2.0
  1341. # map kitty_mod+plus change_font_size all +2.0
  1342. # map kitty_mod+kp_add change_font_size all +2.0
  1343. # map cmd+plus change_font_size all +2.0
  1344. # map cmd+equal change_font_size all +2.0
  1345. # map shift+cmd+equal change_font_size all +2.0
  1346. #: Decrease font size
  1347. # map kitty_mod+minus change_font_size all -2.0
  1348. # map kitty_mod+kp_subtract change_font_size all -2.0
  1349. # map cmd+minus change_font_size all -2.0
  1350. # map shift+cmd+minus change_font_size all -2.0
  1351. #: Reset font size
  1352. # map kitty_mod+backspace change_font_size all 0
  1353. # map cmd+0 change_font_size all 0
  1354. #: To setup shortcuts for specific font sizes::
  1355. #: map kitty_mod+f6 change_font_size all 10.0
  1356. #: To setup shortcuts to change only the current OS window's font
  1357. #: size::
  1358. #: map kitty_mod+f6 change_font_size current 10.0
  1359. #: }}}
  1360. #: Select and act on visible text {{{
  1361. #: Use the hints kitten to select text and either pass it to an
  1362. #: external program or insert it into the terminal or copy it to the
  1363. #: clipboard.
  1364. #: Open URL
  1365. # map kitty_mod+e open_url_with_hints
  1366. #:: Open a currently visible URL using the keyboard. The program used
  1367. #:: to open the URL is specified in open_url_with.
  1368. #: Insert selected path
  1369. # map kitty_mod+p>f kitten hints --type path --program -
  1370. #:: Select a path/filename and insert it into the terminal. Useful,
  1371. #:: for instance to run git commands on a filename output from a
  1372. #:: previous git command.
  1373. #: Open selected path
  1374. # map kitty_mod+p>shift+f kitten hints --type path
  1375. #:: Select a path/filename and open it with the default open program.
  1376. #: Insert selected line
  1377. # map kitty_mod+p>l kitten hints --type line --program -
  1378. #:: Select a line of text and insert it into the terminal. Useful for
  1379. #:: the output of things like: `ls -1`.
  1380. #: Insert selected word
  1381. # map kitty_mod+p>w kitten hints --type word --program -
  1382. #:: Select words and insert into terminal.
  1383. #: Insert selected hash
  1384. # map kitty_mod+p>h kitten hints --type hash --program -
  1385. #:: Select something that looks like a hash and insert it into the
  1386. #:: terminal. Useful with git, which uses SHA1 hashes to identify
  1387. #:: commits.
  1388. #: Open the selected file at the selected line
  1389. # map kitty_mod+p>n kitten hints --type linenum
  1390. #:: Select something that looks like filename:linenum and open it in
  1391. #:: vim at the specified line number.
  1392. #: Open the selected hyperlink
  1393. # map kitty_mod+p>y kitten hints --type hyperlink
  1394. #:: Select a hyperlink (i.e. a URL that has been marked as such by
  1395. #:: the terminal program, for example, by `ls --hyperlink=auto`).
  1396. #: The hints kitten has many more modes of operation that you can map
  1397. #: to different shortcuts. For a full description see hints kitten
  1398. #: <https://sw.kovidgoyal.net/kitty/kittens/hints/>.
  1399. #: }}}
  1400. #: Miscellaneous {{{
  1401. #: Show documentation
  1402. # map kitty_mod+f1 show_kitty_doc overview
  1403. #: Toggle fullscreen
  1404. # map kitty_mod+f11 toggle_fullscreen
  1405. # map ctrl+cmd+f toggle_fullscreen
  1406. #: Toggle maximized
  1407. # map kitty_mod+f10 toggle_maximized
  1408. #: Toggle macOS secure keyboard entry
  1409. # map opt+cmd+s toggle_macos_secure_keyboard_entry
  1410. #: Unicode input
  1411. # map kitty_mod+u kitten unicode_input
  1412. # map ctrl+cmd+space kitten unicode_input
  1413. #: Edit config file
  1414. # map kitty_mod+f2 edit_config_file
  1415. # map cmd+, edit_config_file
  1416. #: Open the kitty command shell
  1417. # map kitty_mod+escape kitty_shell window
  1418. #:: Open the kitty shell in a new window / tab / overlay / os_window
  1419. #:: to control kitty using commands.
  1420. #: Increase background opacity
  1421. # map kitty_mod+a>m set_background_opacity +0.1
  1422. #: Decrease background opacity
  1423. # map kitty_mod+a>l set_background_opacity -0.1
  1424. #: Make background fully opaque
  1425. # map kitty_mod+a>1 set_background_opacity 1
  1426. #: Reset background opacity
  1427. # map kitty_mod+a>d set_background_opacity default
  1428. #: Reset the terminal
  1429. # map kitty_mod+delete clear_terminal reset active
  1430. # map opt+cmd+r clear_terminal reset active
  1431. #:: You can create shortcuts to clear/reset the terminal. For
  1432. #:: example::
  1433. #:: # Reset the terminal
  1434. #:: map f1 clear_terminal reset active
  1435. #:: # Clear the terminal screen by erasing all contents
  1436. #:: map f1 clear_terminal clear active
  1437. #:: # Clear the terminal scrollback by erasing it
  1438. #:: map f1 clear_terminal scrollback active
  1439. #:: # Scroll the contents of the screen into the scrollback
  1440. #:: map f1 clear_terminal scroll active
  1441. #:: # Clear everything up to the line with the cursor
  1442. #:: map f1 clear_terminal to_cursor active
  1443. #:: If you want to operate on all kitty windows instead of just the
  1444. #:: current one, use all instead of active.
  1445. #:: It is also possible to remap Ctrl+L to both scroll the current
  1446. #:: screen contents into the scrollback buffer and clear the screen,
  1447. #:: instead of just clearing the screen, for example, for ZSH add the
  1448. #:: following to ~/.zshrc:
  1449. #:: .. code-block:: zsh
  1450. #:: scroll-and-clear-screen() {
  1451. #:: printf '\n%.0s' {1..$LINES}
  1452. #:: zle clear-screen
  1453. #:: }
  1454. #:: zle -N scroll-and-clear-screen
  1455. #:: bindkey '^l' scroll-and-clear-screen
  1456. #: Clear up to cursor line
  1457. # map cmd+k clear_terminal to_cursor active
  1458. #: Reload kitty.conf
  1459. # map kitty_mod+f5 load_config_file
  1460. # map ctrl+cmd+, load_config_file
  1461. #:: Reload kitty.conf, applying any changes since the last time it
  1462. #:: was loaded. Note that a handful of options cannot be dynamically
  1463. #:: changed and require a full restart of kitty. Particularly, when
  1464. #:: changing shortcuts for actions located on the macOS global menu
  1465. #:: bar, a full restart is needed. You can also map a keybinding to
  1466. #:: load a different config file, for example::
  1467. #:: map f5 load_config /path/to/alternative/kitty.conf
  1468. #:: Note that all options from the original kitty.conf are discarded,
  1469. #:: in other words the new configuration *replace* the old ones.
  1470. #: Debug kitty configuration
  1471. # map kitty_mod+f6 debug_config
  1472. # map opt+cmd+, debug_config
  1473. #:: Show details about exactly what configuration kitty is running
  1474. #:: with and its host environment. Useful for debugging issues.
  1475. #: Send arbitrary text on key presses
  1476. #:: E.g. map ctrl+shift+alt+h send_text all Hello World
  1477. #:: You can tell kitty to send arbitrary (UTF-8) encoded text to the
  1478. #:: client program when pressing specified shortcut keys. For
  1479. #:: example::
  1480. #:: map ctrl+alt+a send_text all Special text
  1481. #:: This will send "Special text" when you press the Ctrl+Alt+A key
  1482. #:: combination. The text to be sent decodes ANSI C escapes
  1483. #:: <https://www.gnu.org/software/bash/manual/html_node/ANSI_002dC-
  1484. #:: Quoting.html> so you can use escapes like \e to send control
  1485. #:: codes or \u21fb to send Unicode characters (or you can just input
  1486. #:: the Unicode characters directly as UTF-8 text). You can use
  1487. #:: `kitty +kitten show_key` to get the key escape codes you want to
  1488. #:: emulate.
  1489. #:: The first argument to send_text is the keyboard modes in which to
  1490. #:: activate the shortcut. The possible values are normal,
  1491. #:: application, kitty or a comma separated combination of them. The
  1492. #:: modes normal and application refer to the DECCKM cursor key mode
  1493. #:: for terminals, and kitty refers to the kitty extended keyboard
  1494. #:: protocol. The special value all means all of them.
  1495. #:: Some more examples::
  1496. #:: # Output a word and move the cursor to the start of the line (like typing and pressing Home)
  1497. #:: map ctrl+alt+a send_text normal Word\e[H
  1498. #:: map ctrl+alt+a send_text application Word\eOH
  1499. #:: # Run a command at a shell prompt (like typing the command and pressing Enter)
  1500. #:: map ctrl+alt+a send_text normal,application some command with arguments\r
  1501. #: Open kitty Website
  1502. # map shift+cmd+/ open_url https://sw.kovidgoyal.net/kitty/
  1503. #: Hide macOS kitty application
  1504. # map cmd+h hide_macos_app
  1505. #: Hide macOS other applications
  1506. # map opt+cmd+h hide_macos_other_apps
  1507. #: Minimize macOS window
  1508. # map cmd+m minimize_macos_window
  1509. #: Quit kitty
  1510. # map cmd+q quit
  1511. #: }}}
  1512. #: }}}