Commit Graph

1274 Commits

Author SHA1 Message Date
Daniel - 9907b1b2ae
Allow remote links and backling search for more headlines
Include all headlines in Org agenda files and as well as all extra text search
files in interactive selections.  To make this more managable, introduce a
dedicated function to query the user for a target item.
2020-09-28 19:37:58 +02:00
Daniel - 669ecb6e4f
Trying to make backling searching work for custom-id links 2020-09-26 18:16:43 +02:00
Daniel - 4efb8cfe18
Use org-store-link for adding links to other items 2020-09-26 18:10:34 +02:00
Daniel - 68c6423cae
Fix docstring 2020-09-26 18:07:57 +02:00
Daniel - e45d23ce8e
Merge branch 'db/org-backlink-searcher' into master 2020-09-26 16:50:29 +02:00
Daniel - ff184ec47a
Check whether we are in Org Mode before inserting remote link 2020-09-26 16:48:02 +02:00
Daniel - 9994a3ac82
Update key bindings for handling Org Mode links
F9 is a comparably prominent key binding, and we now bind it to the more
important `db/org-add-link-to-other-item'.  The formar binding to
`db/org-find-links-to-current-item' is bound to F11 now, since it will still be
used often, but not more often then inserting links (I think).  The old binding
for F11 to `org-capture' has not been used much, and so we can dispense of it.
2020-09-26 16:46:34 +02:00
Daniel - 1c065bb46b
Add simple function to insert links to other items at point 2020-09-26 16:44:40 +02:00
Daniel - f7ddab7696
Fix error message 2020-09-26 16:29:50 +02:00
Daniel - d8aa748c1c
Merge branch 'db/org-backlink-searcher' into master 2020-09-26 15:31:27 +02:00
Daniel - 48d9979fbd
Add default key binding for backlink searching in Org Mode buffers 2020-09-26 15:24:29 +02:00
Daniel - dd30d5d7be
Set default buffer when querying for Org Mode headlines
Apparently, if the current buffer is not associated with a file, things break.
2020-09-26 15:24:07 +02:00
Daniel - b0a36749e6
Refactor Org Mode link finder function
The main entry point is now `db/org-find-links-to-current-item', which decides
how to obtain the ID and CUSTOM_ID of the item to look for.  The main work is
done by `db/org-find-items-linking-to-id', which does some checks, build the
query, and then calls `org-search-view' (which, indeed, does the actual work).
Users should call `db/org-find-links-to-current-item' only.
2020-09-26 15:20:11 +02:00
Daniel - c219d77ab9
Query for headline in link finder function when outside of Org Mode 2020-09-26 15:12:49 +02:00
Daniel - 994be97397
Fix consistency check for link finder function 2020-09-26 15:12:28 +02:00
Daniel - cde56c819e
Extend backward link searching function
Now support CUSTOM_ID as well, and check arguments for plausibility.
2020-09-26 15:00:34 +02:00
Daniel - a6f77f8d71
Add simple helper function to find items linking to the current one
Only ID links are supported by now.
2020-09-26 14:14:45 +02:00
Daniel - b1d82f875f
Do not let org-roam change matching data when determining the face
It is not clear what function really changes the matching data, but it's called
by `org-roam--id-link-face', and this is where we save the matching data now.

