VSCodeVim / Vim

:star: Vim for Visual Studio Code
http://aka.ms/vscodevim
MIT License
13.73k stars 1.31k forks source link

Support `:b[uffer] {bufname}` #9154

Closed ccassise closed 1 month ago

ccassise commented 1 month ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Currently, only :b[uffer] [N] is supported.

Describe the solution you'd like A clear and concise description of what you want to happen.

I would like :b[uffer] {bufname} to switch to {bufname} from the buffer list. A partial name should also work as long as it is unique in the list of buffers.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

See :b[uffer]. It should support both buffer index and try to match buffer name if given a string instead of a number. https://vimhelp.org/windows.txt.html#windows.txt