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
This commit is contained in:
Wez Furlong committed 2021-12-23 10:55:44 -07:00
1 parent 6a265d9f72
commit 668d41ad5d
10 files changed
+183 -37

No files matched your search

+2 -1
View File
@@ -4,7 +4,6 @@
Activates [Quick Select Mode](../../../quickselect.md).
```lua
```lua
local wezterm = require 'wezterm';
return {
@@ -13,3 +12,5 @@ return {
}
}
```
See also [QuickSelectArgs](QuickSelectArgs.md)