emacs-citar / citar

Emacs package to quickly find and act on bibliographic references, and edit org, markdown, and latex academic documents.
GNU General Public License v3.0
501 stars 54 forks source link

when selecting multiple references, keep the current filter #783

Closed JonatanSahar closed 11 months ago

JonatanSahar commented 1 year ago

when selecting multiple references using citar-open, once I hit TAB to select a ref, the filtering I had applied is cancelled. The most common scenario for me it to look for a specific tag, wanting to select several refs which are tagged with it - currently I need to search for the tag again for each ref.

bdarcus commented 1 year ago

Sorry for the delay; realize I forgot to reply to it!

I would definitely like to figure this out, though am unsure on how.

Perhaps pressing enter when selecting would preserve the input?

Duplicate of #714; see notes there, in particular https://github.com/emacs-citar/citar/issues/714#issuecomment-1355113854:

... we have to do what vertico-repeat does and keep track of the input in post-command-hook.

Note that https://github.com/emacs-citar/citar/commit/37f6b6b1b82597f8dc17b58dbd21855d73074c31 did implement a fix, but I reverted it because of a bug.

bdarcus commented 11 months ago

Closing since a duplicate, and I reopened #714.