[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] Frequently used files/headings
From: |
Nathan Neff |
Subject: |
[Orgmode] Frequently used files/headings |
Date: |
Thu, 29 Apr 2010 10:47:40 -0500 |
Currently, I'm using org-id-get-create to generate a unique ID
for headings that I frequently go to in org-mode.
* Foo
:PROPERTIES:
:ID: F3B14102-A66D-408C-8833-1F9CF7E5047C
:END:
Then, I copy the newly created ID to the kill-ring,
and paste it into a block like this:
(global-set-key (kbd "<f6> f") (lambda () "Goto Foo Org File"
(interactive)
(org-id-goto "F3B14102-A66D-408C-8833-1F9CF7E5047C")))
This will map F6-f to jump to Foo.
I know that there are many ways to navigate org-files, but using the
ID is great because it requires only two keystrokes.
This works pretty good, except I'd like to improve three things:
1) I'd like to be able to see a menu of where I've mapped my shortcuts
2) I'd like to simplify the creation of these IDs and shortcut keys.
3) I have about 10 quick-keys now, so I have 30 lines of very similar code
I'm sensing an org-babel type approach where I could define an org-mode
table like this:
| Name | Key | ID |
| Foo | "<f6> f" | 123456779 |
Then, I could loop through the table, and for each row, I could
run this code:
(global-set-key (kbd <COLUMN 2>) (lambda () <COLUMN 1>
(interactive)
(org-id-goto <COLUMN 3>)))
Before I do something like this, I'd like to know if anyone's done something
similar or if anyone wants to chime in.
Thanks!
--Nate
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Orgmode] Frequently used files/headings,
Nathan Neff <=