emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Feature request: org-goto hierarchical path completion with ido
@ 2009-03-17 16:59 news
  2009-03-17 19:11 ` Carsten Dominik
  0 siblings, 1 reply; 5+ messages in thread
From: news @ 2009-03-17 16:59 UTC (permalink / raw)
  To: emacs-orgmode

Hi, when I set org-outline-path-complete-in-steps to t, I am no longer
able to use ido completion. Instead it shows the completion candidates
in another buffer. Is there any way to use ido with hierarchical
completion?
Also, I can specify a list of candidate files to refile to with
org-refile-targets. Is it possible to get the same behaviour for
org-goto? (i.e. so I can quickly jump to another org file).


-- 
aleblanc

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

* Re: Feature request: org-goto hierarchical path completion with ido
  2009-03-17 16:59 Feature request: org-goto hierarchical path completion with ido news
@ 2009-03-17 19:11 ` Carsten Dominik
  2009-03-18 16:48   ` Peter Jones
  0 siblings, 1 reply; 5+ messages in thread
From: Carsten Dominik @ 2009-03-17 19:11 UTC (permalink / raw)
  To: news; +Cc: emacs-orgmode

Hi Alex (?)



On Mar 17, 2009, at 5:59 PM, <news@aleblanc.cotse.net> <news@aleblanc.cotse.net 
 > wrote:

> Hi, when I set org-outline-path-complete-in-steps to t, I am no longer
> able to use ido completion. Instead it shows the completion candidates
> in another buffer. Is there any way to use ido with hierarchical
> completion?

No.  You can use ido to complete on the entire path in one go,
but not to complete on the steps.

> Also, I can specify a list of candidate files to refile to with
> org-refile-targets. Is it possible to get the same behaviour for
> org-goto? (i.e. so I can quickly jump to another org file).

This is `C-u C-c C-w', it uses the refile command interface
to go to a location.

- Carsten

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

* Re: Feature request: org-goto hierarchical path completion with ido
  2009-03-17 19:11 ` Carsten Dominik
@ 2009-03-18 16:48   ` Peter Jones
  2009-03-19 16:40     ` Carsten Dominik
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Jones @ 2009-03-18 16:48 UTC (permalink / raw)
  To: emacs-orgmode

Carsten Dominik <dominik@science.uva.nl> writes:
> This is `C-u C-c C-w', it uses the refile command interface
> to go to a location.

I'm always looking for a faster way to move around my org buffers, so
based on what you said above, I tried setting org-refile-targets like
so:

  (setq org-refile-targets '((nil . (:maxlevel . 2))))

And then tried using C-u C-c C-w to move around.  Unfortunately, it's
not very practical for moving around since if you want to move somewhere
in the same tree you get this error:

  Cannot refile to position inside the tree or region

It would really be neat if there was a way to jump to a specific
heading, no matter how deep, by just typing a few key strokes.  Right
now, I'm using C-s to do this, but the idea of having auto-completion is
compelling.

How about something like this:

1. Using a key binding, you enter a movement mode (ido, mini-buffer)

2. You select the first level heading you want (just like C-c C-w)

3. Point moves to the heading you selected

4. You are prompted for a second level heading

5. Either choose a heading, or do C-g to stay where you are

6. Continue until you get where you want to be

Does that sound interesting to anyone?  If so, I could put together
something for us to play with.

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US

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

* Re: Re: Feature request: org-goto hierarchical path completion with ido
  2009-03-18 16:48   ` Peter Jones
@ 2009-03-19 16:40     ` Carsten Dominik
  2009-03-19 18:08       ` Peter Jones
  0 siblings, 1 reply; 5+ messages in thread
From: Carsten Dominik @ 2009-03-19 16:40 UTC (permalink / raw)
  To: Peter Jones; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 2642 bytes --]


On Mar 18, 2009, at 5:48 PM, Peter Jones wrote:

> Carsten Dominik <dominik@science.uva.nl> writes:
>> This is `C-u C-c C-w', it uses the refile command interface
>> to go to a location.
>
> I'm always looking for a faster way to move around my org buffers, so
> based on what you said above, I tried setting org-refile-targets like
> so:
>
>  (setq org-refile-targets '((nil . (:maxlevel . 2))))
>
> And then tried using C-u C-c C-w to move around.  Unfortunately, it's
> not very practical for moving around since if you want to move  
> somewhere
> in the same tree you get this error:
>
>  Cannot refile to position inside the tree or region

This is just a bug.  Fixed now.

>
> It would really be neat if there was a way to jump to a specific
> heading, no matter how deep, by just typing a few key strokes.  Right
> now, I'm using C-s to do this, but the idea of having auto- 
> completion is
> compelling.


This is what org-goto is for.  You can select the interface
to be used with the variable org-goto-interface.  Set it to
outline-path-completion and it will work like refiling.
You can configure the maximum depth for this command
with org-goto-max-level.


>
> How about something like this:
>
> 1. Using a key binding, you enter a movement mode (ido, mini-buffer)
>
> 2. You select the first level heading you want (just like C-c C-w)
>
> 3. Point moves to the heading you selected
>
> 4. You are prompted for a second level heading
>
> 5. Either choose a heading, or do C-g to stay where you are
>
> 6. Continue until you get where you want to be

It will not work like this, but I think, in the end, you
would find that what you propose might feel slow again.
I believe you get the fatest interface by using

(setq org-outline-path-complete-in-steps nil)

and using ido for doing the completion on the full path.

The main difference between org-goto and calling org-refile
with a prefix argument is that the former always gives you
all headings to a certain depth in the current file, while
the latter offer a selection of important headings in
potentially many files.

I believe that many people only use the refile interface,
and then have both agenda targets, and current file targets
configured in org-refile-targets.


>
> Does that sound interesting to anyone?  If so, I could put together
> something for us to play with.
>
> -- 
> Peter Jones, http://pmade.com
> pmade inc.  Louisville, CO US
>
>
>
> _______________________________________________
> 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


[-- Attachment #1.2: Type: text/html, Size: 3697 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
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] 5+ messages in thread

* Re: Feature request: org-goto hierarchical path completion with ido
  2009-03-19 16:40     ` Carsten Dominik
@ 2009-03-19 18:08       ` Peter Jones
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Jones @ 2009-03-19 18:08 UTC (permalink / raw)
  To: emacs-orgmode

> This is what org-goto is for.  You can select the interface
> to be used with the variable org-goto-interface.  Set it to
> outline-path-completion and it will work like refiling.
> You can configure the maximum depth for this command
> with org-goto-max-level.

Excellent.  I had tried org-goto before, but didn't know about the
org-goto-interface variable.  This is exactly what I wanted.

Thanks Carsten.

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US

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

end of thread, other threads:[~2009-03-19 18:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-17 16:59 Feature request: org-goto hierarchical path completion with ido news
2009-03-17 19:11 ` Carsten Dominik
2009-03-18 16:48   ` Peter Jones
2009-03-19 16:40     ` Carsten Dominik
2009-03-19 18:08       ` Peter Jones

Code repositories for project(s) associated with this public 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).