From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Alan E. Davis" Subject: Re: Easily go to some frequently accessed heading (narrowed to region) Date: Thu, 3 Feb 2011 06:35:12 +1000 Message-ID: References: <4d487c86.5043ec0a.55ad.ffffaf99@mx.google.com> <87y65y99m6.fsf@ucl.ac.uk> <4d4965fa.0431640a.66d2.664c@mx.google.com> <87k4hifn6w.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0963043954==" Return-path: Received: from [140.186.70.92] (port=39709 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PkjQP-00034n-Mw for emacs-orgmode@gnu.org; Wed, 02 Feb 2011 15:35:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PkjQM-0001Wl-LZ for emacs-orgmode@gnu.org; Wed, 02 Feb 2011 15:35:37 -0500 Received: from mail-wy0-f169.google.com ([74.125.82.169]:44056) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PkjQM-0001Ve-8I for emacs-orgmode@gnu.org; Wed, 02 Feb 2011 15:35:34 -0500 Received: by wyj26 with SMTP id 26so388444wyj.0 for ; Wed, 02 Feb 2011 12:35:32 -0800 (PST) In-Reply-To: <87k4hifn6w.fsf@ucl.ac.uk> 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: Eric S Fraga Cc: Orgmode Mailing List --===============0963043954== Content-Type: multipart/alternative; boundary=0016367b6452260aec049b529753 --0016367b6452260aec049b529753 Content-Type: text/plain; charset=ISO-8859-1 I adapted something from Sacha Chua: a file with links to my most frequently accessed links. I too have been seeking some way to make this automatic, but even as it is, it works great. I call the file "Pointers.org". It is just an org-mode file, each headline is a link. Then, in my init file (.emacs) is the following: ,---- | (defun pointers () | (interactive) | (find-file "~/org/Pointers.org")) | (define-key global-map "\C-c0" 'pointers) `---- It's not too hard to install a new link at the top of the file. I guess it would also be easy to write a function or use a capture template to do this. Alan "Pollution is nothing but the resources we are not harvesting. We allow them to disperse because we've been ignorant of their value." --- R. Buckminster Fuller On Thu, Feb 3, 2011 at 1:52 AM, Eric S Fraga wrote: > Darlan Cavalcante Moreira writes: > > > Thanks Eric > > > > I tried org-goto before, but I needed something that I could bind to a > > [...] > > > A custom agenda view is is good to see the tasks associated with a > project > > and I already tag each project as you suggested, but besides the tasks > > there are some subheadings in each project that have only information > > without tasks or schedule/deadline dates. That is what motivated me to > > search for a way to quickly access the project contents and not only its > > tasks. > > Okay, let's try a third suggestion (in case it's 3rd time lucky ;-): > > 3. what about a sparse tree view (org-sparse-tree, C-c /, followed by > 'm' for match on a tag of choice) of your projects file? > > But again, this isn't necessarily something you can program, although > maybe you can as org-sparse-tree invokes org-match-sparse-tree which > looks definitely viable as a candidate for programmatic use: > > ,---- > | org-match-sparse-tree is an interactive compiled Lisp function in > | `org.el'. > | > | (org-match-sparse-tree &optional TODO-ONLY MATCH) > | > | Create a sparse tree according to tags string MATCH. > | MATCH can contain positive and negative selection of tags, like > | "+WORK+URGENT-WITHBOSS". > | If optional argument TODO-ONLY is non-nil, only select lines that are > | also TODO lines. > `---- > > so you could definitely write specific a function to use this, with a > specific match string, followed by a narrow to subtree? > > -- > : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 > : using Org-mode version 7.4 (release_7.4.298.g16b40) > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > --0016367b6452260aec049b529753 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I adapted something from Sacha Chua: a file with links to my most
fr= equently accessed links.=A0 I too have been seeking some way to make
thi= s automatic, but even as it is, it works great.

I call the file &qu= ot;Pointers.org".

It is just an org-mode file, each headline is a=A0 link.

Then, i= n my init file (.emacs) is the following:

,----
| (defun pointers= ()
|=A0=A0 (interactive)
|=A0=A0 (find-file "~/org/Pointers.org= "))
| (define-key global-map "\C-c0" 'pointers)
`----

I= t's not too hard to install a new link at the top of the file.=A0 I gue= ss
it would also be easy to write a function or use a capture template t= o
do this.

Alan


=09
"Pollution is nothing but the resources we=20 are not harvesting. We allow them to disperse because we've been=20 ignorant of their value."
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0=A0=A0=A0 --- R. Buckminster Fuller



On Thu, Feb 3, 2011 at 1:52 AM, Eric S F= raga <e.fraga@ucl= .ac.uk> wrote:
Darlan Cavalcante Moreira <darcamo@gmail.com> writes:

> Thanks Eric
>
> I tried org-goto before, but I needed something that I could bind to a=

[...]

> A custom agenda view is is good to see the tasks associated with a pro= ject
> and I already tag each project as you suggested, but besides the tasks=
> there are some subheadings in each project that have only information<= br> > without tasks or schedule/deadline dates. That is what motivated me to=
> search for a way to quickly access the project contents and not only i= ts
> tasks.

Okay, let's try a third suggestion (in case it's 3rd time luc= ky ;-):

3. what about a sparse tree view (org-sparse-tree, C-c /, followed by
=A0 'm' for match on a tag of choice) of your projects file?

But again, this isn't necessarily something you can program, although maybe you can as org-sparse-tree invokes org-match-sparse-tree which
looks definitely viable as a candidate for programmatic use:

,----
| org-match-sparse-tree is an interactive compiled Lisp function in
| `org.el'.
|
| (org-match-sparse-tree &optional TODO-ONLY MATCH)
|
| Create a sparse tree according to tags string MATCH.
| MATCH can contain positive and negative selection of tags, like
| "+WORK+URGENT-WITHBOSS".
| If optional argument TODO-ONLY is non-nil, only select lines that are
| also TODO lines.
`----

so you could definitely write specific a function to use this, with a
specific match string, followed by a narrow to subtree?

--
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.4 (release_7.4.298.g16b40)

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

--0016367b6452260aec049b529753-- --===============0963043954== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0963043954==--