alacritty.yml 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852
  1. # Configuration for Alacritty, the GPU enhanced terminal emulator.
  2. # Import additional configuration files
  3. #
  4. # Imports are loaded in order, skipping all missing files, with the importing
  5. # file being loaded last. If a field is already present in a previous import, it
  6. # will be replaced.
  7. #
  8. # All imports must either be absolute paths starting with `/`, or paths relative
  9. # to the user's home directory starting with `~/`.
  10. #import:
  11. # - /path/to/alacritty.yml
  12. # Any items in the `env` entry below will be added as
  13. # environment variables. Some entries may override variables
  14. # set by alacritty itself.
  15. #env:
  16. # TERM variable
  17. #
  18. # This value is used to set the `$TERM` environment variable for
  19. # each instance of Alacritty. If it is not present, alacritty will
  20. # check the local terminfo database and use `alacritty` if it is
  21. # available, otherwise `xterm-256color` is used.
  22. #TERM: alacritty
  23. #window:
  24. # Window dimensions (changes require restart)
  25. #
  26. # Number of lines/columns (not pixels) in the terminal. The number of columns
  27. # must be at least `2`, while using a value of `0` for columns and lines will
  28. # fall back to the window manager's recommended size.
  29. #dimensions:
  30. # columns: 0
  31. # lines: 0
  32. # Window position (changes require restart)
  33. #
  34. # Specified in number of pixels.
  35. # If the position is not set, the window manager will handle the placement.
  36. #position:
  37. # x: 0
  38. # y: 0
  39. # Window padding (changes require restart)
  40. #
  41. # Blank space added around the window in pixels. This padding is scaled
  42. # by DPI and the specified value is always added at both opposing sides.
  43. #padding:
  44. # x: 0
  45. # y: 0
  46. # Spread additional padding evenly around the terminal content.
  47. #dynamic_padding: false
  48. # Window decorations
  49. #
  50. # Values for `decorations`:
  51. # - full: Borders and title bar
  52. # - none: Neither borders nor title bar
  53. #
  54. # Values for `decorations` (macOS only):
  55. # - transparent: Title bar, transparent background and title bar buttons
  56. # - buttonless: Title bar, transparent background and no title bar buttons
  57. #decorations: full
  58. # Startup Mode (changes require restart)
  59. #
  60. # Values for `startup_mode`:
  61. # - Windowed
  62. # - Maximized
  63. # - Fullscreen
  64. #
  65. # Values for `startup_mode` (macOS only):
  66. # - SimpleFullscreen
  67. #startup_mode: Windowed
  68. # Window title
  69. #title: Alacritty
  70. # Allow terminal applications to change Alacritty's window title.
  71. #dynamic_title: true
  72. # Window class (Linux/BSD only):
  73. #class:
  74. # Application instance name
  75. #instance: Alacritty
  76. # General application class
  77. #general: Alacritty
  78. # GTK theme variant (Linux/BSD only)
  79. #
  80. # Override the variant of the GTK theme. Commonly supported values are `dark`
  81. # and `light`. Set this to `None` to use the default theme variant.
  82. #gtk_theme_variant: None
  83. #scrolling:
  84. # Maximum number of lines in the scrollback buffer.
  85. # Specifying '0' will disable scrolling.
  86. #history: 10000
  87. # Scrolling distance multiplier.
  88. #multiplier: 3
  89. # Font configuration
  90. #font:
  91. # Normal (roman) font face
  92. #normal:
  93. # Font family
  94. #
  95. # Default:
  96. # - (macOS) Menlo
  97. # - (Linux/BSD) monospace
  98. # - (Windows) Consolas
  99. #family: monospace
  100. # The `style` can be specified to pick a specific face.
  101. #style: Regular
  102. # Bold font face
  103. #bold:
  104. # Font family
  105. #
  106. # If the bold family is not specified, it will fall back to the
  107. # value specified for the normal font.
  108. #family: monospace
  109. # The `style` can be specified to pick a specific face.
  110. #style: Bold
  111. # Italic font face
  112. #italic:
  113. # Font family
  114. #
  115. # If the italic family is not specified, it will fall back to the
  116. # value specified for the normal font.
  117. #family: monospace
  118. # The `style` can be specified to pick a specific face.
  119. #style: Italic
  120. # Bold italic font face
  121. #bold_italic:
  122. # Font family
  123. #
  124. # If the bold italic family is not specified, it will fall back to the
  125. # value specified for the normal font.
  126. #family: monospace
  127. # The `style` can be specified to pick a specific face.
  128. #style: Bold Italic
  129. # Point size
  130. #size: 11.0
  131. # Offset is the extra space around each character. `offset.y` can be thought
  132. # of as modifying the line spacing, and `offset.x` as modifying the letter
  133. # spacing.
  134. #offset:
  135. # x: 0
  136. # y: 0
  137. # Glyph offset determines the locations of the glyphs within their cells with
  138. # the default being at the bottom. Increasing `x` moves the glyph to the
  139. # right, increasing `y` moves the glyph upward.
  140. #glyph_offset:
  141. # x: 0
  142. # y: 0
  143. # Thin stroke font rendering (macOS only)
  144. #
  145. # Thin strokes are suitable for retina displays, but for non-retina screens
  146. # it is recommended to set `use_thin_strokes` to `false`.
  147. #use_thin_strokes: true
  148. # If `true`, bold text is drawn using the bright color variants.
  149. #draw_bold_text_with_bright_colors: false
  150. # Colors (Tomorrow Night)
  151. #colors:
  152. # Default colors
  153. #primary:
  154. # background: '#1d1f21'
  155. # foreground: '#c5c8c6'
  156. # Bright and dim foreground colors
  157. #
  158. # The dimmed foreground color is calculated automatically if it is not
  159. # present. If the bright foreground color is not set, or
  160. # `draw_bold_text_with_bright_colors` is `false`, the normal foreground
  161. # color will be used.
  162. #dim_foreground: '#828482'
  163. #bright_foreground: '#eaeaea'
  164. # Cursor colors
  165. #
  166. # Colors which should be used to draw the terminal cursor.
  167. #
  168. # Allowed values are CellForeground/CellBackground, which reference the
  169. # affected cell, or hexadecimal colors like #ff00ff.
  170. #cursor:
  171. # text: CellBackground
  172. # cursor: CellForeground
  173. # Vi mode cursor colors
  174. #
  175. # Colors for the cursor when the vi mode is active.
  176. #
  177. # Allowed values are CellForeground/CellBackground, which reference the
  178. # affected cell, or hexadecimal colors like #ff00ff.
  179. #vi_mode_cursor:
  180. # text: CellBackground
  181. # cursor: CellForeground
  182. # Search colors
  183. #
  184. # Colors used for the search bar and match highlighting.
  185. #search:
  186. # Allowed values are CellForeground/CellBackground, which reference the
  187. # affected cell, or hexadecimal colors like #ff00ff.
  188. #matches:
  189. # foreground: '#000000'
  190. # background: '#ffffff'
  191. #focused_match:
  192. # foreground: CellBackground
  193. # background: CellForeground
  194. #bar:
  195. # background: '#c5c8c6'
  196. # foreground: '#1d1f21'
  197. # Keyboard hints
  198. #hints:
  199. # Fist character in the hint label
  200. #
  201. # Allowed values are CellForeground/CellBackground, which reference the
  202. # affected cell, or hexadecimal colors like #ff00ff.
  203. #start:
  204. # foreground: '#1d1f21'
  205. # background: '#e9ff5e'
  206. # All characters after the first one in the hint label
  207. #
  208. # Allowed values are CellForeground/CellBackground, which reference the
  209. # affected cell, or hexadecimal colors like #ff00ff.
  210. #end:
  211. # foreground: '#e9ff5e'
  212. # background: '#1d1f21'
  213. # Line indicator
  214. #
  215. # Color used for the indicator displaying the position in history during
  216. # search and vi mode.
  217. #
  218. # By default, these will use the opposing primary color.
  219. #line_indicator:
  220. # foreground: None
  221. # background: None
  222. # Selection colors
  223. #
  224. # Colors which should be used to draw the selection area.
  225. #
  226. # Allowed values are CellForeground/CellBackground, which reference the
  227. # affected cell, or hexadecimal colors like #ff00ff.
  228. #selection:
  229. # text: CellBackground
  230. # background: CellForeground
  231. # Normal colors
  232. #normal:
  233. # black: '#1d1f21'
  234. # red: '#cc6666'
  235. # green: '#b5bd68'
  236. # yellow: '#f0c674'
  237. # blue: '#81a2be'
  238. # magenta: '#b294bb'
  239. # cyan: '#8abeb7'
  240. # white: '#c5c8c6'
  241. # Bright colors
  242. #bright:
  243. # black: '#666666'
  244. # red: '#d54e53'
  245. # green: '#b9ca4a'
  246. # yellow: '#e7c547'
  247. # blue: '#7aa6da'
  248. # magenta: '#c397d8'
  249. # cyan: '#70c0b1'
  250. # white: '#eaeaea'
  251. # Dim colors
  252. #
  253. # If the dim colors are not set, they will be calculated automatically based
  254. # on the `normal` colors.
  255. #dim:
  256. # black: '#131415'
  257. # red: '#864343'
  258. # green: '#777c44'
  259. # yellow: '#9e824c'
  260. # blue: '#556a7d'
  261. # magenta: '#75617b'
  262. # cyan: '#5b7d78'
  263. # white: '#828482'
  264. # Indexed Colors
  265. #
  266. # The indexed colors include all colors from 16 to 256.
  267. # When these are not set, they're filled with sensible defaults.
  268. #
  269. # Example:
  270. # `- { index: 16, color: '#ff00ff' }`
  271. #
  272. #indexed_colors: []
  273. # Bell
  274. #
  275. # The bell is rung every time the BEL control character is received.
  276. #bell:
  277. # Visual Bell Animation
  278. #
  279. # Animation effect for flashing the screen when the visual bell is rung.
  280. #
  281. # Values for `animation`:
  282. # - Ease
  283. # - EaseOut
  284. # - EaseOutSine
  285. # - EaseOutQuad
  286. # - EaseOutCubic
  287. # - EaseOutQuart
  288. # - EaseOutQuint
  289. # - EaseOutExpo
  290. # - EaseOutCirc
  291. # - Linear
  292. #animation: EaseOutExpo
  293. # Duration of the visual bell flash in milliseconds. A `duration` of `0` will
  294. # disable the visual bell animation.
  295. #duration: 0
  296. # Visual bell animation color.
  297. #color: '#ffffff'
  298. # Bell Command
  299. #
  300. # This program is executed whenever the bell is rung.
  301. #
  302. # When set to `command: None`, no command will be executed.
  303. #
  304. # Example:
  305. # command:
  306. # program: notify-send
  307. # args: ["Hello, World!"]
  308. #
  309. #command: None
  310. # Background opacity
  311. #
  312. # Window opacity as a floating point number from `0.0` to `1.0`.
  313. # The value `0.0` is completely transparent and `1.0` is opaque.
  314. #background_opacity: 1.0
  315. #selection:
  316. # This string contains all characters that are used as separators for
  317. # "semantic words" in Alacritty.
  318. #semantic_escape_chars: ",│`|:\"' ()[]{}<>\t"
  319. # When set to `true`, selected text will be copied to the primary clipboard.
  320. #save_to_clipboard: false
  321. #cursor:
  322. # Cursor style
  323. #style:
  324. # Cursor shape
  325. #
  326. # Values for `shape`:
  327. # - ▇ Block
  328. # - _ Underline
  329. # - | Beam
  330. #shape: Block
  331. # Cursor blinking state
  332. #
  333. # Values for `blinking`:
  334. # - Never: Prevent the cursor from ever blinking
  335. # - Off: Disable blinking by default
  336. # - On: Enable blinking by default
  337. # - Always: Force the cursor to always blink
  338. #blinking: Off
  339. # Vi mode cursor style
  340. #
  341. # If the vi mode cursor style is `None` or not specified, it will fall back to
  342. # the style of the active value of the normal cursor.
  343. #
  344. # See `cursor.style` for available options.
  345. #vi_mode_style: None
  346. # Cursor blinking interval in milliseconds.
  347. #blink_interval: 750
  348. # If this is `true`, the cursor will be rendered as a hollow box when the
  349. # window is not focused.
  350. #unfocused_hollow: true
  351. # Thickness of the cursor relative to the cell width as floating point number
  352. # from `0.0` to `1.0`.
  353. #thickness: 0.15
  354. # Live config reload (changes require restart)
  355. #live_config_reload: true
  356. # Shell
  357. #
  358. # You can set `shell.program` to the path of your favorite shell, e.g.
  359. # `/bin/fish`. Entries in `shell.args` are passed unmodified as arguments to the
  360. # shell.
  361. #
  362. # Default:
  363. # - (macOS) /bin/bash --login
  364. # - (Linux/BSD) user login shell
  365. # - (Windows) powershell
  366. #shell:
  367. # program: /bin/bash
  368. # args:
  369. # - --login
  370. # Startup directory
  371. #
  372. # Directory the shell is started in. If this is unset, or `None`, the working
  373. # directory of the parent process will be used.
  374. #working_directory: None
  375. # Send ESC (\x1b) before characters when alt is pressed.
  376. #alt_send_esc: true
  377. #mouse:
  378. # Click settings
  379. #
  380. # The `double_click` and `triple_click` settings control the time
  381. # alacritty should wait for accepting multiple clicks as one double
  382. # or triple click.
  383. #double_click: { threshold: 300 }
  384. #triple_click: { threshold: 300 }
  385. # If this is `true`, the cursor is temporarily hidden when typing.
  386. #hide_when_typing: false
  387. # Regex hints
  388. #
  389. # Terminal hints can be used to find text in the visible part of the terminal
  390. # and pipe it to other applications.
  391. #hints:
  392. # Keys used for the hint labels.
  393. #alphabet: "jfkdls;ahgurieowpq"
  394. # List with all available hints
  395. #
  396. # Each hint must have a `regex` and either an `action` or a `command` field.
  397. # The fields `mouse`, `binding` and `post_processing` are optional.
  398. #
  399. # The fields `command`, `binding.key`, `binding.mods` and `mouse.mods` accept
  400. # the same values as they do in the `key_bindings` section.
  401. #
  402. # The `mouse.enabled` field controls if the hint should be underlined while
  403. # the mouse with all `mouse.mods` keys held or the vi mode cursor is above it.
  404. #
  405. # If the `post_processing` field is set to `true`, heuristics will be used to
  406. # shorten the match if there are characters likely not to be part of the hint
  407. # (e.g. a trailing `.`). This is most useful for URIs.
  408. #
  409. # Values for `action`:
  410. # - Copy
  411. # Copy the hint's text to the clipboard.
  412. # - Paste
  413. # Paste the hint's text to the terminal or search.
  414. # - Select
  415. # Select the hint's text.
  416. # - MoveViModeCursor
  417. # Move the vi mode cursor to the beginning of the hint.
  418. #enabled:
  419. # - regex: "(mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)\
  420. # [^\u0000-\u001F\u007F-\u009F<>\" {-}\\^⟨⟩`]+"
  421. # command: xdg-open
  422. # post_processing: true
  423. # mouse:
  424. # enabled: true
  425. # mods: None
  426. # binding:
  427. # key: U
  428. # mods: Control|Shift
  429. # Mouse bindings
  430. #
  431. # Mouse bindings are specified as a list of objects, much like the key
  432. # bindings further below.
  433. #
  434. # To trigger mouse bindings when an application running within Alacritty
  435. # captures the mouse, the `Shift` modifier is automatically added as a
  436. # requirement.
  437. #
  438. # Each mouse binding will specify a:
  439. #
  440. # - `mouse`:
  441. #
  442. # - Middle
  443. # - Left
  444. # - Right
  445. # - Numeric identifier such as `5`
  446. #
  447. # - `action` (see key bindings)
  448. #
  449. # And optionally:
  450. #
  451. # - `mods` (see key bindings)
  452. #mouse_bindings:
  453. # - { mouse: Middle, action: PasteSelection }
  454. # Key bindings
  455. #
  456. # Key bindings are specified as a list of objects. For example, this is the
  457. # default paste binding:
  458. #
  459. # `- { key: V, mods: Control|Shift, action: Paste }`
  460. #
  461. # Each key binding will specify a:
  462. #
  463. # - `key`: Identifier of the key pressed
  464. #
  465. # - A-Z
  466. # - F1-F24
  467. # - Key0-Key9
  468. #
  469. # A full list with available key codes can be found here:
  470. # https://docs.rs/glutin/*/glutin/event/enum.VirtualKeyCode.html#variants
  471. #
  472. # Instead of using the name of the keys, the `key` field also supports using
  473. # the scancode of the desired key. Scancodes have to be specified as a
  474. # decimal number. This command will allow you to display the hex scancodes
  475. # for certain keys:
  476. #
  477. # `showkey --scancodes`.
  478. #
  479. # Then exactly one of:
  480. #
  481. # - `chars`: Send a byte sequence to the running application
  482. #
  483. # The `chars` field writes the specified string to the terminal. This makes
  484. # it possible to pass escape sequences. To find escape codes for bindings
  485. # like `PageUp` (`"\x1b[5~"`), you can run the command `showkey -a` outside
  486. # of tmux. Note that applications use terminfo to map escape sequences back
  487. # to keys. It is therefore required to update the terminfo when changing an
  488. # escape sequence.
  489. #
  490. # - `action`: Execute a predefined action
  491. #
  492. # - ToggleViMode
  493. # - SearchForward
  494. # Start searching toward the right of the search origin.
  495. # - SearchBackward
  496. # Start searching toward the left of the search origin.
  497. # - Copy
  498. # - Paste
  499. # - IncreaseFontSize
  500. # - DecreaseFontSize
  501. # - ResetFontSize
  502. # - ScrollPageUp
  503. # - ScrollPageDown
  504. # - ScrollHalfPageUp
  505. # - ScrollHalfPageDown
  506. # - ScrollLineUp
  507. # - ScrollLineDown
  508. # - ScrollToTop
  509. # - ScrollToBottom
  510. # - ClearHistory
  511. # Remove the terminal's scrollback history.
  512. # - Hide
  513. # Hide the Alacritty window.
  514. # - Minimize
  515. # Minimize the Alacritty window.
  516. # - Quit
  517. # Quit Alacritty.
  518. # - ToggleFullscreen
  519. # - SpawnNewInstance
  520. # Spawn a new instance of Alacritty.
  521. # - ClearLogNotice
  522. # Clear Alacritty's UI warning and error notice.
  523. # - ClearSelection
  524. # Remove the active selection.
  525. # - ReceiveChar
  526. # - None
  527. #
  528. # - Vi mode exclusive actions:
  529. #
  530. # - Open
  531. # Open URLs at the cursor location with the launcher configured in
  532. # `url.launcher`.
  533. # - ToggleNormalSelection
  534. # - ToggleLineSelection
  535. # - ToggleBlockSelection
  536. # - ToggleSemanticSelection
  537. # Toggle semantic selection based on `selection.semantic_escape_chars`.
  538. #
  539. # - Vi mode exclusive cursor motion actions:
  540. #
  541. # - Up
  542. # One line up.
  543. # - Down
  544. # One line down.
  545. # - Left
  546. # One character left.
  547. # - Right
  548. # One character right.
  549. # - First
  550. # First column, or beginning of the line when already at the first column.
  551. # - Last
  552. # Last column, or beginning of the line when already at the last column.
  553. # - FirstOccupied
  554. # First non-empty cell in this terminal row, or first non-empty cell of
  555. # the line when already at the first cell of the row.
  556. # - High
  557. # Top of the screen.
  558. # - Middle
  559. # Center of the screen.
  560. # - Low
  561. # Bottom of the screen.
  562. # - SemanticLeft
  563. # Start of the previous semantically separated word.
  564. # - SemanticRight
  565. # Start of the next semantically separated word.
  566. # - SemanticLeftEnd
  567. # End of the previous semantically separated word.
  568. # - SemanticRightEnd
  569. # End of the next semantically separated word.
  570. # - WordLeft
  571. # Start of the previous whitespace separated word.
  572. # - WordRight
  573. # Start of the next whitespace separated word.
  574. # - WordLeftEnd
  575. # End of the previous whitespace separated word.
  576. # - WordRightEnd
  577. # End of the next whitespace separated word.
  578. # - Bracket
  579. # Character matching the bracket at the cursor's location.
  580. # - SearchNext
  581. # Beginning of the next match.
  582. # - SearchPrevious
  583. # Beginning of the previous match.
  584. # - SearchStart
  585. # Start of the match to the left of the vi mode cursor.
  586. # - SearchEnd
  587. # End of the match to the right of the vi mode cursor.
  588. #
  589. # - Search mode exclusive actions:
  590. # - SearchFocusNext
  591. # Move the focus to the next search match.
  592. # - SearchFocusPrevious
  593. # Move the focus to the previous search match.
  594. # - SearchConfirm
  595. # - SearchCancel
  596. # - SearchClear
  597. # Reset the search regex.
  598. # - SearchDeleteWord
  599. # Delete the last word in the search regex.
  600. # - SearchHistoryPrevious
  601. # Go to the previous regex in the search history.
  602. # - SearchHistoryNext
  603. # Go to the next regex in the search history.
  604. #
  605. # - macOS exclusive actions:
  606. # - ToggleSimpleFullscreen
  607. # Enter fullscreen without occupying another space.
  608. #
  609. # - Linux/BSD exclusive actions:
  610. #
  611. # - CopySelection
  612. # Copy from the selection buffer.
  613. # - PasteSelection
  614. # Paste from the selection buffer.
  615. #
  616. # - `command`: Fork and execute a specified command plus arguments
  617. #
  618. # The `command` field must be a map containing a `program` string and an
  619. # `args` array of command line parameter strings. For example:
  620. # `{ program: "alacritty", args: ["-e", "vttest"] }`
  621. #
  622. # And optionally:
  623. #
  624. # - `mods`: Key modifiers to filter binding actions
  625. #
  626. # - Command
  627. # - Control
  628. # - Option
  629. # - Super
  630. # - Shift
  631. # - Alt
  632. #
  633. # Multiple `mods` can be combined using `|` like this:
  634. # `mods: Control|Shift`.
  635. # Whitespace and capitalization are relevant and must match the example.
  636. #
  637. # - `mode`: Indicate a binding for only specific terminal reported modes
  638. #
  639. # This is mainly used to send applications the correct escape sequences
  640. # when in different modes.
  641. #
  642. # - AppCursor
  643. # - AppKeypad
  644. # - Search
  645. # - Alt
  646. # - Vi
  647. #
  648. # A `~` operator can be used before a mode to apply the binding whenever
  649. # the mode is *not* active, e.g. `~Alt`.
  650. #
  651. # Bindings are always filled by default, but will be replaced when a new
  652. # binding with the same triggers is defined. To unset a default binding, it can
  653. # be mapped to the `ReceiveChar` action. Alternatively, you can use `None` for
  654. # a no-op if you do not wish to receive input characters for that binding.
  655. #
  656. # If the same trigger is assigned to multiple actions, all of them are executed
  657. # in the order they were defined in.
  658. #key_bindings:
  659. #- { key: Paste, action: Paste }
  660. #- { key: Copy, action: Copy }
  661. #- { key: L, mods: Control, action: ClearLogNotice }
  662. #- { key: L, mods: Control, mode: ~Vi|~Search, chars: "\x0c" }
  663. #- { key: PageUp, mods: Shift, mode: ~Alt, action: ScrollPageUp, }
  664. #- { key: PageDown, mods: Shift, mode: ~Alt, action: ScrollPageDown }
  665. #- { key: Home, mods: Shift, mode: ~Alt, action: ScrollToTop, }
  666. #- { key: End, mods: Shift, mode: ~Alt, action: ScrollToBottom }
  667. # Vi Mode
  668. #- { key: Space, mods: Shift|Control, mode: Vi|~Search, action: ScrollToBottom }
  669. #- { key: Space, mods: Shift|Control, mode: ~Search, action: ToggleViMode }
  670. #- { key: Escape, mode: Vi|~Search, action: ClearSelection }
  671. #- { key: I, mode: Vi|~Search, action: ScrollToBottom }
  672. #- { key: I, mode: Vi|~Search, action: ToggleViMode }
  673. #- { key: C, mods: Control, mode: Vi|~Search, action: ToggleViMode }
  674. #- { key: Y, mods: Control, mode: Vi|~Search, action: ScrollLineUp }
  675. #- { key: E, mods: Control, mode: Vi|~Search, action: ScrollLineDown }
  676. #- { key: G, mode: Vi|~Search, action: ScrollToTop }
  677. #- { key: G, mods: Shift, mode: Vi|~Search, action: ScrollToBottom }
  678. #- { key: B, mods: Control, mode: Vi|~Search, action: ScrollPageUp }
  679. #- { key: F, mods: Control, mode: Vi|~Search, action: ScrollPageDown }
  680. #- { key: U, mods: Control, mode: Vi|~Search, action: ScrollHalfPageUp }
  681. #- { key: D, mods: Control, mode: Vi|~Search, action: ScrollHalfPageDown }
  682. #- { key: Y, mode: Vi|~Search, action: Copy }
  683. #- { key: Y, mode: Vi|~Search, action: ClearSelection }
  684. #- { key: Copy, mode: Vi|~Search, action: ClearSelection }
  685. #- { key: V, mode: Vi|~Search, action: ToggleNormalSelection }
  686. #- { key: V, mods: Shift, mode: Vi|~Search, action: ToggleLineSelection }
  687. #- { key: V, mods: Control, mode: Vi|~Search, action: ToggleBlockSelection }
  688. #- { key: V, mods: Alt, mode: Vi|~Search, action: ToggleSemanticSelection }
  689. #- { key: Return, mode: Vi|~Search, action: Open }
  690. #- { key: K, mode: Vi|~Search, action: Up }
  691. #- { key: J, mode: Vi|~Search, action: Down }
  692. #- { key: H, mode: Vi|~Search, action: Left }
  693. #- { key: L, mode: Vi|~Search, action: Right }
  694. #- { key: Up, mode: Vi|~Search, action: Up }
  695. #- { key: Down, mode: Vi|~Search, action: Down }
  696. #- { key: Left, mode: Vi|~Search, action: Left }
  697. #- { key: Right, mode: Vi|~Search, action: Right }
  698. #- { key: Key0, mode: Vi|~Search, action: First }
  699. #- { key: Key4, mods: Shift, mode: Vi|~Search, action: Last }
  700. #- { key: Key6, mods: Shift, mode: Vi|~Search, action: FirstOccupied }
  701. #- { key: H, mods: Shift, mode: Vi|~Search, action: High }
  702. #- { key: M, mods: Shift, mode: Vi|~Search, action: Middle }
  703. #- { key: L, mods: Shift, mode: Vi|~Search, action: Low }
  704. #- { key: B, mode: Vi|~Search, action: SemanticLeft }
  705. #- { key: W, mode: Vi|~Search, action: SemanticRight }
  706. #- { key: E, mode: Vi|~Search, action: SemanticRightEnd }
  707. #- { key: B, mods: Shift, mode: Vi|~Search, action: WordLeft }
  708. #- { key: W, mods: Shift, mode: Vi|~Search, action: WordRight }
  709. #- { key: E, mods: Shift, mode: Vi|~Search, action: WordRightEnd }
  710. #- { key: Key5, mods: Shift, mode: Vi|~Search, action: Bracket }
  711. #- { key: Slash, mode: Vi|~Search, action: SearchForward }
  712. #- { key: Slash, mods: Shift, mode: Vi|~Search, action: SearchBackward }
  713. #- { key: N, mode: Vi|~Search, action: SearchNext }
  714. #- { key: N, mods: Shift, mode: Vi|~Search, action: SearchPrevious }
  715. # Search Mode
  716. #- { key: Return, mode: Search|Vi, action: SearchConfirm }
  717. #- { key: Escape, mode: Search, action: SearchCancel }
  718. #- { key: C, mods: Control, mode: Search, action: SearchCancel }
  719. #- { key: U, mods: Control, mode: Search, action: SearchClear }
  720. #- { key: W, mods: Control, mode: Search, action: SearchDeleteWord }
  721. #- { key: P, mods: Control, mode: Search, action: SearchHistoryPrevious }
  722. #- { key: N, mods: Control, mode: Search, action: SearchHistoryNext }
  723. #- { key: Up, mode: Search, action: SearchHistoryPrevious }
  724. #- { key: Down, mode: Search, action: SearchHistoryNext }
  725. #- { key: Return, mode: Search|~Vi, action: SearchFocusNext }
  726. #- { key: Return, mods: Shift, mode: Search|~Vi, action: SearchFocusPrevious }
  727. # (Windows, Linux, and BSD only)
  728. #- { key: V, mods: Control|Shift, mode: ~Vi, action: Paste }
  729. #- { key: C, mods: Control|Shift, action: Copy }
  730. #- { key: F, mods: Control|Shift, mode: ~Search, action: SearchForward }
  731. #- { key: B, mods: Control|Shift, mode: ~Search, action: SearchBackward }
  732. #- { key: C, mods: Control|Shift, mode: Vi|~Search, action: ClearSelection }
  733. #- { key: Insert, mods: Shift, action: PasteSelection }
  734. #- { key: Key0, mods: Control, action: ResetFontSize }
  735. #- { key: Equals, mods: Control, action: IncreaseFontSize }
  736. #- { key: Plus, mods: Control, action: IncreaseFontSize }
  737. #- { key: NumpadAdd, mods: Control, action: IncreaseFontSize }
  738. #- { key: Minus, mods: Control, action: DecreaseFontSize }
  739. #- { key: NumpadSubtract, mods: Control, action: DecreaseFontSize }
  740. # (Windows only)
  741. #- { key: Return, mods: Alt, action: ToggleFullscreen }
  742. # (macOS only)
  743. #- { key: K, mods: Command, mode: ~Vi|~Search, chars: "\x0c" }
  744. #- { key: K, mods: Command, mode: ~Vi|~Search, action: ClearHistory }
  745. #- { key: Key0, mods: Command, action: ResetFontSize }
  746. #- { key: Equals, mods: Command, action: IncreaseFontSize }
  747. #- { key: Plus, mods: Command, action: IncreaseFontSize }
  748. #- { key: NumpadAdd, mods: Command, action: IncreaseFontSize }
  749. #- { key: Minus, mods: Command, action: DecreaseFontSize }
  750. #- { key: NumpadSubtract, mods: Command, action: DecreaseFontSize }
  751. #- { key: V, mods: Command, action: Paste }
  752. #- { key: C, mods: Command, action: Copy }
  753. #- { key: C, mods: Command, mode: Vi|~Search, action: ClearSelection }
  754. #- { key: H, mods: Command, action: Hide }
  755. #- { key: H, mods: Command|Alt, action: HideOtherApplications }
  756. #- { key: M, mods: Command, action: Minimize }
  757. #- { key: Q, mods: Command, action: Quit }
  758. #- { key: W, mods: Command, action: Quit }
  759. #- { key: N, mods: Command, action: SpawnNewInstance }
  760. #- { key: F, mods: Command|Control, action: ToggleFullscreen }
  761. #- { key: F, mods: Command, mode: ~Search, action: SearchForward }
  762. #- { key: B, mods: Command, mode: ~Search, action: SearchBackward }
  763. #debug:
  764. # Display the time it takes to redraw each frame.
  765. #render_timer: false
  766. # Keep the log file after quitting Alacritty.
  767. #persistent_logging: false
  768. # Log level
  769. #
  770. # Values for `log_level`:
  771. # - Off
  772. # - Error
  773. # - Warn
  774. # - Info
  775. # - Debug
  776. # - Trace
  777. #log_level: Warn
  778. # Print all received window events.
  779. #print_events: false