From: Bastien <bastien.guerry@wikimedia.fr>
To: Marcelo de Moraes Serpa <celoserpa@gmail.com>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: Give focus to a item
Date: Sun, 13 Feb 2011 01:54:32 +0100 [thread overview]
Message-ID: <8739nswy7r.fsf@gnu.org> (raw)
In-Reply-To: <AANLkTimw7TC1C3=Stm9PLQbr3SgmsrO4PBx=y5Po4ovw@mail.gmail.com> (Marcelo de Moraes Serpa's message of "Sat, 12 Feb 2011 17:53:48 -0600")
Hi Marcelo,
Marcelo de Moraes Serpa <celoserpa@gmail.com> writes:
> So, I see myself too often trying going to the same toplevel item on
> my gtd.org file.
Bernt posted some useful bits in a similar discussion:
http://article.gmane.org/gmane.emacs.orgmode/37180
I would do this:
--8<---------------cut here---------------start------------->8---
(defun my-focus-on-this ()
"Focus on THIS project"
(interactive)
(org-id-goto "6e959401-f6d3-4e9e-9cd8-0f80f12fa585")
(org-show-subtree)
(org-narrow-to-subtree))
--8<---------------cut here---------------end--------------->8---
Use `org-id-get-create' to create the ID if necessary.
HTH,
--
Bastien
prev parent reply other threads:[~2011-02-13 0:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-12 23:53 Give focus to a item Marcelo de Moraes Serpa
2011-02-13 0:54 ` Bastien [this message]
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=8739nswy7r.fsf@gnu.org \
--to=bastien.guerry@wikimedia.fr \
--cc=celoserpa@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).