TODO: check whether this has been reported or even fixed upstream.
2020-09-26 14:12:21 +02:00
Daniel - a2ce6ebc59
Show current zoom level in corresponding hydra 2020-09-26 11:22:59 +02:00
Daniel - c11aeb6666
Experimentally enable company completion in Org Mode buffers 2020-09-26 11:12:11 +02:00
Daniel - f3df40bf40
Add missing autoload for project linting function 2020-09-21 10:39:36 +02:00
Daniel - b95c401e66
Merge branch 'db/projects-cleanup' into master 2020-09-20 17:08:15 +02:00
Daniel - 57044376be
Do not treat dotfiles as projects 2020-09-20 16:40:48 +02:00
Daniel - 2c4cada1da
Also look into org-agenda-files when checking for missing bookmarks 2020-09-20 16:35:33 +02:00
Daniel - ce9a2f51eb
Add linting function for project management 2020-09-20 16:33:24 +02:00
Daniel - 66da74d63e
Fix typo 2020-09-20 16:22:29 +02:00
Daniel - 7a0fbff4c5
Do some cleanup in db-projects 2020-09-20 16:20:23 +02:00
Daniel - 9822736d8e
Move comment to right position 2020-09-20 16:09:40 +02:00
Daniel - 69c6a372eb
Add function to check for missing project bookmarks 2020-09-20 15:30:10 +02:00
Daniel - 9c0d630703
Remove all bookmarks when archiving a project
Not only the one to the project diary.
2020-09-20 15:13:26 +02:00
Daniel - 297bb6ac6e
Add short description of what db-projects is all about 2020-09-20 14:48:59 +02:00
Daniel - d9e74f6e54
Allow to list Org Mode files in projects not being searched by default 2020-09-20 14:48:18 +02:00
Daniel - bdc8a53fe3
Minor reformatting in package signature for db-projects 2020-09-20 14:24:43 +02:00
Daniel - 96d4f000ca
Add some autoload statements 2020-09-20 14:24:38 +02:00
Daniel - 4dead43c36
Check that newly created projects have not been archived before 2020-09-20 14:23:52 +02:00
Daniel - 644d463260
Update some docstrings in db-projects
As suggested by flycheck.
2020-09-20 14:12:50 +02:00
Daniel - 2a046610e9
Clean up projectile's cache explicitly when removing a project 2020-09-20 14:12:43 +02:00
Daniel - f662e5b990
Make projectile a hard dependency for personal project management 2020-09-20 14:10:46 +02:00
Daniel - 685d55cf93
Do not require main notes file to be part of org-agenda-files
Neither logging information not tasks should be part of that file, so keeping it
in `org-agenda-files' is not really necessary.  Indeed, it has only been
included in there to allow `org-search-view' to search that file.  However, with
using `org-agenda-text-search-extra-files' makes this approach obsolete.
2020-09-20 10:39:58 +02:00
Daniel - a511e9e73a
Allow nil as shortcut character in frequently used features
This results in no entry being defined in the corresponding hydra.
2020-09-19 15:21:04 +02:00
Daniel - 0aa8140e22
Do not function-quote in db/frequently-used-features
Apparently, this does not match with the `function' requirement of the
customization type definition.
2020-09-19 14:05:31 +02:00
Daniel - a576ef123d
Automatically update hydra for shortcuts after customization 2020-09-19 14:02:50 +02:00
Daniel - 14cfae155a
Add some documentation for custom agenda deadline listing
It should be clear why we are using this, and not the standard agenda list.
2020-09-17 16:05:20 +02:00
Daniel - 4e7245f858
Experimental: do not show deadlines in top agenda view
We have a separate view for deadlines, that should actually be sufficient.
2020-09-17 15:53:04 +02:00
Daniel - 6ee9e84bb1
Reduce number of ls switches when on windows
They do not seem to be supported by mingw's ls?
2020-09-17 15:52:56 +02:00
Daniel - 01be58c2e1
Prevent the default font from being changed by gconf
Thanks, stackexchange!
2020-09-12 14:42:35 +02:00
Daniel - 39c06d670b
Move tramp and calc configuration into use-package statements 2020-09-12 14:20:30 +02:00
Daniel - d10e85e208
Fix typo in regular expression 2020-09-12 13:30:53 +02:00
Daniel - cb9ef5a8d4
Merge configuration sections on constants and path settings 2020-09-12 13:15:27 +02:00
Daniel - 3fb7c80312
Demand basic configuration packages
Since package loading is defered by default, explicit demanding is required
2020-09-12 12:54:01 +02:00