Le Wang | 5 Oct 12:05 2011
Picon

headline navigation and refiling.

Hi all,

I like using the org-refile interface to navigate.  It's very
intuitive to me.  But I want to navigate to headlines deeper than my
org-refile-target :max-level.  Is there anything to do other than
rolling my own?  I can see wouldn't be hard.

It feels headline navigation was just bolted onto org-refile.  Should
they really be the same command?

--

-- 
Le

suvayu ali | 5 Oct 13:02 2011
Picon

Re: headline navigation and refiling.

On Wed, Oct 5, 2011 at 12:05 PM, Le Wang <l26wang <at> gmail.com> wrote:
> I like using the org-refile interface to navigate.  It's very
> intuitive to me.  But I want to navigate to headlines deeper than my
> org-refile-target :max-level.  Is there anything to do other than
> rolling my own?  I can see wouldn't be hard.
>
> It feels headline navigation was just bolted onto org-refile.  Should
> they really be the same command?
>

Not a part of org, but I think this occur based library is brilliant:
<http://www.emacswiki.org/emacs/org-occur-goto.el>

> --
> Le

HTH

--

-- 
Suvayu

Open source is the future. It sets us free.

Carsten Dominik | 5 Oct 16:34 2011
Picon

Re: headline navigation and refiling.


On 5.10.2011, at 13:02, suvayu ali wrote:

> On Wed, Oct 5, 2011 at 12:05 PM, Le Wang <l26wang <at> gmail.com> wrote:
>> I like using the org-refile interface to navigate.  It's very
>> intuitive to me.  But I want to navigate to headlines deeper than my
>> org-refile-target :max-level.  Is there anything to do other than
>> rolling my own?  I can see wouldn't be hard.
>> 
>> It feels headline navigation was just bolted onto org-refile.  Should
>> they really be the same command?
>> 
> 
> Not a part of org, but I think this occur based library is brilliant:
> <http://www.emacswiki.org/emacs/org-occur-goto.el>

This is good and should be part of Org-mode.  Anyone knows who wrote this?

- Carsten

> 
>> --
>> Le
> 
> HTH
> 
> -- 
> Suvayu
> 
> Open source is the future. It sets us free.
(Continue reading)

Michael Brand | 5 Oct 16:50 2011
Picon

Re: headline navigation and refiling.

Hi Carsten

On Wed, Oct 5, 2011 at 16:34, Carsten Dominik <carsten.dominik <at> gmail.com> wrote:
> On 5.10.2011, at 13:02, suvayu ali wrote:
>> Not a part of org, but I think this occur based library is brilliant:
>> <http://www.emacswiki.org/emacs/org-occur-goto.el>
>
> This is good and should be part of Org-mode.

+1

The same also for the whole set of all agenda files similar to "C-c a
/" would be even better.

> Anyone knows who wrote this?

I took it from Tom's original post
http://thread.gmane.org/gmane.emacs.orgmode/41172

Michael

Carsten Dominik | 5 Oct 16:54 2011
Picon

Re: headline navigation and refiling.


On 5.10.2011, at 16:50, Michael Brand wrote:

> Hi Carsten
> 
> On Wed, Oct 5, 2011 at 16:34, Carsten Dominik <carsten.dominik <at> gmail.com> wrote:
>> On 5.10.2011, at 13:02, suvayu ali wrote:
>>> Not a part of org, but I think this occur based library is brilliant:
>>> <http://www.emacswiki.org/emacs/org-occur-goto.el>
>> 
>> This is good and should be part of Org-mode.
> 
> +1
> 
> The same also for the whole set of all agenda files similar to "C-c a
> /" would be even better.

Care to make the necessary changes?

- Carsten

> 
>> Anyone knows who wrote this?
> 
> I took it from Tom's original post
> http://thread.gmane.org/gmane.emacs.orgmode/41172
> 
> Michael

(Continue reading)

Michael Brand | 5 Oct 17:14 2011
Picon

Re: headline navigation and refiling.

On Wed, Oct 5, 2011 at 16:54, Carsten Dominik <carsten.dominik <at> gmail.com> wrote:
>> The same also for the whole set of all agenda files similar to "C-c a
>> /" would be even better.
>
> Care to make the necessary changes?

