aserowy / tmux.nvim

tmux integration for nvim features pane movement and resizing from within nvim.
MIT License
644 stars 40 forks source link

Debounce resize command #13

Open honeyspoon opened 3 years ago

honeyspoon commented 3 years ago

Long pressing M-h or other arrow commands continue to resize even when they keys are released. Seems like the event listener for the key stcks all the keypresses. Ideally it would stop once the keys are released This could be implemented using a debounce on the keypress event. Not sure how feasble it is in lua or with the limitations of the neovim api.

aserowy commented 3 years ago

Hi,

thanks for the feedback. Ill look into it after clearing some bugs and enhance logging :D Do have an idea (a plugin eg. where i could start looking)?

Kind regards