Skip to content

Commit

Permalink
Add format-entry-no-widths
Browse files Browse the repository at this point in the history
This function is formatting entries for non-column display.
  • Loading branch information
bdarcus committed Sep 6, 2021
1 parent 3af0fd5 commit 24e29ea
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bibtex-actions.el
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,14 @@ FORMAT-STRING."
(display-value (bibtex-actions-display-value field-names entry)))
(bibtex-actions--fit-to-width display-value display-width)))))

(defun bibtex-actions--format-entry-no-widths (entry format-string)
"Format ENTRY for display per FORMAT-STRING."
(s-format
format-string
(lambda (raw-field)
(let ((field-names (split-string raw-field "[ ]+")))
(bibtex-actions-display-value field-names entry)))))

;;; At-point functions

;;; Org-cite
Expand Down

0 comments on commit 24e29ea

Please sign in to comment.