[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] remember handling.

From: Carsten Dominik
Subject: Re: [Orgmode] remember handling.
Date: Mon, 23 Apr 2007 21:14:45 +0200

I guess an `org-occur' sparse tree searching for the file name
in a link might do the trick, like the following command

(defun my-links-to-this-file ()
  "Find links to the current file in ~/org/notes.org."
  (let ((file (file-name-nondirectory (buffer-file-name))))
    (find-file-other-window "~/org/notes.org")
    (org-occur (concat "\\[\\[file:.*?"
                       (regexp-quote file)

(define-key global-map [(f11)] 'my-links-to-this-file)

This only looks for the file name and does not pay attention to the
directory, so if you have several files with the same name, this
will have to become more complicated.  Also, I am using explicitly
the file ~/org/notes.org as the place to look for links, this
you have to modify as well.  Really just a proof of concept,
But maybe something to start from?

- Carsten

On Apr 2, 2007, at 9:27, François Lagarde wrote:

I really enjoy using org for a lot of things.

I also use remember, which provides me an easy way to create quick notes,
especially when i am working on a file.

My question is, if (and how) would be possible to find quickly (I mean
with a keyboard shortcut) all the notes belonging to the current buffer.


François Lagarde

Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477

reply via email to

[Prev in Thread] Current Thread [Next in Thread]