emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rick Moynihan <rick@calicojack.co.uk>
To: Eddward DeVilla <eddward@gmail.com>
Cc: org-mode <emacs-orgmode@gnu.org>
Subject: Re: Suggestion: Jump points
Date: Wed, 11 Jul 2007 16:20:32 +0100	[thread overview]
Message-ID: <4694F540.2010404@calicojack.co.uk> (raw)
In-Reply-To: <b71b18520707110751r79566d9bj9a9a54240955860@mail.gmail.com>

Eddward DeVilla wrote:
> On 7/11/07, Rick Moynihan <rick@calicojack.co.uk> wrote:
>> Is this something people might find useful?  I personally find I spend a
>> lot of time trying to re-acquire my previous context within a particular
>> task, something like this might help.
>>
>> Actually, after thinking about this; I realise that Emacs has bookmarks
>> (a feature I've not yet put to use) perhaps a better idea would be to
>> integrate these with org-mode and visiting the file via the agenda?
>>
>> What do people think?
> 
> I'm not sure I understand it.  You place a token (you were using ++)
> in the body under an outline item.  Then when you select the item from
> agenda, instead of putting the cursor on that headline, it will look
> for (the first?) line with that token in it's subtree.  If the token
> does not exist in the subtree it just places the cursor on the
> heading.  Is this what you are suggesting?  (If not then the rest of
> my comment may be off.)

Apologies for my poor explanation but yes this is precisely what I'm 
talking about.

> First, I avoid losing context in a different way.  I have one emacs
> session that is always running to take care of 'administrative matter'
> and it is were I do most of my org-mode/project planning and tracking.
>  When I'm in the middle of doing something with a project, I have it's
> tree open in an indirect buffer.  I have one frame with just agenda's
> todo list in it for reporting and another frame with three windows (or
> so) so I can look at a few things at once.  Since each project is in
> it's own buffer, I can get context just be where I left the cursor.
> For my uses, what I would love is a way to have org-mode remember how
> a subtree was folded so I could hide a subtree and then reopen it
> later with all of it children exposed or hidden as they were before.
> I like to use hiding for context in a project, but I get by without
> it.

I've never knowingly used indirect buffers, and I'll certainly take a 
look at them as I can see how I might find them useful.  I frequently 
use org-narrow-to-subtree which I find useful for hiding irrelevant 
details.  Incidentally it would be nice to be able to set follow mode to 
automatically narrow to the current agenda selection.

I've personally taken to using follow mode, and having my org-mode Emacs 
session split vertically into two panes, with the agenda on the right. 
I then navigate my org file via the open agenda buffer with follow mode. 
  I'm guessing that your method doesn't (easily) allow you to jump from 
the agenda to your projects indirect buffer, which is a feature I quite 
like using.

> Getting back to your suggestion, I have an idea.  First pick a good
> token.  I don't care for ++ because it means something in C code, but
> I think you could get a way with picking your own token here.  Next, I
> wonder if there is a search subtree?  I didn't see it in on a quick
> search of the manual, but I could have missed it if it exists.  If it
> doesn't exist, I think it might be handy here and in other places.
> With a subtree search, you could search out the token after agenda
> takes you to the project tree.  You could make a custom key binding to
> search for you token.  Also, if there is a hook that runs after agenda
> takes you to a heading, you might be able to put this search there.
> 
> That all depends on a few things.  Does subtree search exist or should
> it?  Is a key binding good enough for a find-next-jump-point function?
>  Is there (or should there be) a hook that runs after agenda takes you
> to a heading?

Good suggestions, and it did occur to me that I might be able to 
implement this as a personal extension to org-mode, and I'm sure for 
someone with good Emacs fu, this would take 5 minutes.  For me?  Well it 
might be a nice motivating exercise to learn some more elisp :)

Anyway, it's always good to have a discussion about how people are using 
and extending org-mode.

R.

  reply	other threads:[~2007-07-11 15:21 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-05 22:01 definition lists in org-mode Eddward DeVilla
2007-07-06  9:56 ` Rick Moynihan
2007-07-06 10:34   ` Carsten Dominik
2007-07-06 10:45     ` Rick Moynihan
2007-07-06 12:43       ` Carsten Dominik
2007-07-06 15:52       ` Eddward DeVilla
2007-07-06 16:28         ` Rick Moynihan
2007-07-06 17:22           ` Carsten Dominik
2007-07-11 11:52             ` Suggestion: Jump points Rick Moynihan
2007-07-11 14:51               ` Eddward DeVilla
2007-07-11 15:20                 ` Rick Moynihan [this message]
2007-07-11 15:45                   ` Eddward DeVilla
2007-07-12 12:24                 ` Carsten Dominik
2007-07-11 15:28               ` Scott Jaderholm
2007-07-11 16:29                 ` Rick Moynihan
2007-07-11 18:23                 ` Daniel J. Sinder
2007-09-03 16:21               ` Carsten Dominik
2007-07-06 15:33     ` definition lists in org-mode Eddward DeVilla
2007-07-06 15:25   ` Eddward DeVilla
2007-07-06 10:44 ` Carsten Dominik
2007-07-06 15:43   ` Eddward DeVilla
2007-07-06 17:25     ` Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4694F540.2010404@calicojack.co.uk \
    --to=rick@calicojack.co.uk \
    --cc=eddward@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).