Skip to content

quantonganh/quickselect.wezterm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Quick Select

A WezTerm plugin to jump to the build error by opening them in Helix.

Installation

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)

Configuration

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.

About

A WezTerm plugin to jump to the build error by opening them in Helix.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages