diff --git a/autoload/ctrlp/bookmarkdir.vim b/autoload/ctrlp/bookmarkdir.vim index 7d955b5..89bda89 100644 --- a/autoload/ctrlp/bookmarkdir.vim +++ b/autoload/ctrlp/bookmarkdir.vim @@ -112,12 +112,12 @@ fu! ctrlp#bookmarkdir#accept(mode, str) en endf -fu! ctrlp#bookmarkdir#add(dir) +fu! ctrlp#bookmarkdir#add(dir, ...) let str = 'Directory to bookmark: ' let cwd = a:dir != '' ? a:dir : s:getinput(str, getcwd(), 'dir') if cwd == '' | retu | en let cwd = fnamemodify(cwd, ':p') - let name = s:getinput('Bookmark as: ', cwd) + let name = a:0 && a:1 != '' ? a:1 : s:getinput('Bookmark as: ', cwd) if name == '' | retu | en let name = tr(name, ' ', ' ') cal s:savebookmark(name, cwd) diff --git a/doc/ctrlp.txt b/doc/ctrlp.txt index 8bc50a9..47e0d8e 100644 --- a/doc/ctrlp.txt +++ b/doc/ctrlp.txt @@ -1286,6 +1286,7 @@ Special thanks:~ * Zahary Karadjov * Jo De Boeck * Rudi Grinberg + * Timothy Mellor =============================================================================== CHANGELOG *ctrlp-changelog*