diff --git a/cfg/config b/cfg/config new file mode 100644 index 0000000000000000000000000000000000000000..6228d5fc9abc4b02630758a27a1828b3a6403f8f --- /dev/null +++ b/cfg/config @@ -0,0 +1,77 @@ +# +# This is a general section, the settings set here will be set for +# all libraries +# + +[settings] +# +# General file opener program, rifle is a nice python program +# If you're on macOS, you can write "open", if you're on linux +# you can also write "xdg-open", on windows-cygwin, you can set it to +# "cygstart" +# +# opentool = rifle +# Use ranger as a file browser, a nice python program +# file-browser = ranger +# Ask for confirmation when doing papis add +# add-confirm = True +# Edit the info.yaml file before adding a doc into the library +# papis add --edit +# add-edit = True +# Open the files before adding a document into the library +# papis add --open +# add-open = True +# +# Define custom default match and header formats +# +match-format = {doc[tags]}{doc.subfolder}{doc[title]}{doc[author]}{doc[year]} +# +# Define header format with colors and multiline support +# +header-format = <red>{doc.html_escape[title]}</red> + <span color='#ff00ff'> {doc.html_escape[author]}</span> + <yellow> ({doc.html_escape[year]})</yellow> + +ref-format = {doc[author]:.6} {doc[year]} {doc[title]:.15} + + + + +[tui] +# editmode = vi +# options_list.selected_margin_style = bg:ansigreen fg:ansired +# options_list.unselected_margin_style = + +# Define a lib +[papers] +dir = ~/Documents/papers + +# override settings from the section tui only for the papers library +# you have to prepend "tui-" to the settings +# tui-editmode = emacs +# tui-options_list.unselected_margin_style = bg:blue +# use whoosh as a database for papers +# database-backend = whoosh +# rename files added by author and title +add-file-name = {doc[author]}{doc[title]} + +# Define a lib for books +# [books] +# dir = ~/Documents/books +# database-backend = whoosh + +# Define a lib for Videos +# [videos] +# dir = ~/Videos/courses + +# Define a lib for contacts, why not? +# To make it work you just have to define some default settings +# [contacts] +# dir = ~/contacts/general +# database-backend = papis +# mode = contact +# header-format = {doc[first_name]} {doc[last_name]} +# match-format = {doc[org]} {doc[first_name]} {doc[last_name]} +# browse-query-format = {doc[first_name]} {doc[last_name]} +# add-open = False +