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

suggestion: add worf-goto global? #30

Open
zeltak opened this issue Apr 21, 2017 · 2 comments
Open

suggestion: add worf-goto global? #30

zeltak opened this issue Apr 21, 2017 · 2 comments

Comments

@zeltak
Copy link

zeltak commented Apr 21, 2017

Hi

i have been using worf-goto every day as an integral part of my workflow and really love it.

An idea has come up today regarding perhaps having an additional worf-goto command that would act the same as worf-goto but on many files?

so either a user defined folder, list of files, agenda file etc..

that way when one launches worf-goto-global you get all the headers from your pre defined file/folder list of org files.

does that make any sense ;-) any thoughts on that?

best

Z

@alphapapa
Copy link

alphapapa commented Apr 21, 2017

Sounds like a nice idea. In the meantime, you might try something like this, which I've used for a while (be advised, it can be slow if you have a lot of large Org files open; it helps to enable the refile cache):

(defun ap/helm-org-headings-in-agenda-and-open-files ()
    "Preconfigured helm for org headings in agenda files and open org files."
    (interactive)
    (let ((org-agenda-files (delq nil (delete-dups (append org-agenda-files
                                                           (map 'list 'buffer-file-name (org-buffer-list 'files)))))))
      (helm-org-agenda-files-headings)))

Basically, just let the org-agenda-files list to whatever you want, and run helm-org-agenda-files-headings, and it will present all the headings in those files.

@abo-abo
Copy link
Owner

abo-abo commented Apr 21, 2017

does that make any sense ;-) any thoughts on that?

It's a nice idea. Is the mechanism on ro good enough? I think it goes through org-agenda-files and all open Org buffers.

Actually going through all existing Org files on your system might be a bit too costly.

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

3 participants