Commit Graph

464 Commits

Author SHA1 Message Date
a53a8ccbd2
Use default Org function to remove identation
Should be more robust?
2025-11-16 17:57:13 +01:00
b798b13a94
Add capture template for quick notes
Am adding lots of quick notes, a capture template should be helpful here.
2025-11-16 17:53:07 +01:00
52b2c29644
Remove some obsolete function 2025-11-16 17:24:31 +01:00
2de58df052
(Try to) fix indentation of Org headings converted from list items
Not quite sure whether this is it, but looks better than before.
2025-10-03 10:37:48 +02:00
df0dd214b8
Remember where my custom deadline agenda view comes from
Would be best to get rid of it, but I don't want the additional date display …
2025-08-30 19:43:28 +02:00
7994a01618
Align tags after editing Org headlines 2025-08-24 14:15:52 +02:00
1f30ab8590
Make sure there are no duplicates in location candidates 2025-08-19 19:38:11 +02:00
4e59c1467d
Remember to incorporate org-refile-target-verify-function 2025-08-17 19:53:05 +02:00
d6ea954434
Remove obsolete docstring parts 2025-08-17 19:53:04 +02:00
8c5cdd00bd
Provide regular expression in custom Org refile location function
Not sure what this is good for, but it might be necessary somewhen?
2025-08-17 19:53:03 +02:00
b10c97e06d
Fix type signature for org-refile-get-location substitute function 2025-08-17 19:53:03 +02:00
1ccc8d927d
Use consult for querying Org refile locations 2025-08-17 19:53:02 +02:00
44fb922b66
Allow custom prompt in own Org location query function 2025-08-17 19:53:02 +02:00
7f512bed15
Avoid duplicate entries in Org location queries
This happens when the current buffer is already part of the Org agenda files.  In this case, we do
not add the default buffer to the list of search files.
2025-08-17 19:53:01 +02:00
e60dee0a13
Fix prompt when choosing Org headings 2025-08-17 19:53:01 +02:00
5d7776a6dd
Include prefix when choosing Org heading
Otherwise, the candidates seem to be truncated at the front?
2025-08-17 19:53:00 +02:00
9780f1fe7f
Use default buffer for Org location queries 2025-08-17 19:53:00 +02:00
27582a4195
Replace custom usage of `org-refile-targets' with consult functions
This is experimental and needs some further testing.
2025-08-17 19:53:00 +02:00
a0bcceaf8c
Prevent unintented expansion of % in conversion from item to heading 2025-08-17 19:52:04 +02:00
99f89be39c
Resolve Org bookmark links on export
Replace bookmark links on export with their actual targets, as the bookmarks itself are of little
use in the final document.
2025-07-24 11:45:44 +02:00
cd90381ad0
Fix capitalization in docstring 2025-07-23 21:07:00 +02:00
64198261f7
Fix equality check for default task when continuing the clock
The markers involved in this check might point to the same heading, but on different positions.  Try
to mitigate this by checking for equality of the ID property.
2025-07-19 15:20:45 +02:00
1ec3748fc4
Prevent accidental refiling to HOLD headings
Headings with inherited tag HOLD are not shown on any agenda and thus risk being overlooked.  Try to
prevent this by disallowing any heading tagged with HOLD (local or inherited) as refile target.
2025-06-27 16:50:57 +02:00
1832e9615c
Ensure headlines converted from items end in correct number of blank lines 2025-06-17 08:52:18 +02:00
3526563ce1
Let Org set Emacs' frame title
Why replicate functionality that is already there? :)
2025-06-07 18:50:03 +02:00
adb22bbc1c
Search for template also in superordinate headings
This allows to jump to templates also in the case that the template contains subtree itself.
2025-05-29 11:06:50 +02:00
d80b71fb72
Revert usage of consult-org-agenda
This reverts commit 96ac10216e.

Not yet it, but close.
2025-05-22 20:39:46 +02:00
96ac10216e
Try out consult-org-agenda for jumping directly to Org headings
Looks good and includes tags!
2025-05-15 18:16:11 +02:00
53313ab3dc
Guard direct headline editing also at beginning of line
Had missed that case up to now.
2025-05-08 20:04:00 +02:00
b4b0bab9c2
Fix quantifier in Org headline insert inhibitor hook
Make sure at least one asteriks is present to not accidentally prevent input on other lines.
2025-04-23 20:42:17 +02:00
837b7fc106
Ignore direct input when at the start of an Org headline
This is to guard headlines to become invalid due to my erratic (mis)typing behavior.
2025-04-19 17:05:26 +02:00
a522f48dc5
Add some Org lint checkers for bookmark links
Code taken from `org-lint-invalid-id-link` and suitably modified.
2025-02-25 18:26:08 +01:00
fc58eb56f4
Resolve link generation conflict in bookmarked files
When a file has a bookmark, generating a link in that file (e.g. to the
line at point) results in a query from Org which link generating
function to use.  This is annoying and interferes with the usual flow.
To remedy this, we simply try not to be too smart and just generate
links to bookmarks when in the bookmark menu.
2025-02-25 17:24:19 +01:00
be280ba373
Ensure bookmarks are loaded when opening via Org link 2025-02-23 09:38:48 +01:00
73a8e3be4b
Do not depend on autoloading db-org.el for bookmark links
Let's keep db-org a collection of autoloadable functions and move the
actual configuration of Org bookmark links to init.el.
2025-02-22 20:54:31 +01:00
e32a67d666
Fix performance issue with file comparison on Windows
`file-equal-p` makes creating links too slow with bookmark links
enabled (which is the case by default).
2025-02-22 20:54:26 +01:00
31e448d838
Add Org links to bookmarks
This is to remove redundant references in both bookmarks and links in
Org files.

The code is based on the original implementation of `ol-bookmark.el` by
Tokuya Kameshima, as found in [org-contrib][1].

[1]: bd39cca48b/lisp/ol-bookmark.el
2025-02-21 17:39:14 +01:00
3a6d2005cb
Fix some flycheck warnings 2025-01-17 19:37:27 +01:00
6e31e4a707
Clean up draft of Org list item conversion function
The template is still fixed, should it be customizable?
2025-01-17 18:10:20 +01:00
2960652d66
Draft function to convert Org items to headlines
This usually happens when I try to convert loose entrie in my refile
file into proper headlines.

Usage of Org capture functionality is inspired by Sacha Chua [1].

[1]: https://sachachua.com/blog/2020/12/org-mode-create-a-quick-timestamped-note-and-capture-a-screenshot-by-prefilling-a-capture-template-via-emacs-lisp/
2025-01-17 17:54:06 +01:00
60463a01e3
Do not print “Template” in checklist when no other items exist
I tend to remove “Template” anyway when it's the only block inserted as
checklist, so let's do this automatically.

This commit also includes a minor refactoring of moving around variable
declarations to be closer to the code that actually uses them.
2024-12-20 10:54:20 +01:00
3a397139f2
Do not clock into interrupted task when it's the default task
Clocking into the default task should only happend as last resort.
2024-12-14 10:32:02 +01:00
661c5f9b22
Add small utility to quickly update complex Org reports 2024-12-14 09:39:22 +01:00
bac4fb389a
Fix handling of last day in workload overview report
Previously, the last day added had been removed on the assumption that
it was the frist day after `end-date` (after which the while loop
aborts).  However, when this last day is filtered because of
`:skip-matches`, this would result in accidentally removing a valid day
from the overview time period.  This has been fixed by checking for this
very case, and keeping the last day added in case it is still within the
requested time period.
2024-12-04 16:23:05 +01:00
311d6e81b6
Explicitly set visibility when jumping to current clock in Org mode
This is another try to reduce the number of Org items that are unfolded
when jumping to the current clock.  This is particularly important with
periodic items with many subtasks, because unfolding all siblings might
be irritating (at least to me).
2024-11-30 15:26:07 +01:00
5a25d5d069
Revoke special password implementation for SQL Org source blocks
Turns out this can be done by a simple function call, as demonstrated by
https://magnus.therning.org/2024-09-01-improving-how-i-handle-secrets-in-my-work-notes.html.
So we just extend `org-password-manager-get-password-by-id` accordingly
and use that instead.  No need to patch the default implementation of
Org!
2024-11-16 12:30:20 +01:00
3d38510284
Readd duplicate call to org-fold-reveal
This reverts 05bb198.

Turns out this call is not that redundant after all.  Revealing should
be done after jumping to the next checkbox of the current item.
However, revealing the item at point only then leads to funny
flickering, so let's keep the old implementation for now and reveal
stuff twice.
2024-11-16 09:33:42 +01:00
05bb198e08
Remove duplicate call to org-reveal 2024-11-12 16:31:45 +01:00
c6e359546d
Do not show complete item when jumping to it
This should avoid “visibility jumps” when jumping to a currently clocked
in item that is already revealed.
2024-11-01 18:13:03 +01:00
78924c841e
Add first draft function to compute time at home for given date
This is supposed to be used with `db/org-workload-overview-report`.
2024-10-12 17:08:23 +02:00