Repository navigation
Conversation
All glob metacharacters "[]*?" in a filename must now be escaped when using add. The TABEXP_GLOB flag is used to limit glob tab completion to the add command only.
|
I'll have to think about this a bit more. |
|
Implementation aside, I think there are several issues here:
Therefore I'll close this PR for now. |
|
Thanks for the feedback @mahkoh. I'll address your points:
I'll take another shot at this when I have the time. |
glob should not be called in the UI thread.
No.
That is so but a completely different issue. When the user requests a tab expansion there is no choice but to wait for the data and the user gets immediate feedback. There is no reason for |
Resolves #659 with glob patterns. Some examples:
:add ~/Music/*.mp3:add ~/Music/*/*.flac:add ~/Music/*[Rr]adiohead*:add ~/Music/?.wavCalling
:addon a file that contains glob metacharacters[]?*in its filename must now be escaped::add ~/Music/[2004] Sung Tongs→:add ~/Music/\[2004\] Sung TongsTab completion for
:addhas been modified to escape tab-expanded filenames.