justinmk / vim-dirvish

Directory viewer for Vim :zap:
Other
1.19k stars 64 forks source link

Default search not empty #111

Closed AmaruCoder closed 6 years ago

AmaruCoder commented 6 years ago

Thank you for writing this amazing plugin. For me, it has replaced NerdTree and netrw. However, after opening a folder, and try to find a file using the search option (/), it is already preloaded with: \ze[^\/]*[\/]\=$. How can I change that to empty?

justinmk commented 6 years ago

Glad you like it!

If the search is empty it will match concealed text, which you almost certainly don't want.

See also #28

AmaruCoder commented 6 years ago

Oceanside, March 03, 2018

Dear Justin,

Thank you for the prompt reply, and, again, for writing this plugin. Cordially,

José

On Mar 3, 2018, at 10:46 AM, Justin M. Keyes <notifications@github.com mailto:notifications@github.com> wrote:

Closed #111 https://github.com/justinmk/vim-dirvish/issues/111.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/justinmk/vim-dirvish/issues/111#event-1502626344, or mute the thread https://github.com/notifications/unsubscribe-auth/ACmQ66Zvxx3UwdLWgLrc5PAFPJk44bYTks5tauUSgaJpZM4SbBij.

duganchen commented 5 years ago

What am I supposed to do with the "\ze[^\/]*[\/]\=$" though? Just delete it and type my search in?

justinmk commented 5 years ago

@duganchen don't do anything, just start typing ...

virus-found commented 4 years ago

Frankly I've always thought it was a bug. Any workaround possible nowadays?

duganchen commented 4 years ago

Document it better? ;)

virus-found commented 4 years ago

Document it better? ;)

It looks as if it's terribly borked. I'm sure the docs will not redeem it.

justinmk commented 4 years ago

It looks as if it's terribly borked.

You mean it looks weird and you don't understand it, so it's "borked"? Or what do you mean exactly?

The mapping is there so that searches do not match the concealed part of each path. If you want to match the concealed part, feel free to unmap the mapping:

au FileType dirvish silent! unmap <buffer> /

"lol this thing is borked" is FUD.

virus-found commented 4 years ago

No offence meant. I wanted to say my opinion only: this behaviour looks and feels wrong. I've always thought it was either a bug or caused by one of my many tweaks in .vimrc, but was too lazy to figure out.