emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Alan E. Davis" <lngndvs@gmail.com>
To: Eric S Fraga <e.fraga@ucl.ac.uk>
Cc: Orgmode Mailing List <emacs-orgmode@gnu.org>
Subject: Re: Easily go to some frequently accessed heading (narrowed to region)
Date: Thu, 3 Feb 2011 06:35:12 +1000	[thread overview]
Message-ID: <AANLkTinVdsE3u=c68vYfc=zU5CrT5i29HVYY-eXGdhuO@mail.gmail.com> (raw)
In-Reply-To: <87k4hifn6w.fsf@ucl.ac.uk>


[-- Attachment #1.1: Type: text/plain, Size: 2731 bytes --]

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 <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
> 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
>

[-- Attachment #1.2: Type: text/html, Size: 3808 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

  reply	other threads:[~2011-02-02 20:35 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-01 21:34 Easily go to some frequently accessed heading (narrowed to region) Darlan Cavalcante Moreira
2011-02-02  7:30 ` Eric S Fraga
2011-02-02 14:11   ` Darlan Cavalcante Moreira
2011-02-02 15:52     ` Eric S Fraga
2011-02-02 20:35       ` Alan E. Davis [this message]
2011-02-03  2:14         ` Darlan Cavalcante Moreira
2011-02-03  9:27         ` Sébastien Vauban
2011-02-03  2:10       ` Darlan Cavalcante Moreira
2011-02-03 12:37         ` Eric S Fraga
2011-02-02 10:28 ` Bastien
2011-02-02 14:14   ` Darlan Cavalcante Moreira
2011-02-05 17:57 ` Bernt Hansen

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='AANLkTinVdsE3u=c68vYfc=zU5CrT5i29HVYY-eXGdhuO@mail.gmail.com' \
    --to=lngndvs@gmail.com \
    --cc=e.fraga@ucl.ac.uk \
    --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).