diff options
author | Andreas Grapentin <andreas@grapentin.org> | 2018-07-09 16:01:10 +0200 |
---|---|---|
committer | Andreas Grapentin <andreas@grapentin.org> | 2018-07-09 16:01:10 +0200 |
commit | 6c84ce74ddf2e63ed6b46f4c2492270a7b4f8df4 (patch) | |
tree | 55a2a3fc05a06c32c48622ba626a694ac8db5afc /pcr/papis | |
parent | a812654af8518e3027ea94633a8cf6aa8d06ec44 (diff) | |
download | abslibre-6c84ce74ddf2e63ed6b46f4c2492270a7b4f8df4.tar.gz abslibre-6c84ce74ddf2e63ed6b46f4c2492270a7b4f8df4.tar.bz2 abslibre-6c84ce74ddf2e63ed6b46f4c2492270a7b4f8df4.zip |
pcr/papis: updated to 0.6
Diffstat (limited to 'pcr/papis')
-rw-r--r-- | pcr/papis/PKGBUILD | 13 | ||||
-rw-r--r-- | pcr/papis/papis-vim-gui-add-notes-edit-key.patch | 55 |
2 files changed, 65 insertions, 3 deletions
diff --git a/pcr/papis/PKGBUILD b/pcr/papis/PKGBUILD index 1503d0271..5348aa7f6 100644 --- a/pcr/papis/PKGBUILD +++ b/pcr/papis/PKGBUILD @@ -1,5 +1,5 @@ pkgname="papis" -pkgver=0.5.3 +pkgver=0.6 pkgrel=1 pkgdesc="Powerful and highly extensible command-line based document and bibliography manager." arch=(any) @@ -23,8 +23,15 @@ depends=("python-setuptools" "python-pylibgen" "python-urwid" "python-habanero") -source=($pkgname-$pkgver.tar.gz::https://github.com/papis/papis/archive/v$pkgver.tar.gz) -sha256sums=('7463ac387b50b77ca122b2febdb21f8f7c689395f13242542ba510957dc358b7') +source=($pkgname-$pkgver.tar.gz::https://github.com/papis/papis/archive/v$pkgver.tar.gz + $pkgname-vim-gui-add-notes-edit-key.patch) +sha256sums=('2cb30ea9451e0a8b081d6ea9153f5220d703a4a49cf58ff0dd909bf249c50f81' + 'ec7a2ada63b5eac58cc89e0230ef6db3438357c2669b7c0f88e247e0266cbe53') + +prepare() { + cd "$srcdir/$pkgname-$pkgver" + patch -Np1 -i "$srcdir/$pkgname-vim-gui-add-notes-edit-key.patch" +} build () { cd "$srcdir/$pkgname-$pkgver" 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 = "<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') |