diff options
author | oaken-source <oaken-source@parabola.nu> | 2019-11-05 13:12:43 +0100 |
---|---|---|
committer | oaken-source <oaken-source@parabola.nu> | 2019-11-05 13:12:43 +0100 |
commit | b24f8a8f091c73ce546c8cc60f6bca003693c9f7 (patch) | |
tree | ffe8f442d608be9e441f72dd1b6ac4da21023756 /pcr/papis/papis-vim-gui-add-notes-edit-key.patch | |
parent | 993cbae57089877b56d57b59573e8a69e291ae1c (diff) | |
download | abslibre-b24f8a8f091c73ce546c8cc60f6bca003693c9f7.tar.gz abslibre-b24f8a8f091c73ce546c8cc60f6bca003693c9f7.tar.bz2 abslibre-b24f8a8f091c73ce546c8cc60f6bca003693c9f7.zip |
pcr/papis: updated to 0.9
Diffstat (limited to 'pcr/papis/papis-vim-gui-add-notes-edit-key.patch')
-rw-r--r-- | pcr/papis/papis-vim-gui-add-notes-edit-key.patch | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/pcr/papis/papis-vim-gui-add-notes-edit-key.patch b/pcr/papis/papis-vim-gui-add-notes-edit-key.patch deleted file mode 100644 index 8db21b013..000000000 --- a/pcr/papis/papis-vim-gui-add-notes-edit-key.patch +++ /dev/null @@ -1,55 +0,0 @@ -diff --git a/papis/gui/vim/main.vim b/papis/gui/vim/main.vim -index 4fd2452..05249dc 100644 ---- a/papis/gui/vim/main.vim -+++ b/papis/gui/vim/main.vim -@@ -6,6 +6,7 @@ let g:papis_delete_key = "dd" - let g:papis_open_key = "o" - let g:papis_open_dir_key = "<S-o>" - let g:papis_edit_key = "e" -+let g:papis_notes_edit_key = "E" - - let g:papis_next_key = "j" - let g:papis_prev_key = "k" -@@ -61,12 +62,13 @@ function! PapisExeCommand(cmd, ...) - endfunction - - function! PapisHelp() -- echomsg "Help - ".g:papis_help_key -- echomsg "Open - ".g:papis_open_key -- echomsg "Open dir - ".g:papis_open_dir_key -- echomsg "Edit - ".g:papis_edit_key -- echomsg "Search - ".g:papis_search_key -- echomsg "Delete - ".g:papis_delete_key -+ echomsg "Help - ".g:papis_help_key -+ echomsg "Open - ".g:papis_open_key -+ echomsg "Open dir - ".g:papis_open_dir_key -+ echomsg "Edit - ".g:papis_edit_key -+ echomsg "Edit Notes - ".g:papis_notes_edit_key -+ echomsg "Search - ".g:papis_search_key -+ echomsg "Delete - ".g:papis_delete_key - endfunction - - function! PapisGo(direction) -@@ -124,6 +126,7 @@ exec "nnoremap <buffer> ".g:papis_delete_key." :silent call PapisExeCommand('rm' - exec "nnoremap <buffer> <Return> :silent call PapisExeCommand('open')<cr>" - exec "nnoremap <buffer> ".g:papis_open_dir_key." :silent call PapisExeCommand('open', '--dir')<cr>" - exec "nnoremap <buffer> ".g:papis_edit_key." :silent call PapisExeCommand('edit')<cr>" -+exec "nnoremap <buffer> ".g:papis_notes_edit_key." :silent call PapisExeCommand('edit', '-n')<cr>" - - exec "nnoremap <buffer> ".g:papis_next_key." :silent call PapisGo('next')<cr>" - exec "nnoremap <buffer> ".g:papis_prev_key." :silent call PapisGo('prev')<cr>" -@@ -136,8 +139,9 @@ nnoremap <buffer> <C-f> :silent call PapisGo("screen-down")<cr> - nnoremap <buffer> <C-b> :silent call PapisGo("screen-up")<cr> - - nnoremap <buffer> q :quit<cr> --command! -nargs=0 PapisHelp call PapisHelp() --command! -nargs=0 PapisOpen call PapisExeCommand("open") --command! -nargs=0 PapisOpenDir call PapisExeCommand("open", '--dir') --command! -nargs=0 PapisBrowse call PapisExeCommand("browse") --command! -nargs=0 PapisEdit call PapisExeCommand("edit") -+command! -nargs=0 PapisHelp call PapisHelp() -+command! -nargs=0 PapisOpen call PapisExeCommand("open") -+command! -nargs=0 PapisOpenDir call PapisExeCommand("open", '--dir') -+command! -nargs=0 PapisBrowse call PapisExeCommand("browse") -+command! -nargs=0 PapisEdit call PapisExeCommand("edit") -+command! -nargs=0 PapisEditNotes call PapisExeCommand("edit", '-n') |