diff options
| -rw-r--r-- | wezterm/.config/wezterm/wezterm.lua | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/wezterm/.config/wezterm/wezterm.lua b/wezterm/.config/wezterm/wezterm.lua new file mode 100644 index 0000000..4e03d05 --- /dev/null +++ b/wezterm/.config/wezterm/wezterm.lua @@ -0,0 +1,26 @@ +local wezterm = require 'wezterm' +local config = {} + +config.keys = { + { + key = 'E', + mods = 'CTRL|SHIFT', + action = wezterm.action.QuickSelectArgs { + label = 'open url', + patterns = { + 'https?://[[:alnum:]./-]+[[:alnum:]/]', + }, + action = wezterm.action_callback(function(window, pane) + local url = window:get_selection_text_for_pane(pane) + wezterm.log_info('opening: ' .. url) + wezterm.open_with(url) + end), + }, + }, +} + +config.color_scheme = 'Dracula' +-- config.font_dirs = { "/home/tomwillemsen/.guix-home/profile/share/fonts/truetype" } +-- config.font = wezterm.font 'Fantasque Sans Mono' + +return config |
