emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Fast way to jump to another specific heading?
@ 2009-08-13 13:29 Jan Böcker
  2009-08-13 23:22 ` Andrew Stribblehill
  2009-08-14  2:00 ` Matt Lundin
  0 siblings, 2 replies; 4+ messages in thread
From: Jan Böcker @ 2009-08-13 13:29 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

at the moment I use one org-mode file per project and use ido.el's fuzzy 
search to quickly open the appropriate project file. However, this tends 
to clutter up my buffer list when I forget to kill buffers after using 
them.

I'd like to use only one file to store all my active projects and use 
ido.el to quickly jump to another project node ("project nodes" being 
defined as, say, all direct descendants of a particular top-level node).
Ideally, after jumping to the node, the outline would automatically be 
narrowed down to the target node.

Are there similar facilities already present in org-mode that I missed?

If not, I'd like to propose a new feature: take the results of a custom 
agenda view (as those allow us to define powerful searches), then feed the 
results to ido-mode or the standard emacs autocompletion for the user to 
select one to jump to.
Unfortunately, my elisp-fu (and knowledge of org-mode internals) is way 
too insufficient to implement something like that myself.

Jan

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Fast way to jump to another specific heading?
  2009-08-13 13:29 Fast way to jump to another specific heading? Jan Böcker
@ 2009-08-13 23:22 ` Andrew Stribblehill
  2009-08-14  2:00 ` Matt Lundin
  1 sibling, 0 replies; 4+ messages in thread
From: Andrew Stribblehill @ 2009-08-13 23:22 UTC (permalink / raw)
  To: Jan Böcker; +Cc: emacs-orgmode

Have you tried the org-refile interface? C-u C-c C-w lets you jump to
a heading using the same interface you get when refiling, so you can
customise it easily.

My org-refile config is:

(setq org-refile-targets '((org-agenda-files :maxlevel . 2))
      org-refile-use-outline-path 'file
      org-refile-target-verify-function
      (lambda ()
	(not (member "ARCHIVE" (org-get-tags)))))

This lets me go to whichever file I choose out of the list of agenda
files then up to two deep into the hierarchy, filtering out archived
sections. If you're sticking to one file, perhaps see if (setq
org-refile-use-outline-path t) is to your taste.

2009/8/13 Jan Böcker <lists.jan@jboecker.de>:
> Hello,
>
> at the moment I use one org-mode file per project and use ido.el's fuzzy
> search to quickly open the appropriate project file. However, this tends to
> clutter up my buffer list when I forget to kill buffers after using them.
>
> I'd like to use only one file to store all my active projects and use ido.el
> to quickly jump to another project node ("project nodes" being defined as,
> say, all direct descendants of a particular top-level node).
> Ideally, after jumping to the node, the outline would automatically be
> narrowed down to the target node.
>
> Are there similar facilities already present in org-mode that I missed?
>
> If not, I'd like to propose a new feature: take the results of a custom
> agenda view (as those allow us to define powerful searches), then feed the
> results to ido-mode or the standard emacs autocompletion for the user to
> select one to jump to.
> Unfortunately, my elisp-fu (and knowledge of org-mode internals) is way too
> insufficient to implement something like that myself.
>
> Jan
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Fast way to jump to another specific heading?
  2009-08-13 13:29 Fast way to jump to another specific heading? Jan Böcker
  2009-08-13 23:22 ` Andrew Stribblehill
@ 2009-08-14  2:00 ` Matt Lundin
  2009-08-14  4:48   ` Jan Böcker
  1 sibling, 1 reply; 4+ messages in thread
From: Matt Lundin @ 2009-08-14  2:00 UTC (permalink / raw)
  To: Jan Böcker; +Cc: emacs-orgmode

Jan Böcker <lists.jan@jboecker.de> writes:

> Hello,
>
> at the moment I use one org-mode file per project and use ido.el's
> fuzzy search to quickly open the appropriate project file. However,
> this tends to clutter up my buffer list when I forget to kill buffers
> after using them.
>
> I'd like to use only one file to store all my active projects and use
> ido.el to quickly jump to another project node ("project nodes" being
> defined as, say, all direct descendants of a particular top-level
> node).
> Ideally, after jumping to the node, the outline would automatically be
> narrowed down to the target node.
>
> Are there similar facilities already present in org-mode that I
> missed?

Have you tried the following with org-refile and org-goto?

(setq org-completion-use-ido t)

Best,
Matt

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Fast way to jump to another specific heading?
  2009-08-14  2:00 ` Matt Lundin
@ 2009-08-14  4:48   ` Jan Böcker
  0 siblings, 0 replies; 4+ messages in thread
From: Jan Böcker @ 2009-08-14  4:48 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: Matt Lundin




On Thu, 13 Aug 2009, Andrew Stribblehill wrote:
> Have you tried the org-refile interface?
This looks like what I need! I didn't think of refiling when looking for a 
way to navigate my outline.

On Thu, 13 Aug 2009, Matt Lundin wrote:
> Have you tried the following with org-refile and org-goto?
>
> (setq org-completion-use-ido t)

I tried, failed, then noticed that org-refile refuses to use ido if 
org-refile-use-outline-path is in use (the function 
org-olpath-completing-read in org.el explicitly sets this to nil, the 
comment says "does not work with ido").

I have now set org-refile-use-outline-path to nil, and org-refile-targets 
to only include my active projects; that works great!

Thanks a lot!

Jan

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-08-14  4:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-13 13:29 Fast way to jump to another specific heading? Jan Böcker
2009-08-13 23:22 ` Andrew Stribblehill
2009-08-14  2:00 ` Matt Lundin
2009-08-14  4:48   ` Jan Böcker

Code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).