From: Marc-Oliver Ihm <marc@ihm.name>
To: emacs-orgmode@gnu.org
Subject: [DEV] New version of org-reftable.el
Date: Sun, 09 Dec 2012 00:19:18 +0100 [thread overview]
Message-ID: <ka0htl$m6n$2@ger.gmane.org> (raw)
Hello all !
Version 2.0 of org-reftable.el has arrived at worg.
Please find it as:
http://orgmode.org/worg/code/elisp/org-reftable.el
Citing from its documentation:
;;; org-reftable.el --- Ordered lookup table for reference numbers
;;
;; Purpose:
;;
;; Create, search and look up numbers from a dedicated reference table.
;; These numbers (e.g. "R237" or "-455-") may be used to refer to:
;;
;; - Nodes in Org-mode (insert them into the heading)
;;
;; - Things outside of org (e.g. mailfolders, directories, reports or
;; pieces of paper)
;;
;; The table is kept sorted for most frequently or most recently used
;; reference numbers. Additionally, lines can be selected by keywords, so
;; that specific references can be found very easily. Earlier versions of
;; this extension had been named org-refer-by-number.el.
;;
For a very simple example, please see three lines to add to your .emacs
and five org-mode nodes. All appended at the bottom of this message.
Now, for this example, say, that you want to visit the node for project "bar"
but do not remember its name. However, you recall that its related with "support".
So you type "C-+" to invoke org-reftable and then type "support" and RET.
This will show you the two lines (R2 and R1) from your table,
which contain the keyword "support".
| R2 | project | bar | 8 | [2012-12-07 Fr] | [2012-12-08 Sa 23:37] | support, legal |
| R1 | project | foo | 1 | [2012-12-03 Mo] | | support |
The first line "R2" ist the one with the highest access count (8), because
the table is kept sorted for this count. And indeed, this is your project "bar".
Now just need to hit RET, to visit this node !
org-reftable.el has a lot more bells and whistles, e.g. commands to
create new references or search for existing ones in all your org-files.
All this, including the proper setup, is explained in its documentation.
Any comments or suggestions are highly welcome !
regards, Marc-Oliver Ihm
------------ lines to add to your .emacs ------------
(require 'org-reftable)
(setq org-reftable-id "f3da98e2-e265-4d4e-9c3a-d22c4b7bba23")
(global-set-key (kbd "C-+") 'org-reftable)
------------ example org-mode nodes ------------
* TODO R1 Project foo
- [ ] Read paper R3
* TODO R2 Project bar
- [ ] Talk to Jim
* DONE R5 Project baz
CLOSED: [2012-12-08 Sa 23:01]
- [X] Clean up directory R4
* TODO R6 Project qux
- [ ] Clean shoes
* Reference numbers
:PROPERTIES:
:ID: f3da98e2-e265-4d4e-9c3a-d22c4b7bba23
:END:
| Ref | Type | description;c | count;s | created | last-accessed | Keywords |
|-----+---------+----------------+---------+-----------------+-----------------------+----------------|
| R2 | project | bar | 8 | [2012-12-07 Fr] | [2012-12-08 Sa 23:37] | support, legal |
| R5 | project | baz | 5 | [2012-12-05 Mi] | [2012-12-08 Sa 23:03] | financial |
| R6 | project | qux | 3 | [2012-12-08 Sa] | [2012-12-08 Sa 23:01] | sport |
| R4 | folder | directory | 2 | [2012-12-08 Sa] | [2012-12-08 Sa 23:04] | |
| R1 | project | foo | 1 | [2012-12-03 Mo] | | support |
| R3 | paper | printed report | | [2012-12-04 Di] | | |
next reply other threads:[~2012-12-08 23:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-08 23:19 Marc-Oliver Ihm [this message]
2012-12-24 8:47 ` [DEV] New version of org-reftable.el Bastien
2012-12-24 22:41 ` Marc-Oliver Ihm
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='ka0htl$m6n$2@ger.gmane.org' \
--to=marc@ihm.name \
--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).