I don't mind it, but you might. If you like the directory first like you had it before, you can rearrange the fzf entries by passing --with-nth=3,1,2 -d'\t' to fzf, then fiddle with the sed command.
thanks for pointing out these issues! i do actually prefer the existing format, but i have fixed those two bugs in 7e5b1b1452c17ba5c5c253a6eec3ad5d076b5fa6 .
This is a vault that the existing command would have a hard time with:
First problem is,
user1
has two duplicate entries, one in a dir and one without a dir (edge case, I know):Since the folder is removed before
rbw
is called, I get the wrong entry when I choose the one infolder1
:Second problem is,
user2
's login is in a folder with spaces in the name:When I run the existing
fzf
script, I get this:When I should get this:
The new version I'm proposing solves both problems. It's a bit shorter as well.
One thing to note is, the fzf search results list format is a bit different than the original:
I don't mind it, but you might. If you like the directory first like you had it before, you can rearrange the fzf entries by passing
--with-nth=3,1,2 -d'\t'
tofzf
, then fiddle with the sed command.