Skip to content

Commit

Permalink
add option to ignore diacritics
Browse files Browse the repository at this point in the history
  • Loading branch information
malb committed Jan 12, 2024
1 parent 42a43b3 commit 7262e38
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions helm-bibtex.el
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,18 @@ comes out in the right buffer."

;; Helm sources:

(defcustom helm-bibtex-ignore-diacritics nil
"Ignore diacritics when searching."
:group 'bibtex-completion
:type 'boolean)

(defvar helm-source-bibtex
(helm-build-sync-source "BibTeX entries"
:header-name (lambda (name)
(format "%s%s: " name (if helm-bibtex-local-bib " (local)" "")))
:candidates 'helm-bibtex-candidates
:filtered-candidate-transformer 'helm-bibtex-candidates-formatter
:diacritics helm-bibtex-ignore-diacritics
:action (helm-make-actions
"Open PDF, URL or DOI" 'helm-bibtex-open-any
"Open URL or DOI in browser" 'helm-bibtex-open-url-or-doi
Expand Down

0 comments on commit 7262e38

Please sign in to comment.