From: Carsten Dominik <dominik@science.uva.nl>
To: Rick Moynihan <rick@calicojack.co.uk>
Cc: org-mode <emacs-orgmode@gnu.org>
Subject: Re: Suggestion: Jump points
Date: Mon, 3 Sep 2007 18:21:38 +0200 [thread overview]
Message-ID: <d07f6548efab7ccf77709a21480071e6@science.uva.nl> (raw)
In-Reply-To: <4694C483.2060708@calicojack.co.uk>
Hi Rick,
I have not found a good and general way to introduce the feature
you are asking for. In 5.08 there will be a new hook
`org-agenda-after-show-hook'. This hook will be run after
the agenda has exposed an entry, either by an interactive
command like TAB or RET, or by follow mode. I guess you
could try to get a function in there that will search for
your marker, something like (untested)
(defun find-ricks-marker ()
"FIXME"
(let ((pos (point)) beg end)
(org-back-to-heading t)
(setq beg (point))
(org-end-of-subtree t)
(setq end (point))
(goto-char beg)
(if (re-search-forward "\\+\\+" end t)
(goto-char (match-beginning 0))
(goto-char pos))))
Hope this helps.
- Carsten
On Jul 11, 2007, at 13:52, Rick Moynihan wrote:
> Carsten Dominik wrote:
>> On Jul 6, 2007, at 18:28, Rick Moynihan wrote:
>>> Agreed. My gut feeling is that they fulfill largely different
>>> purposes. The problem is that I tend to make a decision to
>>> structure something with lists & checkboxes, and later on discover I
>>> want an item in the list to appear inside the agenda.
>> In such a case I usually make the headline above the checkbox
>> list a TODO and have that show up in the agenda. From there
>> it is only one or two TAB presses to the checkboxes.
>> - Carsten
>
> I too have tried this, but it means if you start editing your lists
> (and if they're numbered) the list numbers get reset which can be
> annoying.
>
> I sometimes have quite long lists within outlines, and I guess the
> problem is that I know what project I want to work on yet I want to
> quickly find the item within it which I'd previously identified as
> tackling next. Sometimes when returning to such a list it takes me a
> while to figure out which task I was supposed to tackling next.
>
> So here's a suggestion. Why not support jump points (or jump lines),
> which would be essentially be a syntactic marker that would tell
> org-mode to jump to a specific line within an outline when visiting
> from the agenda e.g. via follow mode.
>
> * My main project outline.
> blah blah blah...
> ...
>
> - [ ] do something
> - [ ] do this ++
> - [ ] do something else
> ...
>
> I'm not too bothered about the syntax, but here the ++ indicates the
> line which the point should be placed on within that outline.
>
> Some simple interactive commands could be written to reset the jump
> point to a new line within that outline. This would simply remove any
> existing jump-point and insert a new one at the point. Naturally this
> command might want to alert you about jump-point removal, and if there
> were multiple points (accidentally) defined within a single outline it
> might warn you of this, perhaps moving you into an interactive mode to
> clean them up and set the point to where you wanted.
>
> 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?
>
> R.
>
>
--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477
next prev parent reply other threads:[~2007-09-03 16:55 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
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 [this message]
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=d07f6548efab7ccf77709a21480071e6@science.uva.nl \
--to=dominik@science.uva.nl \
--cc=emacs-orgmode@gnu.org \
--cc=rick@calicojack.co.uk \
/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).