* Update ssh_backend.md * Update normalize_output_to_unicode_nfc.md * Update strikethrough_position.md * Update underline_position.md * Update underline_thickness.md * Fix lua config docs titles to be formatted as inline code * Mention how suggested alphabet for quick select is choosen * Mention update-status and update-right-status for status_update_interval * Fix docs for all keyassignments to be formatted as inline code * Fix Lua object index titles * Fix titles of `wezterm.*` module index pages * Fix title of `Color` object & `wezterm.color` functions We reduce titles from h2 to h1 because mkdocs defaults the page title to the page file name if no h1 header is found. * Unify title of all object methods * Add index page for Gui events
75 lines
2.5 KiB
Markdown
75 lines
2.5 KiB
Markdown
# `CharSelect`
|
|
|
|
{{since('20220903-194523-3bb1ed61')}}
|
|
|
|
Activates *Character Selection Mode*, which is a pop-over modal that allows you
|
|
to browse characters by category as well as fuzzy search by name or hex unicode
|
|
codepoint value.
|
|
|
|
Characters are categorized into the following groups:
|
|
|
|
* `"RecentlyUsed"` - recently selected characters, ordered by [frecency](https://en.wikipedia.org/wiki/Frecency)
|
|
* `"SmileysAndEmotion"`
|
|
* `"PeopleAndBody"`
|
|
* `"AnimalsAndNature"`
|
|
* `"FoodAndDrink"`
|
|
* `"TravelAndPlaces"`
|
|
* `"Activities"`
|
|
* `"Objects"`
|
|
* `"Symbols"`
|
|
* `"Flags"`
|
|
* `"NerdFonts"` - glyphs that are present in [Nerd Fonts](https://www.nerdfonts.com/cheat-sheet)
|
|
* `"UnicodeNames"` - all codepoints defined in unicode
|
|
|
|
The following key assignments are available (they are not currently configurable):
|
|
|
|
|Key | Action |
|
|
|----------------|--------|
|
|
|UpArrow |Move Up |
|
|
|DownArrow |Move Down|
|
|
|Enter |Accept the current item, copy it to the clipboard, insert it into the active pane, and cancel the modal|
|
|
|Esc |Cancel the modal|
|
|
|CTRL-g |Cancel the modal|
|
|
|CTRL-r |Cycle to the next group of characters|
|
|
|CTRL-SHIFT-r |Cycle to the previous group of characters|
|
|
|CTRL-u |Clear text input|
|
|
|
|
Typing a name or a hex unicode codepoint value will fuzzy search across all
|
|
possible groups (not just the current group) and filter the results.
|
|
|
|
This action is by default assigned to `CTRL-SHIFT-U` (`U` for `Unicode`).
|
|
|
|
The default assignment is equivalent to this config:
|
|
|
|
```lua
|
|
-- Control the size of the font.
|
|
-- Uses the same font as window_frame.font
|
|
-- char_select_font_size = 18.0,
|
|
|
|
config.keys = {
|
|
{
|
|
key = 'u',
|
|
mods = 'SHIFT|CTRL',
|
|
action = wezterm.action.CharSelect {
|
|
copy_on_select = true,
|
|
copy_to = 'ClipboardAndPrimarySelection',
|
|
},
|
|
},
|
|
}
|
|
```
|
|
|
|
The `CharSelect` action accepts a lua table with the following fields:
|
|
|
|
* `copy_on_select` - a boolean that controls whether hitting `Enter` to select
|
|
an item will copy to the clipboard, in addition to sending the item to the
|
|
active pane. The default is `true`, but you can set it to `false` if you
|
|
prefer.
|
|
* `copy_to` - allows you to control where the item will be copied to. Accepts
|
|
the same values as [CopyTo](CopyTo.md). The default is
|
|
`'ClipboardAndPrimarySelection'`.
|
|
* `group` - an optional group to pre-select. You may use any of the groups
|
|
listed above (eg: `"SmileysAndEmotion"`). If omitted, wezterm will default to
|
|
`"RecentlyUsed"` if you have previously selected an item, or
|
|
`"SmileysAndEmotion"` otherwise.
|
|
|