From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: Feature request: org-goto hierarchical path completion with ido Date: Thu, 19 Mar 2009 17:40:36 +0100 Message-ID: References: <87bps0ultw.fsf@it.com> <08B80BD5-3EB0-4F1F-B09D-988FAA8D0628@uva.nl> <86r60uaibc.fsf@pmade.com> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: multipart/mixed; boundary="===============1268363623==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LkLIo-0002Bl-HW for emacs-orgmode@gnu.org; Thu, 19 Mar 2009 12:41:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LkLIj-00029P-7n for emacs-orgmode@gnu.org; Thu, 19 Mar 2009 12:41:05 -0400 Received: from [199.232.76.173] (port=59480 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LkLIj-00029K-27 for emacs-orgmode@gnu.org; Thu, 19 Mar 2009 12:41:01 -0400 Received: from fk-out-0910.google.com ([209.85.128.189]:49739) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LkLIi-0003mq-78 for emacs-orgmode@gnu.org; Thu, 19 Mar 2009 12:41:00 -0400 Received: by fk-out-0910.google.com with SMTP id z23so240673fkz.10 for ; Thu, 19 Mar 2009 09:40:59 -0700 (PDT) In-Reply-To: <86r60uaibc.fsf@pmade.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Peter Jones Cc: emacs-orgmode@gnu.org --===============1268363623== Content-Type: multipart/alternative; boundary=Apple-Mail-6--671885204 --Apple-Mail-6--671885204 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On Mar 18, 2009, at 5:48 PM, Peter Jones wrote: > Carsten Dominik 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 --Apple-Mail-6--671885204 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable
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
<= br>= --Apple-Mail-6--671885204-- --===============1268363623== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1268363623==--