A WezTerm plugin to jump to the build error by opening them in Helix.
Add the following to your ~/.wezterm.lua
:
local quickselect_plugin = wezterm.plugin.require 'https://github.com/quantonganh/quickselect.wezterm'
quickselect_plugin.apply_to_config(config)
If you are using config.keys = { ... }
in your config, make sure to change it to something like this:
local my_keys = {
...
}
for _, keymap in ipairs(my_keys) do
table.insert(config.keys, keymap)
end
This ensures that the plugin's key bindings are not overwritten.
The following extensions are currently supported:
local text_extensions = opts.text_extensions or {
md = true,
c = true,
go = true,
scm = true,
rkt = true,
rs = true,
java = true,
}
local patterns = opts.patterns or {
'https?://\\S+',
'^/[^/\r\n]+(?:/[^/\r\n]+)*:\\d+:\\d+',
'[^\\s]+\\.rs:\\d+:\\d+',
'rustc --explain E\\d+',
'[^\\s]+\\.go:\\d+',
'[^\\s]+\\.go:\\d+:\\d+',
'[^\\s]+\\.java:\\[\\d+,\\d+\\]',
'[^{]*{.*}',
}
You can adjust these to match your preferred languages and/or patterns.