From 6c84ce74ddf2e63ed6b46f4c2492270a7b4f8df4 Mon Sep 17 00:00:00 2001 From: Andreas Grapentin Date: Mon, 9 Jul 2018 16:01:10 +0200 Subject: pcr/papis: updated to 0.6 --- pcr/papis/papis-vim-gui-add-notes-edit-key.patch | 55 ++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 pcr/papis/papis-vim-gui-add-notes-edit-key.patch (limited to 'pcr/papis/papis-vim-gui-add-notes-edit-key.patch') diff --git a/pcr/papis/papis-vim-gui-add-notes-edit-key.patch b/pcr/papis/papis-vim-gui-add-notes-edit-key.patch new file mode 100644 index 000000000..8db21b013 --- /dev/null +++ b/pcr/papis/papis-vim-gui-add-notes-edit-key.patch @@ -0,0 +1,55 @@ +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 = "" + 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 ".g:papis_delete_key." :silent call PapisExeCommand('rm' + exec "nnoremap :silent call PapisExeCommand('open')" + exec "nnoremap ".g:papis_open_dir_key." :silent call PapisExeCommand('open', '--dir')" + exec "nnoremap ".g:papis_edit_key." :silent call PapisExeCommand('edit')" ++exec "nnoremap ".g:papis_notes_edit_key." :silent call PapisExeCommand('edit', '-n')" + + exec "nnoremap ".g:papis_next_key." :silent call PapisGo('next')" + exec "nnoremap ".g:papis_prev_key." :silent call PapisGo('prev')" +@@ -136,8 +139,9 @@ nnoremap :silent call PapisGo("screen-down") + nnoremap :silent call PapisGo("screen-up") + + nnoremap q :quit +-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') -- cgit v1.2.3