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

A way to autocomplete tags across all org dir #144

Closed
OmarAshkar opened this issue Oct 14, 2020 · 2 comments
Closed

A way to autocomplete tags across all org dir #144

OmarAshkar opened this issue Oct 14, 2020 · 2 comments

Comments

@OmarAshkar
Copy link

Hello,
This package is great, but I just want things to be more systematic for me that when I type M-x org-ql search RET org-directory RET tags: , and then start typing, I wish if there is an autocomplete every if for the defined tag list instead of typing.

It would be excellent, however, if the function fetches all the tags in all org-file, even #+FILETAGS.

Thanks,
Omar

@alphapapa
Copy link
Owner

alphapapa commented Oct 15, 2020

Hello Omar,

You seem to have three distinct ideas here:

  1. Autocompleting tags when entering a query.
  2. Gathering tags from other files.
  3. Gathering tags from #+FILETAGS: headers.

Autocompleting tags could be helpful. However, it would not necessarily be simple to ensure that the tags offered are the ones the user expects. It might require opening Org files in Emacs that are not yet open, a process that can be slow--in the event of opening many Org files, it could take a long time, which would not be a good experience for the user.

Gathering tags from files that are not yet open in Emacs could be helpful, but it is probably out-of-scope for this project. I'd recommend using something like desktop-mode to automatically open files in Emacs that you want to be pre-loaded. Alternatively, we could consider implementing a pre-search hook that could run before executing queries, and that could be used to do things like open certain files.

Gathering tags from headers should already work through the existing Org code. If it doesn't, see issue #133.

If you wish to repurpose this issue around the first idea, I'm willing to consider that as a future enhancement, because autocompletion while entering queries could be helpful. But it's probably a long-term goal for the project, not anything I'd work on soon.

Thanks.

@OmarAshkar
Copy link
Author

Thank you very much. I think I can't trade convenicene for performace. I will close this now

Thank You,
Omar

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

No branches or pull requests

2 participants