Replies: 1 comment 7 replies
-
So I think this is relevant to this, though I’m not quite sure. But here it goes anyway. Is there a way to see on the list of entries which of them have associated notes and/or PDFs without using emacs 28? Something like what |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I started this before I implemented the idea. I've now merged it, and should be a good base to iterate on.
Background
I thought I'd write down some ideas I've thought about as I've put this code together, and in the process learned about bibtex-completion, completing-read, etc., and started a PR.
I've created this issue to track it: #33.
Right now, the UI is very similar to helm-bibtex and ivy-bibtex. It presents a single, undifferentiated, formatted propertized display string, but internally searches using a different string.
This works well.
But there's room with completing-read to use annotations for secondary bits of supporting information. Affixation (recently added to Emacs 28) seems the forward-looking way to do this (see: minad/marginalia#50 (comment)).
Is there value in rethinking the UI a bit to take advantage of that, and adding an affixation function to support it, either here or in a separate package?
If yes, how would that look, and what should that function generate?
My suggestions:
Prefix
Perhaps prefixes with nice icons or icon fonts (see also) to indicate presence of pdfs, notes, or links, like this?
The icons would need to be aligned, however, so they at least appeared as in columns.
Suffix
Maybe a suffix with the key, type, and maybe tags?
If yes, the actually displayed string would be more compact (say just author, date, title?) to make room.
Something like this:
Maybe it's user-configurable?
Also, early in these discussions, marginalia (and consult) author @minad suggested the possibility of a separate package for annotation. Does that still make sense?
If someone does want to experiment with this, do post screenshots.This is now fully implemented, with configurable main display and suffix.See also #20.
Beta Was this translation helpful? Give feedback.
All reactions