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

counsel.el: Add counsel versions of org-goto #1005

Merged
merged 1 commit into from May 16, 2017

Conversation

Projects
None yet
6 participants
@fabacino
Contributor

fabacino commented May 16, 2017

  • counsel-org-goto: Go to headline in current org file
  • counsel-org-goto-all: Go to headline in any open org file

With default settings, the output of counsel-org-goto is the same as in vanilla org-goto (without steps). Note that for huge files counsel-org-goto is considerably faster than its built-in friend, so it might be useful even if you don't want to customize the output.

;; Example configuration
(setq counsel-org-goto-display-style 'path)
(setq counsel-org-goto-separator "")
(setq counsel-org-goto-face-style 'org)
(define-key org-mode-map (kbd "C-c C-j") 'counsel-org-goto)
(define-key org-mode-map (kbd "C-u C-c C-j") 'counsel-org-goto-all)

This might be a solution for issue #986

counsel.el: Add counsel versions of org-goto
* counsel-org-goto: Go to headline in current org file
* counsel-org-goto-all: Go to headline in any org file

@abo-abo abo-abo merged commit a61a7f7 into abo-abo:master May 16, 2017

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@abo-abo

This comment has been minimized.

Owner

abo-abo commented May 16, 2017

Well done, thanks a lot.

@dieggsy

This comment has been minimized.

Contributor

dieggsy commented May 16, 2017

This is really nice! Would it be possible to abbreviate/fontify links in headlines like org does? Right now links are displayed in the raw org syntax.

@fabacino fabacino deleted the fabacino:feature/counsel-org-goto branch May 16, 2017

@fabacino

This comment has been minimized.

Contributor

fabacino commented May 16, 2017

@therockmandolinist I will take a look at it, thanks for your feedback!

@amosbird

This comment has been minimized.

Contributor

amosbird commented Oct 10, 2017

@fabacino Hi, this feature is nice. How about adding preview ability? Or have to preview selected items.

@Dickby

This comment has been minimized.

Dickby commented Oct 10, 2017

I think i miss the point here. Can somebody tell me what's the difference between counsel-org-goto and counsel-imenu inside an org file if org-imenu-depth is set to a higher value?

@fabacino

This comment has been minimized.

Contributor

fabacino commented Oct 26, 2017

@Dickby As a wrapper around org-goto, counsel-org-goto provides a few options to customize its output (e.g. including keywords and tags, different ways of displaying headlines), while counsel-imenu is a much more generic way to list places where you can jump to.

In the end it depends whether any of the options of counsel-org-goto can provide some value to you. If you are fine with the output of counsel-imenu within org-mode, you probably won't need counsel-org-goto. Personally, I only use the latter, since I search for keywords quite often.

@amosbird

This comment has been minimized.

Contributor

amosbird commented Oct 26, 2017

Um, after doing an ivy-call and abort ivy, the point isn't restored to the original place.

@fabacino

This comment has been minimized.

Contributor

fabacino commented Oct 26, 2017

@amosbird I am not really sure what you mean by preview ability. Expanding the subtree of the selected headline? Please elaborate. I also suggest to open a new issue for that.

@amosbird

This comment has been minimized.

Contributor

amosbird commented Oct 26, 2017

@fabacino oh, I mean ivy-call.

@the42

This comment has been minimized.

the42 commented Jan 5, 2018

org-refile would also profit of this solution. Any chances to als provide a counsel-org-goto powered counsel-org-refile ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment