mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 11:10:04 +08:00
fix(bookmarks): fix mn
& mp
key bindings
This commit is contained in:
parent
99738624b4
commit
5816fbbbfa
@ -153,10 +153,27 @@ function! bookmarks#next() abort
|
||||
call s:jump_to_bookmark(s:bookmarks[file][lnum])
|
||||
endif
|
||||
endfor
|
||||
else
|
||||
call s:NT.notify('no bookmarks found')
|
||||
endif
|
||||
|
||||
endfunction
|
||||
|
||||
function! bookmarks#previous() abort
|
||||
let file = s:FILE.unify_path(expand('%'), ':p')
|
||||
|
||||
if has_key(s:bookmarks, file)
|
||||
for lnum in reverse(keys(s:bookmarks[file]))
|
||||
if lnum < line('.')
|
||||
call s:jump_to_bookmark(s:bookmarks[file][lnum])
|
||||
endif
|
||||
endfor
|
||||
else
|
||||
call s:NT.notify('no bookmarks found')
|
||||
endif
|
||||
|
||||
endfunction
|
||||
|
||||
function! bookmarks#showall() abort
|
||||
let qf = []
|
||||
for [f, nrs] in items(s:bookmarks)
|
||||
|
Loading…
Reference in New Issue
Block a user