Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Feb 4, 2023
1 parent 208c0e6 commit dbab213
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@
<key>modifiers</key>
<integer>8388608</integer>
<key>modifiersubtext</key>
<string>fn: Auto-File PDF ({var:file_manager})</string>
<string>fn: Auto-File PDF selected in Finder</string>
<key>vitoclose</key>
<false/>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion scripts/add-new-entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ function run(argv) {
.replace(/^ {2}/gm, "\t") // indentation
.replace(/^\s*\w+ =/gm, field => field.toLowerCase()) // lowercase all keys
.replace(keysToDeleteRegex, "")
.replace(/^\t(publisher.*?)\{?(?: ?\{?gmbh|ltd|publications|llc)\}?(.*)$/mi, "\t$1$2") // publisher garbage
.replace(/^(\tpublisher.*?)\{?(?: ?\{?gmbh|ltd|publications|llc)\}?(.*)$/mi, "$1$2") // publisher garbage
.replace("\tdate =", "\tyear =") // consistently "year"
.replace("%2F", "/") // fix for URL key in some DOIs
.replace(/\tyear = \{?(\d{4}).*\}?/g, "\tyear = $1,") // clean year key
Expand Down
2 changes: 1 addition & 1 deletion scripts/open_buffer.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/zsh
# # shellcheck disable=2154
# shellcheck disable=2154
LIBRARY="${bibtex_library_path/#\~/$HOME}"
LIT_NOTES_FOLDER="${literature_note_folder/#\~/$HOME}"
PDF_FOLDER="${pdf_folder/#\~/$HOME}"
Expand Down

0 comments on commit dbab213

Please sign in to comment.