dzfrias / arena.nvim

A smart (frecency-based) buffer switcher
https://dzfrias.dev/blog/arena-nvim
MIT License
48 stars 5 forks source link

Ability to use number to jump to buffer from arena window? #8

Open benfrain opened 1 year ago

benfrain commented 1 year ago

Thanks for making this, really enjoying it.

One thing that occurred - would it be useful to be able to enter a number to jump to that buffer in the list? Naving up and down is simple enough but being able to type '4' to jump to the fourth buffer in the list would be even quicker.

dzfrias commented 1 year ago

That does sound useful! I don't know about making it the default, behavior though, because I don't want to interfere with a lot of people's perception of core vim motions. It's definitely possible to make something like this using the keybinds section of the config, though!

-- In setup options
keybinds = {
  -- ...
  ['4'] = function()
    vim.fn.cursor(4, 0)
  end,
  -- ...
},