v icon indicating copy to clipboard operation
v copied to clipboard

Multiple arguments should be opened as multiple buffers

Open ghost opened this issue 8 years ago • 4 comments

This is more useful behaviour than matching against every regex.

E.g. if I have

$ v -l
2	~/.../json/navigation.json
1	~/.../app.js
0	~/.../sass/theme.sass

I want v app the to start vim with two buffers, one of ~/.../app.js and the other of ~/.../sass/theme.sass.

ghost avatar Nov 08 '17 20:11 ghost

That is more useful for you but in no way is that just generally more useful

$ v -l
2	~/foo/bar/nav.py
1	~/cat/dog/bar.py
0	~/pls/no/nav.py

I want to v bar nav and know I'm getting the right file, not open two in my buffers.

shmup avatar Nov 08 '17 20:11 shmup

Regardless, with your current program, there's no way around opening multiple buffers.

However, you always have the option of v 'bar.*nav' for targeting specific files.

What if I have a file called barnav tho duh duh

v 'bar/nav'

I feel like the multiple buffers is much more useful, v doesn't even provide this functionality in any shape or form yet.

nodingneu avatar Nov 08 '17 21:11 nodingneu

What if I have a file called barnav tho

Today I am being edge case man

shmup avatar Nov 08 '17 21:11 shmup

then change the regex, my point still stands (doesn't your suggested v bar nav match barnav too? what point are you trying to make...)

nodingneu avatar Nov 08 '17 21:11 nodingneu