michaelbrusegard / tabline.wez

A versatile and easy to use retro tab bar plugin for the WezTerm terminal emulator created with the lualine.nvim configuration format
MIT License
55 stars 5 forks source link

Keybinds for extensions #22

Open michaelbrusegard opened 1 month ago

michaelbrusegard commented 1 month ago

It would be nice to have specific keybinds for extensions or disabled them for some. I have some thoughts already, but this may be a limitation of WezTerm as it is

michaelbrusegard commented 1 month ago

A thought is to have the option to specify a key table that gets activated when the extension is active. That way I can avoid having to pass the config object to the plugin directly. The hard part with this is that I would have to make it work with the mode component to either create a new mode that is modified by the extension or just ignore it and overwrite the normal_mode that is currently being done. Maybe similar to how the plugin expects the keytables that represnet a mode to start with `modean extension keytable can be expected to start withext_`. Still having some thoughts about this

michaelbrusegard commented 1 month ago

Honestly my use for this would be to have some empty key tables when I use the fuzzy finders for resurrect, workspace switcher or domains so the normal keybinds like switching tabs are disabled. Since I dont want to be able to switch away from the fuzzy picker when it is open since that can be confusing with the tabline being altered