elihunter173/dirbuf.nvim

Dirbuf breaks inbuilt <Ctrl-X> keybinding

andrewferrier opened this issue · 1 comments

Another issue from me on dirbuf (apologies just a coincidence I found two on one day!).

Recreation instructions:

  • Install dirbuf, start NeoVim (I'm on 0.7.2 on Mac, unsure about other versions). I've tried bisecting dirbuf to see where this problem was introduced but I think it's been there all along - currently I'm on main (commit d610602)

  • Open any file containing an integer.

  • Verify that Ctrl-A and Ctrl-X work using their inbuilt NeoVim behaviour to increment/decrement the integer.

  • Hit - to go up to dirbuf, then press <CR> to select and open the same file again.

  • Navigate to the integer, and hit Ctrl-X. Rather than decrementing, I get an error saying 'Operation only supports 'filetype=dirbuf''. Ctrl-A still works.

OK, sorry, this was totally my fault! I forgot I had customized some keybindings for dirbuf by putting them in after/ftplugin/, and had not made them buffer-local. I've fixed that and the problem has gone away.

Sorry for the false alarm!