Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom shortcuts #154

Open
hinell opened this issue Feb 11, 2023 · 0 comments
Open

Custom shortcuts #154

hinell opened this issue Feb 11, 2023 · 0 comments

Comments

@hinell
Copy link

hinell commented Feb 11, 2023

Xterm allows you to specify custom keybindings for certain sequences (e.g. <C-S-BS>) via ~/.Xresources files.

For nvui, it's currently impossible to do the same so it makes sense to make feature configurable via ~/.config/nvim/ginit.vim.

The proposed API may look like: GuiKeybinding <keysequence> <string-to-emit>.
The actual use of config may look like:

if exists(':GuiTabline')
    GuiKeybinding Ctrl+Shift+BackSpace "\E[27;6;8~"
endif

In nvim

In nvim I catch them like this:

-- ~/.config/nvim/lua/keybindings.lua
... 
nvim.keymap.set({ 'i' }, 'E[27;6;8~', ... )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant