Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add autocompletions for tags & titles in elfeed-search buffer. #424

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

SqrtMinusOne
Copy link

This adds notmuch-like autocompletions in the *elfeed-search* buffer. I've seen some discussion in #32 a few years ago, but didn't find anything like that implemented.

It works for:

  • +... - tags
  • -... - tags
  • =... - titles

That's a subset of the possible filter syntax but in my opinion much better than nothing.

The variable elfeed-search-completion-enabled enables autocompletion. elfeed-search-completion-cache enables caching. I've started using elfeed rather recently, so I am not sure how fast would it be to fetch tags and titles from DB at every request. Therefore it's optional and enabled by default.

Built-in completing-read and completing-read-multiple from crm.el are used, so the completion should work with any popular completion framework.

Allows tab completion for tags and feed titles in search prompts.
Closes skeeto#32.
Use completions in elfeed-search-tag-all, elfeed-search-untag-all,
elfeed-search-toggle-all.

Enable caching for tags & titles to avoid querying DB all the time.

New variables:
- "elfeed-search-completion-enabled" to toggle completions.
- "elfeed-search-completion-cache" to toggle completions caching
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant