.emacs.d/site-lisp
Daniel - a54ade74a4
Push links to Org items always to top of currently known links
When adding a link to an item via `org-store-link`, and the link is not known
yet, the links is always put at the beginning of the list of currently known
links, as stored in `org-stored-links`.  This allows to conveniently insert this
link via `org-insert-link` by just choosing the first element of the list, which
is selected by default.

However, when the link to the requested item is already present in
`org-stored-links`, the link is not pushed to the beginning of
`org-stored-links` by `org-store-link`, but kept where it is.  When calling
`org-insert-link` to insert a link to the item, manual selection of the correct
link is required, which is annoying and unnecessarily interrupting the current
workflow.  Even worse, when overlooking the notification that the link is
already stored, one will assume that the link to the requested item is at the
top of `org-stored-links` (which is isn't), subsequently inserting false links
when blindly calling `org-insert-link`.  (Yes, this has happend to me …)

This patch fixes this issue by ensuring that links to items (regardless whether
they have already been known or not) are always put at the front of the
`org-stored-links`.  This patch also removes the rarely used
`db/org-clear-stored-links` function, whose purpose was to provide some kind of
workaround, but turned out not to be convenient enough to actually be
used (because it also removed potentially useful links when clearing the cache).
2022-12-20 08:46:47 +01:00
..
term Initial commit 2017-07-16 18:07:00 +02:00
db-customize.el Jump to first open checkbox in currently clocked-in item by default 2022-11-19 16:09:38 +01:00
db-emms.el Rename main music hydra and move it to `db-music' 2020-06-27 10:16:53 +02:00
db-eshell.el Remove obsolete eshell magit command 2022-10-13 17:22:31 +02:00
db-hydras.el Make checkdoc happy about db-hydras package 2021-03-20 15:48:00 +01:00
db-mail.el Remove calls to some obsolete CL functions 2021-01-16 14:34:48 +01:00
db-music.el Remove custom function to play radio stations 2022-04-29 09:39:57 +02:00
db-org.el Push links to Org items always to top of currently known links 2022-12-20 08:46:47 +01:00
db-projects.el Match namespace prefix for project utilities with package name 2022-10-16 21:10:45 +02:00
db-utils-test.el Fix precision error in `db/ntp-to-time' 2020-06-27 09:35:31 +02:00
db-utils.el Simplify file pattern query for grep 2022-12-15 16:29:36 +01:00
org-password-manager.el Add local copy of org-password-manager.el 2022-07-22 18:30:41 +02:00
plantuml-mode.el Update local copy of plantuml-mode 2021-10-16 18:45:41 +02:00
timeline-tools-test.el Trying to make test for `timeline-tools' independent of locale 2020-01-05 14:32:35 +01:00
timeline-tools.el Make going back and forth in timeline buffers more robust 2022-03-31 14:22:52 +02:00