From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rick Moynihan Subject: Re: Suggestion: Jump points Date: Wed, 11 Jul 2007 16:20:32 +0100 Message-ID: <4694F540.2010404@calicojack.co.uk> References: <468E11C4.50604@calicojack.co.uk> <6da9122d5b79844f2856186565289598@science.uva.nl> <468E1D59.6030006@calicojack.co.uk> <468E6DAF.1040100@calicojack.co.uk> <4694C483.2060708@calicojack.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I8e0T-0006t4-KV for emacs-orgmode@gnu.org; Wed, 11 Jul 2007 11:21:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I8e0T-0006sa-0V for emacs-orgmode@gnu.org; Wed, 11 Jul 2007 11:21:33 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I8e0S-0006sV-SB for emacs-orgmode@gnu.org; Wed, 11 Jul 2007 11:21:32 -0400 Received: from storm.bpweb.net ([83.223.106.8]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I8e0S-0005Yf-Bm for emacs-orgmode@gnu.org; Wed, 11 Jul 2007 11:21:32 -0400 In-Reply-To: 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: Eddward DeVilla Cc: org-mode Eddward DeVilla wrote: > On 7/11/07, Rick Moynihan 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.