Handle bookmarks via #open_buffers()

References #164.
This commit is contained in:
Marco Hinz 2015-06-01 14:36:03 +02:00
parent 8fd4247218
commit 07be6b5fa9

View file

@ -500,7 +500,10 @@ function! s:show_bookmarks() abort
for fname in g:startify_bookmarks
let index = s:get_index_as_string(s:entry_number)
call append('$', ' ['. index .']'. repeat(' ', (3 - strlen(index))) . fname)
execute 'nnoremap <buffer><silent>' index ':edit' fnameescape(fname) '<bar> call <sid>check_user_options()<cr>'
if has('win32')
let absolute_path = substitute(fname, '\[', '\[[]', 'g')
endif
let s:entries[index] = fname
let s:entry_number += 1
endfor