diff --git a/autoload/ctrlp.vim b/autoload/ctrlp.vim index 0334daf..9e2e258 100644 --- a/autoload/ctrlp.vim +++ b/autoload/ctrlp.vim @@ -629,6 +629,7 @@ endfunc func! s:ToggleRegex() "{{{ let s:regexp = s:regexp ? 0 : 1 cal s:statusline() + let s:nomatches = 1 cal s:BuildPrompt(s:Focus()) endfunc "}}} @@ -636,6 +637,7 @@ func! s:ToggleByFname() "{{{ let s:byfname = s:byfname ? 0 : 1 cal s:MapKeys(s:Focus(), 1) cal s:statusline() + let s:nomatches = 1 cal s:BuildPrompt(s:Focus()) endfunc "}}} @@ -650,6 +652,7 @@ func! s:Type(type) "{{{ cal s:syntax() cal s:SetLines(s:itemtype) cal s:statusline() + let s:nomatches = 1 cal s:BuildPrompt(s:Focus()) endfunc "}}} diff --git a/readme.md b/readme.md index 2e6cf1d..2a0b22c 100644 --- a/readme.md +++ b/readme.md @@ -15,6 +15,7 @@ Full path fuzzy file, buffer and MRU file finder for Vim. * Or press `` while CtrlP is open to switch to full regexp search mode. * End the input string with a colon `:` followed with a number to jump to that line in the selected file. e.g. `abc:45` to open the file matched the pattern and jump to line 45. +* Submit two dots `..` as the input string to go backward the directory tree by 1 level. _Screenshot: filename only mode with the match window focused._ ![ctrlp filename mode, match window focused][2] @@ -59,6 +60,6 @@ The parameter is the same (0, 1 or 2): _Check [the docs][3] for more mappings, commands and options._ -[1]: http://i.imgur.com/lQScr.png +[1]: http://i.imgur.com/Gfntl.png [2]: http://i.imgur.com/MyRIv.png [3]: https://github.com/kien/ctrlp.vim/blob/master/doc/ctrlp.txt