Tagging imported BibTex entries in TiddlyWiki 5

153 views
Skip to first unread message

cw

unread,
Feb 10, 2021, 7:26:38 AM2/10/21
to TiddlyWiki

I'd like to use TW5 to support a literature review, and the BibTeX import looks very useful. I am dragging a .bib file onto TW, and an import list is produced, one entry per article. Works well, and the tiddlys produced have the info in usefully named fields.

I would like to automatically tag each entry of that list with something list "recent-bibtex-import" so I can find them in a list and do stuff. Either at the "import list" stage, or once they have been imported (without finding each one individually - there might be many references imported at one time (hundreds)).

Any help greatly appreciated.

TW 5.1.23
OSX 11.2 and sometimes Windows 10
Firefox 85

Chris

Odin

unread,
Feb 11, 2021, 1:45:39 AM2/11/21
to TiddlyWiki
Hi!
'
If you want to tag them only to filter bibtex tiddlers from other tiddlers, you could also use their other fields for this. (a tag is just a field with special styling). Imported bibtex tiddlers should at least have the 'bibtex-title' fields as every reference has a title. You can use the has operator to select any tiddlers with the 'bibtex-title' field. 

For example: <<list-links "[has:field[bibtex-title]]">> will make a list with all tiddlers with the field bibtex-title.

If you want tags instead have a look at Mohammed's Refnotes plugin. If you follow the link it will bring you to a tiddler with a button that adds a tag to all imported bibtex tiddlers. I think you can use the code from that tiddler for your use case.

Op woensdag 10 februari 2021 om 13:26:38 UTC+1 schreef cw:

cw

unread,
Feb 11, 2021, 7:30:46 AM2/11/21
to TiddlyWiki
superb - thank you.
I will try both those approaches.

Chris
Reply all
Reply to author
Forward
0 new messages