yi-editor / yi

The Haskell-Scriptable Editor
GNU General Public License v2.0
1.51k stars 201 forks source link

Yi.Mode.Buffers.switch: Buffer not found #1060

Closed talanis85 closed 6 years ago

talanis85 commented 6 years ago

Steps to reproduce:

Seems like the buffer name in the buffer list is not the actual buffer name needed by switchToBufferWithNameE.

noughtmare commented 6 years ago

Can you be more specific as to which commands you use to switch buffers? I have tried this with the vim keybindings:

:e ~/somedir/somefile
:e ~/someotherdir/someotherfile
:buffer somedir/somefile
:buffer someotherdir/someotherfile

That works just fine.

Note: while doing this I noticed that yi automatically strips the common prefix from all the buffer names, maybe that is something you didn't take into account?

noughtmare commented 6 years ago

Ah, so I now tested it with emacs and indeed listBuffers shows the common prefix while the switchBufferE command only accepts buffer names without the common prefix.

I guess there are multiple solutions to this problem: