diff options
author | Alejandro Gallo <aamsgallo@gmail.com> | 2017-12-23 15:54:23 +0100 |
---|---|---|
committer | Alejandro Gallo <aamsgallo@gmail.com> | 2017-12-23 15:54:23 +0100 |
commit | 565c88454bb8512600c1d601680fef78c0fa5620 (patch) | |
tree | cfec21123913ca4be2ebf9e5e54f275bde332b65 | |
parent | 7573bde990975476f2316f44be9e5985d4703a09 (diff) |
Update versionv0.5.1
-rw-r--r-- | doc/build/man/papis-config.1 | 78 | ||||
-rw-r--r-- | doc/build/man/papis.1 | 353 | ||||
-rw-r--r-- | papis/__init__.py | 2 | ||||
-rw-r--r-- | scripts/shell_completion/build/bash/papis | 28 |
4 files changed, 435 insertions, 26 deletions
diff --git a/doc/build/man/papis-config.1 b/doc/build/man/papis-config.1 index 5325faf9..45a821d2 100644 --- a/doc/build/man/papis-config.1 +++ b/doc/build/man/papis-config.1 @@ -1,6 +1,6 @@ .\" Man page generated from reStructuredText. . -.TH "PAPIS-CONFIG" "1" "Dec 06, 2017" "0.4.9" "papis" +.TH "PAPIS-CONFIG" "1" "Dec 23, 2017" "0.5.1" "papis" .SH NAME papis-config \- Papis Configuration . @@ -123,10 +123,53 @@ vim\-gui\-header\-format = Title: %(header\-format)s .fi .UNINDENT .UNINDENT +.SH LOCAL CONFIGURATION FILES +.sp +Papis also offers the possibility of creating local configuration files. +The name of the local configuration file can be configured with the +\fBlocal\-config\-file\fP setting. +.sp +The local configuration file can be found in the current directory of +where you are issuing the papis command or in the directory of the +library that you are considering in the papis command. +.sp +For instance let us suppose that you are in some project folder +\fB~/Documents/myproject\fP and you have a local config file there +with a definition of a new library. Then whenever you are +in the \fB~/Documents/myproject\fP directory papis will also source the +local configuration file found there. +.sp +On the other hand, also if you have a configuration file in the library folder +for your papers, for instance in +.INDENT 0.0 +.INDENT 3.5 +.sp +.nf +.ft C +~/Documents/papers/.papis.config +.ft P +.fi +.UNINDENT +.UNINDENT +.sp +then everytime that you use this library also papis will source this +configuration file. .SH DEFAULT SETTINGS .SS General .INDENT 0.0 .TP +\fBlocal\-config\-file\fP (\fI\%config\-settings\-local\-config\-file\fP) +.INDENT 7.0 +.IP \(bu 2 +\fBDefault\fP: \fB\&.papis.config\fP +.UNINDENT +.UNINDENT +.sp +Name AND relative path of the local configuration file that papis +will additionally read if the file is present in the current +directory or in the base directory of a given library. +.INDENT 0.0 +.TP \fBmode\fP (\fI\%config\-settings\-mode\fP) .INDENT 7.0 .IP \(bu 2 @@ -273,7 +316,7 @@ for the given library. \fBcache\-dir\fP (\fI\%config\-settings\-cache\-dir\fP) .INDENT 7.0 .IP \(bu 2 -\fBDefault\fP: \fB/home/ale/.cache/papis\fP +\fBDefault\fP: \fB/home/gallo/.cache/papis\fP .UNINDENT .UNINDENT .INDENT 0.0 @@ -322,6 +365,17 @@ your documents to be \fBauthor\-title\fP then you should set it to the papis format: \fB{doc[author]}\-{doc[title]}\fP\&. .INDENT 0.0 .TP +\fBfile\-name\fP (\fI\%config\-settings\-file\-name\fP) +.INDENT 7.0 +.IP \(bu 2 +\fBDefault\fP: \fBNone\fP +.UNINDENT +.UNINDENT +.sp +Same as \fBadd\-name\fP, but for files, not folders. If it is not set, +the names of the files will be cleaned and taken \fIas\-is\fP\&. +.INDENT 0.0 +.TP \fBadd\-interactive\fP (\fI\%config\-settings\-add\-interactive\fP) .INDENT 7.0 .IP \(bu 2 @@ -681,6 +735,26 @@ in your info file or not. If it is set to false then a representation for the unicode characters will be written in its place. Since we should be living in an unicode world, it is set to \fBTrue\fP by default. +.INDENT 0.0 +.TP +\fBref\-format\fP (\fI\%config\-settings\-ref\-format\fP) +.INDENT 7.0 +.IP \(bu 2 +\fBDefault\fP: \fB{doc[doi]}\fP +.UNINDENT +.UNINDENT +.sp +This flag is set to change the \fBref\fP flag in the info.yaml file +when a document is imported. For example: I prefer the format +FirstAuthorYear e.g. Plews2019. This would be achieved by the +following: +.INDENT 0.0 +.INDENT 3.5 +\fBref\-format = {doc[author_list][0][surname]}{doc[year]}\fP +.UNINDENT +.UNINDENT +.sp +The default behaviour is to set the doi as the ref. .SS Vim gui .INDENT 0.0 .TP diff --git a/doc/build/man/papis.1 b/doc/build/man/papis.1 index 32793299..855c6ca7 100644 --- a/doc/build/man/papis.1 +++ b/doc/build/man/papis.1 @@ -1,6 +1,6 @@ .\" Man page generated from reStructuredText. . -.TH "PAPIS" "1" "Dec 06, 2017" "0.4.9" "papis" +.TH "PAPIS" "1" "Dec 23, 2017" "0.5.1" "papis" .SH NAME papis \- Papis Documentation . @@ -481,10 +481,53 @@ vim\-gui\-header\-format = Title: %(header\-format)s .fi .UNINDENT .UNINDENT +.SS Local configuration files +.sp +Papis also offers the possibility of creating local configuration files. +The name of the local configuration file can be configured with the +\fBlocal\-config\-file\fP setting. +.sp +The local configuration file can be found in the current directory of +where you are issuing the papis command or in the directory of the +library that you are considering in the papis command. +.sp +For instance let us suppose that you are in some project folder +\fB~/Documents/myproject\fP and you have a local config file there +with a definition of a new library. Then whenever you are +in the \fB~/Documents/myproject\fP directory papis will also source the +local configuration file found there. +.sp +On the other hand, also if you have a configuration file in the library folder +for your papers, for instance in +.INDENT 0.0 +.INDENT 3.5 +.sp +.nf +.ft C +~/Documents/papers/.papis.config +.ft P +.fi +.UNINDENT +.UNINDENT +.sp +then everytime that you use this library also papis will source this +configuration file. .SS Default settings .SS General .INDENT 0.0 .TP +\fBlocal\-config\-file\fP (\fI\%config\-settings\-local\-config\-file\fP) +.INDENT 7.0 +.IP \(bu 2 +\fBDefault\fP: \fB\&.papis.config\fP +.UNINDENT +.UNINDENT +.sp +Name AND relative path of the local configuration file that papis +will additionally read if the file is present in the current +directory or in the base directory of a given library. +.INDENT 0.0 +.TP \fBmode\fP (\fI\%config\-settings\-mode\fP) .INDENT 7.0 .IP \(bu 2 @@ -631,7 +674,7 @@ for the given library. \fBcache\-dir\fP (\fI\%config\-settings\-cache\-dir\fP) .INDENT 7.0 .IP \(bu 2 -\fBDefault\fP: \fB/home/ale/.cache/papis\fP +\fBDefault\fP: \fB/home/gallo/.cache/papis\fP .UNINDENT .UNINDENT .INDENT 0.0 @@ -680,6 +723,17 @@ your documents to be \fBauthor\-title\fP then you should set it to the papis format: \fB{doc[author]}\-{doc[title]}\fP\&. .INDENT 0.0 .TP +\fBfile\-name\fP (\fI\%config\-settings\-file\-name\fP) +.INDENT 7.0 +.IP \(bu 2 +\fBDefault\fP: \fBNone\fP +.UNINDENT +.UNINDENT +.sp +Same as \fBadd\-name\fP, but for files, not folders. If it is not set, +the names of the files will be cleaned and taken \fIas\-is\fP\&. +.INDENT 0.0 +.TP \fBadd\-interactive\fP (\fI\%config\-settings\-add\-interactive\fP) .INDENT 7.0 .IP \(bu 2 @@ -1039,6 +1093,26 @@ in your info file or not. If it is set to false then a representation for the unicode characters will be written in its place. Since we should be living in an unicode world, it is set to \fBTrue\fP by default. +.INDENT 0.0 +.TP +\fBref\-format\fP (\fI\%config\-settings\-ref\-format\fP) +.INDENT 7.0 +.IP \(bu 2 +\fBDefault\fP: \fB{doc[doi]}\fP +.UNINDENT +.UNINDENT +.sp +This flag is set to change the \fBref\fP flag in the info.yaml file +when a document is imported. For example: I prefer the format +FirstAuthorYear e.g. Plews2019. This would be achieved by the +following: +.INDENT 0.0 +.INDENT 3.5 +\fBref\-format = {doc[author_list][0][surname]}{doc[year]}\fP +.UNINDENT +.UNINDENT +.sp +The default behaviour is to set the doi as the ref. .SS Vim gui .INDENT 0.0 .TP @@ -1813,6 +1887,20 @@ papis add ~/Documents/interesting.pdf \-\-from\-doi 10.10763/1.3237134 .fi .UNINDENT .UNINDENT +.INDENT 0.0 +.IP \(bu 2 +Add paper to a library named \fBmachine\-learning\fP from \fBarxiv.org\fP +.UNINDENT +.INDENT 0.0 +.INDENT 3.5 +.sp +.nf +.ft C +papis \-l machine\-learning add \-\-from\-url https://arxiv.org/abs/1712.03134 +.ft P +.fi +.UNINDENT +.UNINDENT .UNINDENT .UNINDENT .INDENT 0.0 @@ -1820,8 +1908,8 @@ papis add ~/Documents/interesting.pdf \-\-from\-doi 10.10763/1.3237134 .sp .nf .ft C -usage: papis add [\-h] [\-d DIR] [\-i] [\-\-name NAME] [\-\-title TITLE] - [\-\-author AUTHOR] [\-\-from\-bibtex FROM_BIBTEX] +usage: papis add [\-h] [\-d DIR] [\-i] [\-\-name NAME] [\-\-file\-name FILE_NAME] + [\-\-title TITLE] [\-\-author AUTHOR] [\-\-from\-bibtex FROM_BIBTEX] [\-\-from\-yaml FROM_YAML] [\-\-from\-folder FROM_FOLDER] [\-\-from\-url FROM_URL] [\-\-from\-doi FROM_DOI] [\-\-from\-pmid FROM_PMID] [\-\-from\-lib FROM_LIB] @@ -1858,6 +1946,9 @@ Name for the document’s folder (papis format) .sp Default: “” .TP +.B\-\-file\-name +File name for the document (papis format) +.TP .B\-\-title Title for document .sp @@ -2251,8 +2342,8 @@ Default: False .sp .nf .ft C -usage: papis explore [\-h] [\-\-isbnplus] [\-\-arxiv] [\-\-libgen] [\-\-add] - [\-\-max MAX] +usage: papis explore [\-h] [\-\-isbnplus] [\-\-arxiv] [\-\-libgen] [\-\-crossref] + [\-\-add] [\-\-max MAX] [\-\-cmd CMD] search .ft P .fi @@ -2284,6 +2375,11 @@ Search on library genesis .sp Default: False .TP +.B\-\-crossref +Search on library genesis +.sp +Default: False +.TP .B\-\-add Add document selected .sp @@ -2293,6 +2389,9 @@ Default: False Maximum number of items .sp Default: 30 +.TP +.B\-\-cmd +Issue a command on the retrieved document using papis format .UNINDENT .SS Remove .INDENT 0.0 @@ -2332,7 +2431,7 @@ Default: False .sp .nf .ft C -usage: papis gui [\-h] [\-\-tk] [\-\-rofi] [\-\-vim] +usage: papis gui [\-h] [\-\-tk] [\-\-rofi] [\-\-urwid] [\-\-vim] .ft P .fi .UNINDENT @@ -2350,6 +2449,11 @@ Rofi based UI .sp Default: False .TP +.B\-\-urwid +Urwid based UI +.sp +Default: False +.TP .B\-\-vim Vim based UI .sp @@ -2420,7 +2524,7 @@ papis list \-\-template bibitem.template .nf .ft C usage: papis list [\-h] [\-i] [\-f] [\-d] [\-\-format FORMAT] [\-\-template TEMPLATE] - [\-p] [\-\-downloaders] + [\-p] [\-\-downloaders] [\-\-libraries] [search] .ft P .fi @@ -2467,6 +2571,11 @@ Default: False List available downloaders .sp Default: False +.TP +.B\-\-libraries +List defined libraries +.sp +Default: False .UNINDENT .SS Browse .sp @@ -3104,7 +3213,201 @@ args passed by the user. .UNINDENT .SH GIT .sp -Papis is conceived to work well with the tool \fIgit\fP\&. +Papis is conceived to work well with the tool \fIgit\fP, this would also work with +\fI\%mercurial\fP +or \fI\%subversion\fP\&. +.sp +Here you will find a description of a possible workflow using git with papis. +This is not the only workflow, but it is the most obvious. +.sp +Let’s say you have a library named \fBbooks\fP in the directory +\fB~/Documents/MyNiceBooks\fP\&. You could turn the \fBbooks\fP library into +a \fIgit\fP repository, just doing for example +.INDENT 0.0 +.INDENT 3.5 +.sp +.nf +.ft C +papis \-l books run git init +.ft P +.fi +.UNINDENT +.UNINDENT +.sp +or just going to the library directory and running the command there: +.INDENT 0.0 +.INDENT 3.5 +.sp +.nf +.ft C +cd ~/Documents/MyNiceBooks +git init +.ft P +.fi +.UNINDENT +.UNINDENT +.sp +Now you can add everything you have in the library with \fBgit add .\fP +if you are in the library’s directory or +.INDENT 0.0 +.INDENT 3.5 +.sp +.nf +.ft C +papis \-l books git add . +.ft P +.fi +.UNINDENT +.UNINDENT +.sp +if you want to do it using the \fIpapis\fP’ \fBgit\fP command. +.SS Interplay with other commands +.sp +Some papis commands give you the opportunity of using \fBgit\fP to manage +changes. For instance if you are adding a new document, you could use +the \fB\-\-commit\fP flag to also add a commit into your library, so if you do +.INDENT 0.0 +.INDENT 3.5 +.sp +.nf +.ft C +papis add \-\-author "Pedrito" \-\-title "Super book" book.pdf \-\-commit +.ft P +.fi +.UNINDENT +.UNINDENT +.sp +then also papis will do an automatic commit for the book, so that you can +push your library afterwards to a remote repository. +.sp +You can imagine that papis command like \fBrename\fP and \fBmv\fP should also +offer such functionality, and they indeed do through the \fB\-\-git\fP flag. +Go to their documentation for more information. +.SS Updating the libray +.sp +You can use the papis’ simple \fBgit\fP wrapper, +.INDENT 0.0 +.INDENT 3.5 +.sp +.nf +.ft C +papis git pull +.ft P +.fi +.UNINDENT +.UNINDENT +.SS Usual workflow +.sp +Usually the workflow is like this: +.sp +When adding a document that you know for sure you want in your library: +.INDENT 0.0 +.INDENT 3.5 +.INDENT 0.0 +.IP \(bu 2 +Add the document and commit it, either by \fBgit add \-\-commit\fP +or committing the document after adding it to the library. +.IP \(bu 2 +Pull changes from the remote library, maybe you pushed something +at work (reference changes etc..) and you do not have it yet there, +you would do something like +.INDENT 2.0 +.INDENT 3.5 +.sp +.nf +.ft C +papis git pull +.ft P +.fi +.UNINDENT +.UNINDENT +.IP \(bu 2 +Push what you just added +.INDENT 2.0 +.INDENT 3.5 +.sp +.nf +.ft C +papis git push +.ft P +.fi +.UNINDENT +.UNINDENT +.IP \(bu 2 +Review the status of the library +.INDENT 2.0 +.INDENT 3.5 +.sp +.nf +.ft C +papis git status +.ft P +.fi +.UNINDENT +.UNINDENT +.UNINDENT +.UNINDENT +.UNINDENT +.sp +When editing a document’s info file: +.INDENT 0.0 +.INDENT 3.5 +.INDENT 0.0 +.IP \(bu 2 +Edit the file and then take a look at the \fBdiff\fP maybe +.INDENT 2.0 +.INDENT 3.5 +.sp +.nf +.ft C +papis git diff +.ft P +.fi +.UNINDENT +.UNINDENT +.IP \(bu 2 +Add the changes +.INDENT 2.0 +.INDENT 3.5 +.sp +.nf +.ft C +papis git add \-a +.ft P +.fi +.UNINDENT +.UNINDENT +.IP \(bu 2 +Commit +.INDENT 2.0 +.INDENT 3.5 +.sp +.nf +.ft C +papis git commit +.ft P +.fi +.UNINDENT +.UNINDENT +.IP \(bu 2 +Pull/push: +.INDENT 2.0 +.INDENT 3.5 +.sp +.nf +.ft C +papis git pull +papis git push +.ft P +.fi +.UNINDENT +.UNINDENT +.UNINDENT +.UNINDENT +.UNINDENT +.sp +Of course these workflows are just very basic examples, you can imagine +that your workflow would look completely different. .SH SCIHUB SUPPORT .sp Papis has a script that uses the scihub platform to download scientific @@ -3380,6 +3683,38 @@ You can check \fI\%issue #18\fP for more information. .UNINDENT .UNINDENT +.SH SHELL AUTOCOMPLETION +.sp +Papis has a bash autocompletion script that comes installed +when you install papis with \fBpip3\fP\&. +.sp +It should be installed in a relative path +.INDENT 0.0 +.INDENT 3.5 +.sp +.nf +.ft C +PREFIX/etc/bash_completion.d/papis +.ft P +.fi +.UNINDENT +.UNINDENT +.sp +normally the \fBPREFIX\fP part is \fB/usr/local/\fP, so you can add the +following line to your \fB~/.bashrc\fP file +.INDENT 0.0 +.INDENT 3.5 +.sp +.nf +.ft C +source /usr/local/etc/bash_completion.d/papis +.ft P +.fi +.UNINDENT +.UNINDENT +.sp +or get the bash script from +\fI\%here\fP\&. .SH FAQ .sp Here are some problems that users have come accross with often: diff --git a/papis/__init__.py b/papis/__init__.py index 9e312d92..21668286 100644 --- a/papis/__init__.py +++ b/papis/__init__.py @@ -1,7 +1,7 @@ # Information __license__ = 'GPLv3' -__version__ = '0.5.0' +__version__ = '0.5.1' __author__ = __maintainer__ = 'Alejandro Gallo' __email__ = 'aamsgallo@gmail.com' diff --git a/scripts/shell_completion/build/bash/papis b/scripts/shell_completion/build/bash/papis index 85b9a88f..d333d972 100644 --- a/scripts/shell_completion/build/bash/papis +++ b/scripts/shell_completion/build/bash/papis @@ -13,17 +13,17 @@ case "$cur" in -*) COMPREPLY=( $( compgen -W " -c --cc --clear-cache --config --cores -h --help -j -l --lib --log --pick-lib --picktool --set -v -V --verbose --version" -- $cur ) );; * ) - COMPREPLY=( $( compgen -W "add check config edit export explore list rm mv rename open browse update run git gui sync add-from-mail call crawl scihub mail mutt doi zotero hubation ga update-scripts" -- $cur ) );; + COMPREPLY=( $( compgen -W "add check config edit export explore list rm mv rename open browse update run git gui sync zotero doi call scihub hubation crawl mutt update-scripts add-from-mail ga mail" -- $cur ) );; esac case "$prev" in config) - COMPREPLY=( $( compgen -W " -h --help browser check-keys use-cache info-name editor extra-bibtex-types add-name opentool default-library match-format database-backend user-agent mark-opener-format default-gui ref-format mark-format-name header-format notes-name info-allow-unicode file-browser dir-umask format-doc-name mark-key-name mark-header-format local-config-file add-confirm scripts-short-help-regex export-text-format extra-bibtex-keys add-interactive mode doc-url-key-name cache-dir open-mark use-git mvtool search-engine sync-command xeditor browse-query-format add-edit mark-match-format add-open picktool urwid-gui-help-key urwid-gui-kill-buffer-key urwid-gui-redraw-key urwid-gui-show-fields urwid-gui-prompt-key urwid-gui-search-key urwid-gui-quit-key rofi-gui-case_sensitive rofi-gui-sep rofi-gui-normal_window rofi-gui-width rofi-gui-multi_select rofi-gui-key-browse rofi-gui-header-format rofi-gui-key-quit rofi-gui-fullscreen rofi-gui-markup_rows rofi-gui-fixed_lines rofi-gui-key-normal-window rofi-gui-lines rofi-gui-key-edit rofi-gui-key-delete rofi-gui-key-open-stay rofi-gui-key-open rofi-gui-key-help rofi-gui-eh vim-gui-help-key vim-gui-next-search-key vim-gui-edit-key vim-gui-prev-search-key vim-gui-search-key vim-gui-header-format vim-gui-delete-key vim-gui-open-dir-key vim-gui-open-key tk-gui-window-bg tk-gui-move_up tk-gui-activebackground tk-gui-activeforeground tk-gui-move_down tk-gui-borderwidth tk-gui-focus_prompt tk-gui-move_top tk-gui-height tk-gui-labels-per-page tk-gui-clear tk-gui-entry-bg-odd tk-gui-prompt-bg tk-gui-match-format tk-gui-window-width tk-gui-window-height tk-gui-half_up tk-gui-print_info tk-gui-entry-fg tk-gui-scroll_up tk-gui-edit tk-gui-move_bottom tk-gui-entry-bg-pair tk-gui-help tk-gui-scroll_down tk-gui-prompt-font-size tk-gui-entry-font-size tk-gui-header-format tk-gui-cursor tk-gui-entry-font-name tk-gui-entry-lines tk-gui-entry-bg-size tk-gui-exit tk-gui-insertbackground tk-gui-prompt-fg tk-gui-entry-font-style tk-gui-open tk-gui-half_down" -- $cur ) ) + COMPREPLY=( $( compgen -W " -h --help info-allow-unicode browser export-text-format mode extra-bibtex-types format-doc-name add-open editor add-interactive search-engine file-name doc-url-key-name xeditor add-name dir-umask database-backend ref-format notes-name use-cache mvtool cache-dir open-mark user-agent mark-format-name local-config-file sync-command add-confirm extra-bibtex-keys use-git browse-query-format mark-match-format mark-opener-format header-format default-library opentool scripts-short-help-regex info-name match-format mark-key-name default-gui mark-header-format add-edit file-browser picktool check-keys rofi-gui-key-browse rofi-gui-multi_select rofi-gui-key-normal-window rofi-gui-key-delete rofi-gui-key-help rofi-gui-fullscreen rofi-gui-fixed_lines rofi-gui-markup_rows rofi-gui-key-edit rofi-gui-lines rofi-gui-normal_window rofi-gui-header-format rofi-gui-sep rofi-gui-width rofi-gui-key-open rofi-gui-key-quit rofi-gui-eh rofi-gui-key-open-stay rofi-gui-case_sensitive tk-gui-entry-bg-odd tk-gui-print_info tk-gui-prompt-fg tk-gui-header-format tk-gui-entry-bg-size tk-gui-move_down tk-gui-help tk-gui-labels-per-page tk-gui-entry-lines tk-gui-window-height tk-gui-move_bottom tk-gui-entry-fg tk-gui-entry-font-name tk-gui-cursor tk-gui-insertbackground tk-gui-window-width tk-gui-borderwidth tk-gui-entry-font-size tk-gui-edit tk-gui-scroll_up tk-gui-focus_prompt tk-gui-activeforeground tk-gui-open tk-gui-entry-font-style tk-gui-prompt-font-size tk-gui-match-format tk-gui-activebackground tk-gui-move_up tk-gui-clear tk-gui-move_top tk-gui-exit tk-gui-height tk-gui-entry-bg-pair tk-gui-prompt-bg tk-gui-window-bg tk-gui-scroll_down tk-gui-half_down tk-gui-half_up urwid-gui-redraw-key urwid-gui-show-fields urwid-gui-prompt-key urwid-gui-quit-key urwid-gui-kill-buffer-key urwid-gui-search-key urwid-gui-help-key vim-gui-delete-key vim-gui-open-dir-key vim-gui-header-format vim-gui-open-key vim-gui-next-search-key vim-gui-edit-key vim-gui-search-key vim-gui-help-key vim-gui-prev-search-key" -- $cur ) ) ;; add) - COMPREPLY=( $( compgen -W " --author --commit --confirm -d --dir --edit --from-bibtex --from-doi --from-folder --from-lib --from-pmid --from-url --from-vcf --from-yaml -h --help -i --interactive --name --no-document --open --title --to" -- $cur ) ) + COMPREPLY=( $( compgen -W " --author --commit --confirm -d --dir --edit --file-name --from-bibtex --from-doi --from-folder --from-lib --from-pmid --from-url --from-vcf --from-yaml -h --help -i --interactive --name --no-document --open --title --to" -- $cur ) ) ;; check) @@ -43,7 +43,7 @@ case "$prev" in ;; explore) - COMPREPLY=( $( compgen -W " --add --arxiv -h --help --isbnplus --libgen --max" -- $cur ) ) + COMPREPLY=( $( compgen -W " --add --arxiv --cmd --crossref -h --help --isbnplus --libgen --max" -- $cur ) ) ;; list) @@ -90,15 +90,15 @@ case "$prev" in COMPREPLY=( $( compgen -W " -h --help" -- $cur ) ) ;; - add-from-mail) + zotero) COMPREPLY=( $( compgen -W "" -- $cur ) ) ;; - call) + doi) COMPREPLY=( $( compgen -W "" -- $cur ) ) ;; - crawl) + call) COMPREPLY=( $( compgen -W "" -- $cur ) ) ;; @@ -106,23 +106,23 @@ case "$prev" in COMPREPLY=( $( compgen -W " -d --from-doi --name" -- $cur ) ) ;; - mail) + hubation) COMPREPLY=( $( compgen -W "" -- $cur ) ) ;; - mutt) + crawl) COMPREPLY=( $( compgen -W "" -- $cur ) ) ;; - doi) + mutt) COMPREPLY=( $( compgen -W "" -- $cur ) ) ;; - zotero) + update-scripts) COMPREPLY=( $( compgen -W "" -- $cur ) ) ;; - hubation) + add-from-mail) COMPREPLY=( $( compgen -W "" -- $cur ) ) ;; @@ -130,7 +130,7 @@ case "$prev" in COMPREPLY=( $( compgen -W "" -- $cur ) ) ;; - update-scripts) + mail) COMPREPLY=( $( compgen -W "" -- $cur ) ) ;; @@ -156,7 +156,7 @@ case "$prev" in ;; --set) - COMPREPLY=( $( compgen -W "add-confirm= mark-opener-format= add-name= picktool= ref-format= open-mark= editor= mode= check-keys= user-agent= browse-query-format= notes-name= use-cache= info-name= cache-dir= sync-command= file-browser= add-edit= info-allow-unicode= extra-bibtex-types= opentool= default-library= add-open= match-format= mark-header-format= xeditor= dir-umask= add-interactive= database-backend= scripts-short-help-regex= mark-key-name= mark-match-format= search-engine= doc-url-key-name= mvtool= local-config-file= extra-bibtex-keys= header-format= export-text-format= format-doc-name= default-gui= use-git= mark-format-name= browser= tk-gui-half_up= tk-gui-cursor= tk-gui-move_down= tk-gui-entry-fg= tk-gui-exit= tk-gui-borderwidth= tk-gui-open= tk-gui-prompt-bg= tk-gui-entry-font-style= tk-gui-prompt-fg= tk-gui-edit= tk-gui-activebackground= tk-gui-labels-per-page= tk-gui-activeforeground= tk-gui-window-bg= tk-gui-focus_prompt= tk-gui-print_info= tk-gui-window-height= tk-gui-clear= tk-gui-scroll_up= tk-gui-entry-bg-pair= tk-gui-entry-font-size= tk-gui-half_down= tk-gui-help= tk-gui-scroll_down= tk-gui-header-format= tk-gui-move_bottom= tk-gui-entry-bg-odd= tk-gui-prompt-font-size= tk-gui-entry-bg-size= tk-gui-entry-lines= tk-gui-insertbackground= tk-gui-move_top= tk-gui-window-width= tk-gui-height= tk-gui-match-format= tk-gui-move_up= tk-gui-entry-font-name= vim-gui-edit-key= vim-gui-help-key= vim-gui-next-search-key= vim-gui-open-key= vim-gui-prev-search-key= vim-gui-search-key= vim-gui-delete-key= vim-gui-header-format= vim-gui-open-dir-key= rofi-gui-key-quit= rofi-gui-key-edit= rofi-gui-multi_select= rofi-gui-key-open= rofi-gui-key-normal-window= rofi-gui-key-help= rofi-gui-lines= rofi-gui-case_sensitive= rofi-gui-fullscreen= rofi-gui-key-browse= rofi-gui-key-open-stay= rofi-gui-header-format= rofi-gui-normal_window= rofi-gui-markup_rows= rofi-gui-sep= rofi-gui-fixed_lines= rofi-gui-eh= rofi-gui-key-delete= rofi-gui-width= urwid-gui-show-fields= urwid-gui-help-key= urwid-gui-prompt-key= urwid-gui-kill-buffer-key= urwid-gui-quit-key= urwid-gui-search-key= urwid-gui-redraw-key=" -- $cur ) ) + COMPREPLY=( $( compgen -W "default-gui= mark-header-format= mode= ref-format= add-name= extra-bibtex-keys= mark-match-format= export-text-format= match-format= search-engine= mark-opener-format= add-open= format-doc-name= mark-key-name= header-format= xeditor= add-edit= user-agent= file-name= opentool= scripts-short-help-regex= info-name= add-interactive= browser= picktool= doc-url-key-name= use-git= cache-dir= sync-command= mvtool= local-config-file= default-library= file-browser= dir-umask= editor= check-keys= use-cache= browse-query-format= extra-bibtex-types= open-mark= info-allow-unicode= add-confirm= database-backend= mark-format-name= notes-name= vim-gui-delete-key= vim-gui-search-key= vim-gui-open-dir-key= vim-gui-prev-search-key= vim-gui-next-search-key= vim-gui-help-key= vim-gui-edit-key= vim-gui-header-format= vim-gui-open-key= tk-gui-edit= tk-gui-entry-bg-pair= tk-gui-height= tk-gui-half_up= tk-gui-cursor= tk-gui-entry-font-size= tk-gui-entry-bg-size= tk-gui-entry-font-name= tk-gui-activeforeground= tk-gui-open= tk-gui-entry-lines= tk-gui-entry-bg-odd= tk-gui-half_down= tk-gui-scroll_down= tk-gui-move_up= tk-gui-entry-font-style= tk-gui-borderwidth= tk-gui-help= tk-gui-prompt-bg= tk-gui-move_bottom= tk-gui-scroll_up= tk-gui-header-format= tk-gui-activebackground= tk-gui-entry-fg= tk-gui-window-width= tk-gui-match-format= tk-gui-move_top= tk-gui-prompt-fg= tk-gui-window-bg= tk-gui-labels-per-page= tk-gui-move_down= tk-gui-prompt-font-size= tk-gui-exit= tk-gui-focus_prompt= tk-gui-insertbackground= tk-gui-window-height= tk-gui-print_info= tk-gui-clear= rofi-gui-fullscreen= rofi-gui-case_sensitive= rofi-gui-key-delete= rofi-gui-lines= rofi-gui-multi_select= rofi-gui-key-normal-window= rofi-gui-header-format= rofi-gui-key-quit= rofi-gui-key-edit= rofi-gui-key-open-stay= rofi-gui-eh= rofi-gui-key-help= rofi-gui-key-open= rofi-gui-normal_window= rofi-gui-sep= rofi-gui-fixed_lines= rofi-gui-markup_rows= rofi-gui-width= rofi-gui-key-browse= urwid-gui-prompt-key= urwid-gui-search-key= urwid-gui-quit-key= urwid-gui-redraw-key= urwid-gui-help-key= urwid-gui-show-fields= urwid-gui-kill-buffer-key=" -- $cur ) ) ;; esac |