It was only a suggestion, I'll prefer to start on other of my
someday/maybe Org things more important to me.

Michael

Suvayu Ali | 5 Oct 17:48 2011
Picon

Re: headline navigation and refiling.

Hi Carsten,

On Wed, 5 Oct 2011 16:34:20 +0200
Carsten Dominik <carsten.dominik <at> gmail.com> wrote:

> > Not a part of org, but I think this occur based library is
> > brilliant: <http://www.emacswiki.org/emacs/org-occur-goto.el>  
> 
> This is good and should be part of Org-mode.  Anyone knows who wrote
> this?
> 

This was writetn by Tom (I don't know his last name).

<http://thread.gmane.org/gmane.emacs.orgmode/41172/focus=41197>

> - Carsten

--

-- 
Suvayu

Open source is the future. It sets us free.

Tom | 6 Oct 09:34 2011
Picon

Re: headline navigation and refiling.

Carsten Dominik <carsten.dominik <at> gmail.com> writes:
>
> > Not a part of org, but I think this occur based library is brilliant:
> > <http://www.emacswiki.org/emacs/org-occur-goto.el>
> 
> This is good and should be part of Org-mode.  Anyone knows who wrote this?
> 

I wrote it, but this shouldn't be the part of Org, because it's a
hack and I don't want to deal with copyright papers either
for such a trivial package (I've written it in half an hour, so
it's not very hard to reimplement it).

It's a hack, because it should not use occur at all. Occur is
line oriented and the search should be able to treat an org
headline and its text as a single entity when searching.

So it should be reimplemented from the ground up properly with the
same dynamic interface, so that results are shown immediately as the
user is typing, but it should be able to support the same boolean
logic as org-search-view, so one can make intelligent searches with
it.

For example, +dog +wag should find headings like this

* the usual behavior of dogs

they wag their tails

And the search output should show the matching heading and below
(Continue reading)

Carsten Dominik | 6 Oct 09:46 2011
Picon

Re: headline navigation and refiling.


On Oct 6, 2011, at 9:34 AM, Tom wrote:

> Carsten Dominik <carsten.dominik <at> gmail.com> writes:
>> 
>>> Not a part of org, but I think this occur based library is brilliant:
>>> <http://www.emacswiki.org/emacs/org-occur-goto.el>
>> 
>> This is good and should be part of Org-mode.  Anyone knows who wrote this?
>> 
> 
> I wrote it, but this shouldn't be the part of Org, because it's a
> hack and I don't want to deal with copyright papers either
> for such a trivial package (I've written it in half an hour, so
> it's not very hard to reimplement it).
> 
> It's a hack, because it should not use occur at all. Occur is
> line oriented and the search should be able to treat an org
> headline and its text as a single entity when searching.
> 
> So it should be reimplemented from the ground up properly with the
> same dynamic interface, so that results are shown immediately as the
> user is typing, but it should be able to support the same boolean
> logic as org-search-view, so one can make intelligent searches with
> it.
> 
> 
> For example, +dog +wag should find headings like this
> 
> * the usual behavior of dogs
(Continue reading)

Dave Abrahams | 5 Oct 13:48 2011
Picon
Picon

Re: headline navigation and refiling.


on Wed Oct 05 2011, Le Wang <l26wang-AT-gmail.com> wrote:

> Hi all,
>
> I like using the org-refile interface to navigate.  

Without actually refiling?  How do you do that?

--

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

Carsten Dominik | 5 Oct 16:31 2011
Picon

Re: headline navigation and refiling.


On 5.10.2011, at 12:05, Le Wang wrote:

> Hi all,
> 
> I like using the org-refile interface to navigate.  It's very
> intuitive to me.  But I want to navigate to headlines deeper than my
> org-refile-target :max-level.  Is there anything to do other than
> rolling my own?  I can see wouldn't be hard.

You can write a little wrapper and set a special value for the refile targets:

(defun my-goto-with-refile ()
  (interactive)
  (let ((org-refile-targets '((nil . (:maxlevel . 10)))))
    (org-refile t)))

> 
> It feels headline navigation was just bolted onto org-refile.

THis is how this happened, historically.

>  Should they really be the same command?

Why not?

- Carsten

> 
> -- 
(Continue reading)

Le Wang | 5 Oct 17:00 2011
Picon

Re: headline navigation and refiling.

On Wed, Oct 5, 2011 at 10:31 PM, Carsten Dominik
<carsten.dominik <at> gmail.com> wrote:
>
> On 5.10.2011, at 12:05, Le Wang wrote:
>
>> Hi all,
>>
>> I like using the org-refile interface to navigate.  It's very
>> intuitive to me.  But I want to navigate to headlines deeper than my
>> org-refile-target :max-level.  Is there anything to do other than
>> rolling my own?  I can see wouldn't be hard.
>
> You can write a little wrapper and set a special value for the refile targets:
>
> (defun my-goto-with-refile ()
>  (interactive)
>  (let ((org-refile-targets '((nil . (:maxlevel . 10)))))
>    (org-refile t)))

Yes, this is what I had in mind.

>> It feels headline navigation was just bolted onto org-refile.
>
> THis is how this happened, historically.

Okay, that's fine.  But doesn't the fact that a user didn't know he
could navigate with org-refile speak laudly for refactoring it into
its own key-stroke?

The audience of org-mode is growing larger than just emacs hackers or
(Continue reading)

Dave Abrahams | 5 Oct 17:43 2011
Picon
Picon

Re: headline navigation and refiling.


on Wed Oct 05 2011, Le Wang <l26wang-AT-gmail.com> wrote:

> But doesn't the fact that a user didn't know he could navigate with
> org-refile speak laudly for refactoring it into its own key-stroke?

So... is anyone going to clue me in?

--

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

Le Wang | 5 Oct 17:58 2011
Picon

Re: headline navigation and refiling.

On Wed, Oct 5, 2011 at 11:43 PM, Dave Abrahams <dave <at> boostpro.com> wrote:
>
> on Wed Oct 05 2011, Le Wang <l26wang-AT-gmail.com> wrote:
>
>> But doesn't the fact that a user didn't know he could navigate with
>> org-refile speak laudly for refactoring it into its own key-stroke?
>
> So... is anyone going to clue me in?

So sorry, I thought it was answered.  Use the C-u (universal prefix)
to `org-refile', i.e. C-u C-c C-w.

--

-- 
Le

Memnon Anon | 6 Oct 04:29 2011

Re: headline navigation and refiling.

Le Wang <l26wang <at> gmail.com> writes:

>  Use the C-u (universal prefix) to `org-refile', i.e. C-u C-c C-w.

How could I miss that?!
Woohooo! 

Thanks,
Memnon

Carsten Dominik | 6 Oct 10:28 2011
Picon

Re: headline navigation and refiling.


On Oct 5, 2011, at 5:43 PM, Dave Abrahams wrote:

> 
> on Wed Oct 05 2011, Le Wang <l26wang-AT-gmail.com> wrote:
> 
>> But doesn't the fact that a user didn't know he could navigate with
>> org-refile speak laudly for refactoring it into its own key-stroke?

We already have that:

(setq org-goto-max-level 10)
(setq org-goto-interface 'outline-path-completion)

The use the key `C-c C-j'.

Right now this uses te outline-path-completion of refile,
if you want the vanilla refile interface, I would have to make a few
small changes.

- Carsten

Carsten Dominik | 6 Oct 10:31 2011
Picon

Re: headline navigation and refiling.


On Oct 6, 2011, at 10:28 AM, Carsten Dominik wrote:

> 
> On Oct 5, 2011, at 5:43 PM, Dave Abrahams wrote:
> 
>> 
>> on Wed Oct 05 2011, Le Wang <l26wang-AT-gmail.com> wrote:
>> 
>>> But doesn't the fact that a user didn't know he could navigate with
>>> org-refile speak laudly for refactoring it into its own key-stroke?
> 
> We already have that:
> 
> (setq org-goto-max-level 10)
> (setq org-goto-interface 'outline-path-completion)

Maybe you also want

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

- Carsten

> 
> The use the key `C-c C-j'.
> 
> Right now this uses te outline-path-completion of refile,
> if you want the vanilla refile interface, I would have to make a few
> small changes.
> 
(Continue reading)


Gmane