diff options
author | Christian Duerr <contact@christianduerr.com> | 2021-03-01 19:50:39 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-01 19:50:39 +0000 |
commit | a954e076ca0b1ee9c1f272c2b119c67df3935fd4 (patch) | |
tree | f233f8622ac6ab33519bfcb70b480f23697198b1 /alacritty.yml | |
parent | 772afc6a8aa9db6f89de4b23df27b571a40c9118 (diff) | |
download | alacritty-a954e076ca0b1ee9c1f272c2b119c67df3935fd4.tar.gz alacritty-a954e076ca0b1ee9c1f272c2b119c67df3935fd4.zip |
Add regex terminal hints
This adds support for hints, which allow opening parts of the visual
buffer with external programs if they match a certain regex.
This is done using a visual overlay triggered on a specified key
binding, which then instructs the user which keys they need to press to
pass the text to the application.
In the future it should be possible to supply some built-in actions for
Copy/Pasting the action and using this to launch text when clicking on
it with the mouse. But the current implementation should already be
useful as-is.
Fixes #2792.
Fixes #2536.
Diffstat (limited to 'alacritty.yml')
-rw-r--r-- | alacritty.yml | 49 |
1 files changed, 45 insertions, 4 deletions
diff --git a/alacritty.yml b/alacritty.yml index 4a23f5c9..2ffadc2d 100644 --- a/alacritty.yml +++ b/alacritty.yml @@ -195,7 +195,7 @@ # # Colors which should be used to draw the terminal cursor. # - # Allowed values are CellForeground and CellBackground, which reference the + # Allowed values are CellForeground/CellBackground, which reference the # affected cell, or hexadecimal colors like #ff00ff. #cursor: # text: CellBackground @@ -205,7 +205,7 @@ # # Colors for the cursor when the vi mode is active. # - # Allowed values are CellForeground and CellBackground, which reference the + # Allowed values are CellForeground/CellBackground, which reference the # affected cell, or hexadecimal colors like #ff00ff. #vi_mode_cursor: # text: CellBackground @@ -215,7 +215,7 @@ # # Colors used for the search bar and match highlighting. #search: - # Allowed values are CellForeground and CellBackground, which reference the + # Allowed values are CellForeground/CellBackground, which reference the # affected cell, or hexadecimal colors like #ff00ff. #matches: # foreground: '#000000' @@ -228,6 +228,24 @@ # background: '#c5c8c6' # foreground: '#1d1f21' + # Keyboard hints + #hints: + # Fist character in the hint label + # + # Allowed values are CellForeground/CellBackground, which reference the + # affected cell, or hexadecimal colors like #ff00ff. + #start: + # foreground: '#1d1f21' + # background: '#e9ff5e' + + # All characters after the first one in the hint label + # + # Allowed values are CellForeground/CellBackground, which reference the + # affected cell, or hexadecimal colors like #ff00ff. + #end: + # foreground: '#e9ff5e' + # background: '#1d1f21' + # Line indicator # # Color used for the indicator displaying the position in history during @@ -242,7 +260,7 @@ # # Colors which should be used to draw the selection area. # - # Allowed values are CellForeground and CellBackground, which reference the + # Allowed values are CellForeground/CellBackground, which reference the # affected cell, or hexadecimal colors like #ff00ff. #selection: # text: CellBackground @@ -450,6 +468,29 @@ # binding section. #modifiers: None +# Regex hints +# +# Terminal hints can be used to find text in the visible part of the terminal +# and pipe it to other applications. +#hints: + # Keys used for the hint labels. + #alphabet: "jfkdls;ahgurieowpq" + + # List with all available hints + # + # The fields `command`, `binding.key` and `binding.mods` accept the same + # values as they do in the `key_bindings` section. + # + # Example + # + # enabled: + # - regex: "alacritty/alacritty#\\d*" + # command: firefox + # binding: + # key: G + # mods: Control|Shift + #enabled: [] + # Mouse bindings # # Mouse bindings are specified as a list of objects, much like the key |