1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-28 07:55:03 +03:00
wezterm/docs/config/lua/keyassignment/QuickSelect.md
Wez Furlong 668d41ad5d quickselect: add QuickSelectArgs and helpers for opening urls
This commit expands quick select mode so that you can trigger it
with distinct sets of patterns (eg: urls on one key assignment,
hashes on a different key assignment), different alphabets,
and lastly, the option to perform a different action from
the default copy action.

You can pair this with `action_callback` to run lua code to
do something with the selected text.

This commit also adds `wezterm.open_with`, a helper function
for opening documents/URLs.

refs: #846
refs: #1362
2021-12-23 10:55:44 -07:00

17 lines
283 B
Markdown

# QuickSelect
*Since: 20210502-130208-bff6815d*
Activates [Quick Select Mode](../../../quickselect.md).
```lua
local wezterm = require 'wezterm';
return {
keys = {
{key=" ", mods="SHIFT|CTRL", action="QuickSelect"},
}
}
```
See also [QuickSelectArgs](QuickSelectArgs.md)