Commit Graph

462 Commits

Author SHA1 Message Date
407f5d70f2
Add newlines when inserting templates
I find myself inserting these newlines whenever I insert a template, so let's
let them insert them automatically.
2022-01-02 09:31:29 +01:00
5bc7c70882
Add function to copy template of Org Mode item to location at point
This is a convenience function and has been bound to a shortcut for easier
usage.  This function is supposed to be the standard way to copy templates.
2021-12-15 09:43:50 +01:00
80eeca1e44
Add simple function to find template via special property
This allows both a more fine-grained and more flexible control over where
templates can be located and which templates are suppoed to be used for the item
at point.  This function could also be bound to a custom key binding to make it
easier to invoke.
2021-12-13 21:32:05 +01:00
cedaae00e8
Make template copy function more robust
Instead of going upward from the end, we now just start from the beginning and
skip all drawers we may encounter.  This should also allow to copy subtrees in
templates, although adjustments to the headline indentations might be necessary
if the template and point are on different levels.
2021-12-13 21:17:18 +01:00
159c8c0eb6
First check for major mode when update Org item headline 2021-11-29 17:39:33 +01:00
5c36dba12c
Make function to update Org item headlines also work in agenda 2021-11-29 17:39:27 +01:00
25a7051c12
Add function to update headline of Org mode item and log note
This allows changing the headline of an item if it's scope changes and record
this change in a note.
2021-11-29 17:16:25 +01:00
0d1fe48e6f
Allow to copy template from outside of current file
My checklist template are usually located in a separate file, and sometimes even
in more than one.  Being able to copy those template to point is thus crucial.
2021-10-29 14:35:35 +02:00
747e505fda
Revert "Exclude NOTEs as refile targets"
Excluding NOTEs as refile targets also excludes them as jump targets for C-u C-c
C-w, which is bad.  Better move all NOTEs out of the main task list into a
separate notes.org or something.

This reverts commit 90b6e91051.
2021-10-24 12:56:29 +02:00
5b10f83303
Fix typo 2021-10-16 12:27:56 +02:00
c17bc4c1ab
Explicitly set frame title when current Org task changes
This should enable new frames to show the correct title, and not just the
default "emacs" string.
2021-10-16 12:21:02 +02:00
90b6e91051
Exclude NOTEs as refile targets
NOTEs are meant to hold information for the project at hand, and not to collect
tasks, because NOTEs are meant to live longer than those tasks.  Use dedicated
subprojects to group tasks.  Task may (and probably should) refer to NOTEs for
keeping long lasting information, though.
2021-10-16 10:12:51 +02:00
785db3ded8
Fix typo in linking hydra 2021-09-04 16:17:35 +02:00
158601f012
Make custom function to query for locations in Org mode files public
This function is referenced in some doc string already, and could as well be
public, so let's make it so.  This amounts to removing a dash from it's function
name.
2021-08-08 13:51:52 +02:00
ca679b2274
Refactory template copy function into function to copy item bodies
This allows the same copy behavior as before (apart from newly introduced bugs,
that is), but in addition gives the possibility to copy bodies of arbitraty
items that can be choosen interactively.  This might come in handy when copying
general checklists from anywhere in the main Org mode file to the current task.
2021-08-08 13:49:07 +02:00
76990dcdf2
Allow fast link creation to items recentely associated with clocking
This allows to insert links to items that were recently clocked into.  The
selection to those items is done via `org-clock-select-task`, which itself will
display items from `org-clock-history`.
2021-07-17 08:47:37 +02:00
0899a9079e
Clean up all links in headline when linking to it
So far, we only considered one link in a headline and replaced it with its
description when linking to it.  When there are multiple links, this will fail.
This commit changes this by iterating over all links in the headline, not only
the first one.
2021-05-12 18:29:34 +02:00
7960f763f4
Keep headline around links when linking to them
So far, when a link is discovered in a headline, we only keep the description of
that link.  This will throw away the context of that link, which is
undesirable.  So let's keep it.
2021-05-12 18:20:18 +02:00
268ddeb1aa
Avoid complete links in descriptions when adding links to Org items
When inserting links to other Org items or to the currently clocked-in item, the
complete target headline is used as a description in the newly inserted link.
When that target headline is itself a link, the newly inserted link will contain
the complete link as a description, rendering it unreadable and also
malformed (it's not allowed to have two consequtive brackets in the description
of a link).  To remedy this, we now explicitly check the target headline for
being a link, and if so, only use the description of it as the description in
the newly inserted link.
2021-05-12 17:47:45 +02:00
a0b1f4df0d
Do not use org-store-link when inserting links to other items
When the link to another item is already present in the history of
`org-store-link`, nothing is updated.  Inserting the topmost link then results
in a wrong link being inserted.

Not using `org-store-link` at all fixes this problem and also leaves the history
of `org-store-link` untouched.  It also simplifies the implementation by not
relying on the complexity of `org-store-link`, but instead just only using
`org-entry-get` and `org-id-get-create`.
2021-04-29 19:52:54 +02:00
56b1de2844
Remove duplication of refile target specification for current buffer 2021-04-16 17:34:40 +02:00
77f2dfc0eb
Fix missing specification of default buffer when inserting links
The `default-buffer` is apparently not optional when the current buffer is not
associated with a file.  If `default-buffer` is missing and the current buffer
is not a file-buffer, e.g., a note buffer, then `org-refile-get-targets` fails.
2021-04-16 17:31:55 +02:00
318f7c8f44
Fix reference to wrong buffer when creating links to other items
When finding the location of an Org mode item to link to,
`org-refile-get-location` may return a point even if the target buffer is not
the default buffer.  Resolving point in the default buffer thus yields a false
marker and the inserted link is wrong.  To remedy this, also consider the file
name returned by `org-refile-get-location` to resolve point in the file buffer
for that file.
2021-04-01 17:02:01 +02:00
8f4fa01304
Remove redundant save of point and mark
`org-with-point-at` will do this already (at least for point).
2021-04-01 16:51:46 +02:00
1916eb6736
Move point when inserting link to other Org mode item
This is the natural flow, as usually one continues writing after the link, not
before it.
2021-04-01 16:51:03 +02:00
96638b09e4
Allow to show backlinks directly from Org agenda buffers
This is more convenient than to first switch to the item in the corrsponding Org
mode buffer and then querying for its backlinks.
2021-03-27 10:39:53 +01:00
732323edfc
Ensure to always return a marker when inserting links to other items
`org-refile-get-location` sometimes only returns a point and not a marker.  In
that case, manually convert the point to a marker to ensure that calling
functions now where to go to.  Additionally, ensure that
`db/org-default-org-file` is opened if not already done so, and error out if the
current buffer is not associated with a file and no default Org file exists.
2021-03-27 10:22:21 +01:00
00ca4c0276
Minorly simplify definition of Org linking hydra
This way, the help buffer of the hydra provides a link to the underlying
function.
2021-03-27 09:48:55 +01:00
22058b1568
Allow adding links to other items without refile verification
We are only using the refile mechanism for convenience here, and not for actual
refiling.  The refile verification function is thus not relevant here.  To take
effect, we also have to ignore the cache, as it may hold precomputed targets
that have used the refile verification function in a previous run.
2021-03-26 16:47:22 +01:00
d6584ef521
Fix signature of frame hook function
This got removed in the last refactoring attempt.
2021-03-26 16:38:17 +01:00
d7b2ad0b71
Extend docstring for hydra-org-linking 2021-03-20 20:50:27 +01:00
fd14313b9b
Only warn about RESET_CHECK_BOXES if it's really there 2021-03-20 16:33:00 +01:00
7833e28185
Make checkdoc happy about db-org 2021-03-20 16:03:12 +01:00
6e8b878b4d
Warn when using the deprecated RESET_CHECK_BOXES property
I want to use periodic tasks for repeated tasks with check boxes.
2021-03-20 15:57:45 +01:00
78b202aed7
Introduce hydra for managing links between Org mode items
It's easier to use and easier to keep track of what is available.  It also saves
key precious bindings!
2021-03-20 15:45:49 +01:00
77920dd9a2
Move cursor forward when inserting link to current clock 2021-03-20 15:45:15 +01:00
eae1590e68
Add function to add link to currently clocked-in task
This might be handy while working on a task and realizing that it's related to
another one.
2021-03-20 12:34:39 +01:00
fde876a972
Restrict listing of link targets to current buffer by default
This is much faster, and usually what we want.  If references outside the
current buffer are necessary, just prefix the call with a universal argument.
2021-03-20 11:50:56 +01:00
7bfd185514
Add missing require statement for cl-lib 2021-01-29 17:51:26 +01:00
9efb765b5a
Extend documentation for agenda effort summation functions 2021-01-29 17:38:24 +01:00
6ba5fdad61
Fix bug in agenda effort summation if nothing there to display 2021-01-29 17:36:21 +01:00
7582c2065e
Include timestamps in org agenda effort summation
Those correspond to fix appointments.
2021-01-29 17:21:04 +01:00
9cf17c973f
Show sum of daily efforts directly in the agenda
Now that column view does not show effort sums any longer, we need another means
to show daily efforts.  It turns out that this can be accomplished easily using
two simple functions and `org-agenda-finalize-hook`.

This is taken from
https://emacs.stackexchange.com/questions/21380/show-sum-of-efforts-for-a-day-in-org-agenda-day-title#21902.
2021-01-29 17:11:55 +01:00
4ecafaa411
Allow to refile under periodic tasks
Sometimes an instance of a periodic tasks requires individual subtasks.  In this
case, refiling there is very helpful.  In other cases, the extra entries should
not be disturbing too much, I think … I hope.
2020-10-12 16:28:43 +02:00
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
669ecb6e4f
Trying to make backling searching work for custom-id links 2020-09-26 18:16:43 +02:00
4efb8cfe18
Use org-store-link for adding links to other items 2020-09-26 18:10:34 +02:00
68c6423cae
Fix docstring 2020-09-26 18:07:57 +02:00
ff184ec47a
Check whether we are in Org Mode before inserting remote link 2020-09-26 16:48:02 +02:00
1c065bb46b
Add simple function to insert links to other items at point 2020-09-26 16:44:40 +02:00
f7ddab7696
Fix error message 2020-09-26 16:29:50 +02:00
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
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
c219d77ab9
Query for headline in link finder function when outside of Org Mode 2020-09-26 15:12:49 +02:00
994be97397
Fix consistency check for link finder function 2020-09-26 15:12:28 +02:00
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
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
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
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
03f23b11fb
Copy complete template for periodic tasks
Previously, we only copied the last element in the subtree, assuming that this
encompasses all of the content of the subtree.  However, this is not true, and
thus we have to do something more elaborate.  Now, starting from the end of the
subtree, we go up all elements in the subtree until we reach either the headline
or a drawer.  Everything in between is copied as template to the current
location.
2020-09-01 16:23:28 +02:00
1ba91b3271
Introduce dedicated variable for main Org Mode file
The shortcut in the frequently-used menu now points there, and not anymore to
the dedicated home and work files.  If only a single main Org Mode file is used,
this variable should be sufficient.
2020-08-27 12:16:54 +02:00
b49018129b
Remove trailing whitespace when copying templates for periodic tasks 2020-07-18 19:13:04 +02:00
4084e0ccae
Do not refile to elements of periodic tasks
If separate things should be done, generate a separate item for it, or leave
some note at the corresponding series element.  Periodic tasks are quite rigid
and should not be used for collecting individual subtasks.
2020-07-04 11:43:19 +02:00
d1c4ad5b5d
Remove unused `db/org-clock-current-task' 2020-07-01 17:16:39 +02:00
4f063c5e6b
Fix misinterpretation of percent sign in org-clock hydra 2020-07-01 17:15:13 +02:00
fa1344bf4e
Silence another byte-compiler warning 2020-06-27 10:12:46 +02:00
b5d7b57b27
Use autoload instead' of declare-function' 2020-06-27 10:11:13 +02:00
c96083c871
Declare `w32-shell-execute' to silence byte-compiler 2020-06-27 09:42:16 +02:00
46d9973146
Move last Org Mode utility function from db-utils' to db-org' 2020-06-27 08:56:53 +02:00
0583c08cda
Move Org Mode utilities to `db-org'
`db-utils', the original place, is used for general purpose utility functions.
2020-06-26 23:21:37 +02:00
755fb23e2b
Replace `org-get-tags-at' by 'org-get-tags' 2020-06-26 22:17:25 +02:00
b2709c0187
Add missing require for `db-org' 2020-06-26 22:07:14 +02:00
1cad9cc186
Remove obsolete `db/cmp-date-property' function 2020-06-26 22:00:18 +02:00
336ee9d7c4
Incorporate some suggestions from the byte compiler 2020-06-26 21:59:25 +02:00
bec4bc13a2
Add new PERIODIC tag for recurring tasks
As described in [1], we are sometimes representing recurring tasks as lists of
single tasks plus a recurring task to create new instances once in a while.  All
of this is grouped under a common headline, and those headlines should be marked
with PERIODIC to inhibit automatic clock-in.

[1]: https://karl-voit.at/2017/01/15/org-clone-subtree-with-time-shift/
2020-01-31 10:41:08 +01:00
38f7fd7c88
Move some more custom org mode link handlers to `db-org'
This is where they belong, nowhere else.
2020-01-19 17:21:14 +01:00
c566908deb
Let the org mode RFC link handler cache its documents
RFC documents do not change over time.  The custom org mode link handler
`db/org-rfc-open' now makes use of this by downloading RFC documents to
`db/rfc-cache-path' (if defined) and opening the files locally.  If
`db/rfc-cache-path' is not defined, the RFC is opened in an external browser as
before.

This allows to keep a selection of used RFC documents locally on the filesystem
for future reference, without the need to retrieve them again from the IETF.

Since this is all org mode related, the handler now also resides in `db-org'
instead of `db-utils'.
2020-01-19 17:17:47 +01:00
6f856c61b6
Properly declare ignored variable 2020-01-05 14:42:13 +01:00
243e579973
Check whether special org-mode files are included in agenda when displaying it 2020-01-05 13:36:37 +01:00
ec83430a70
Remove `db-update-org-agenda-files'
It's not used anymore and won't ever work as intended.
2020-01-05 13:06:50 +01:00
5627da7b42
Simplify output 2020-01-05 12:18:33 +01:00
541940d7dc
Fix glitch in custom setter for `org-agenda-file' 2020-01-05 12:17:37 +01:00
e234912180
Inline `org-agenda-file-to-front'
This allows to use the value for the new file directly, instead of opening a
buffer for it.
2020-01-05 12:10:31 +01:00
cf14629099
Remove obsolete debugging output 2020-01-05 11:57:43 +01:00
bd65533b97
Update custom setter for special org agenda files
The setter will now complain if the file to be added to `org-agenda-files' does
not exist and is not readable.  It also now uses the proper functions from `org'
to update `org-agenda-files'.
2020-01-05 11:56:05 +01:00
e63356ad06
Add descriptions to clocking hydra 2019-12-20 15:17:05 +01:00
2bc02703eb
[Org] Change title of all active frames when entering new task 2019-12-05 17:09:49 +01:00
44e6818abb
[Org] Provide function to set frame title from current clock 2019-08-31 11:26:04 +02:00
ff06cddaba
[Music] Move shortcut to play automatic playlists to EMMS hydra
This is the right place.
2019-06-10 09:39:52 +02:00
016fbf3c10
[Org] Extend functionality to insert past interruptions
For this a new function ‘timeline-tools-clockline-no-org-agenda-conflicts’ as
been added that reads in a clock line (start and end times), updates all org
agenda files to fix conflicting clock lines, and returns the string of the new
clock line.  This works for all complete clock lines (i.e., those with end
times), but not for open clock lines (i.e., those missing an end timestamp).
2019-02-16 14:06:25 +01:00
ff276c1316
[Org] Remove duplicates when updating ‘org-agenda-files’ 2019-02-10 20:13:49 +01:00
25ec604019
[Org] Change the way ‘org-agenda-files’ is set
Up to now, ‘org-agenda-files’ only consisted of the four variables customizable
in init.el, namly ‘db/org-default-work-file’, ‘db/org-default-home-file’,
‘db/org-default-notes-file’, and ‘db/org-default-refile-file’.  However, this
meant that no *additional* agenda files were possible, like including multiple
files for notes.  This should not be the case any longer.
2019-02-09 17:39:12 +01:00
83c1dfbed1
[Org] Simplify ‘db/make-org-capture-frame’ 2018-11-18 16:57:16 +01:00
5b64a89943
[Org] Code to make frame for spontaneous capturing 2018-11-18 16:39:43 +01:00
3459213765
[Org] Add simple check for ‘db/clock-in-by-task-id’ 2018-11-18 16:00:13 +01:00
b11c63c49e
[Org] Clean up code for main hydra 2018-11-18 16:00:04 +01:00
f6c7a408db
[Misc] Remove db-emacsclient.el and distribute functions to other files 2018-11-18 15:37:58 +01:00
fe6cd4677b
[Org] Update brief documentation of db-org 2018-11-03 11:38:42 +01:00
f8c2d0b441
[Org] Move org-capture configuration to init.el 2018-11-03 11:37:31 +01:00
ec35b0edae
[Org] Make sure org-clock is loaded when using the org-clock hydra 2018-11-03 11:31:36 +01:00
bfe12ddc24
[Org] Move require for org-download to init.el 2018-11-03 11:19:16 +01:00
bef85cbdc5
[Org] Move hook for resetting checkboxes to init.el 2018-11-03 11:19:02 +01:00
f510d73ae7
[Org] Move (small) Babel config to init.el 2018-11-03 11:18:40 +01:00
d82d1550c6
[Org] Move hack for tag search to init.el 2018-11-03 11:18:22 +01:00
37273353c7
[Org] Move main variable definitions to init.el 2018-11-03 11:15:37 +01:00
b8b6842e56
[Org] Move Agenda customization to init.el
some minor other configurations moved to init.el, too.
2018-11-03 10:59:41 +01:00
782dd9b8c1
[Org] Rename function to save current org task to file
That.
2018-11-03 10:30:47 +01:00
00934a6bec
[Org] Move helper functions back to db-org
New approach: all custom helper functions go to db-org, and all actual
configuration will move to init.el (someday).
2018-11-03 10:28:49 +01:00
a8d79c52f5
[Org] Beautifications 2018-11-03 09:45:09 +01:00
8d07f1c197
[Org] Move some keybinding to init.el 2018-11-03 09:45:00 +01:00
f0a2383b7a
[Org] Restructure configuration for org mode clocking
Moved most of the code to init.el, and some helper functions to the
corresponding hydra in db-org.el (this is the only place where they are used).
2018-11-03 09:44:52 +01:00
f96329c4b6
[Org] Readd accidentally remove hyrda for org mode clocking 2018-11-03 09:05:01 +01:00
f10ea83cef
[Org] Remove some obsolete or duplicate configuration 2018-11-02 20:28:39 +01:00
54f8492a33
[Org] Restructuring configuration
- Moving some package declarations to init.el
- Moving calendar export function to ‘db-utils’
2018-11-02 20:24:16 +01:00
06c427aba3
[Misc] Make most variable settings in init.el customizable
This is achieved by moving the variable definitions to use-packages’ :init
blocks, and allowing ‘db/run-init’ to override these definitions by calling
‘load-file’ on custom.el afterwards.

Also inlined some definitions from my custom.el file back into init.el
2018-11-02 18:17:51 +01:00
e73c4d0596
[Org] Include diary in agenda view 2018-10-31 13:51:39 +01:00
73c2162b22
[Org] Fix bug in fix for ‘org-cached-entry-get’
and I thought it worked backed then, don’t know what I had tested …
2018-10-21 09:44:58 +02:00
93fc26e426
[Org] Remove old diary file before exporting new one 2018-10-07 19:19:33 +02:00
f1a5c46f55
[Org] Explicitly specify cursor position in capture pattern 2018-09-12 17:08:51 +02:00
c48bb8d3da
[Org] Hack: don’t read all properties of an entry when asking only for one 2018-09-12 17:08:28 +02:00
7b611873a1
[Org] Some minor modifications in babel configuration 2018-09-09 11:43:24 +02:00
de1b42a34d
[Org] Settings for listings package also for beamer 2018-09-09 10:59:46 +02:00
479a797a88
[Org] Trying some color in LaTeX export
Not there yet, but close
2018-09-08 21:44:04 +02:00
7dbf97b54a
[Org] Further improving LaTeX export settings 2018-09-08 21:36:15 +02:00
acd3962f4c
[Org] Some default settings for the listings package 2018-09-08 13:16:20 +02:00
473ac32147
[Org] Use ‘lualatex’ as default 2018-09-08 13:16:17 +02:00
bebcee23fa
[Org] No postamble in HTML export 2018-09-08 10:30:39 +02:00
ecab60562e
[Org] Restructuring export settings 2018-09-08 10:27:02 +02:00
67b1290088
[Org] Update docstring for function capturing code snippets 2018-08-18 16:34:00 +02:00
b6bb05eb3f
[Org] Neat capture template for code snippets
from http://ul.io/nb/2018/04/30/better-code-snippets-with-org-capture/, inspired
by http://irreal.org/blog/?p=7207.
2018-08-18 16:18:14 +02:00
6ab52f11ed
[Misc] Almost exclusively use ‘with-eval-after-load’
instead of ‘eval-after-load’.
2018-08-15 21:12:42 +02:00
e8a8781a78
[Org] Update file-apps for default M$ programs 2018-08-15 17:54:50 +02:00
4a2acf28fc
[Org] Fix error in file-app default for Cygwin 2018-08-15 17:51:59 +02:00
9b45215f7a
[Org] Don’t make NOP inherited when looking for stuck projects
This is a major change in the semantics of this tag: NOP now does not designated
whole projects anymore, but only headlines that should not considered by
themselves as projects.  Consequently, sub-headlines of NOP-tagged headlines can
by projects on their own, and also show up as stuck projects if they are so.
2018-08-15 17:49:27 +02:00
4975dab897
[Org] Don’t give up on broken links when exporting 2018-08-14 19:50:36 +02:00
68c235b3d0
[Org] Allow current buffer as additional refile target 2018-08-14 19:50:25 +02:00
78fb2e2860
[Org] Update ‘org-file-apps‘ for Cygwin 2018-08-14 19:50:10 +02:00
d5215d60be
[Org] Enable more LaTeX classes 2018-08-09 21:34:28 +02:00
d0a98c9c6a
[Org] Move Hy Babel code to ‘db-org’ 2018-08-04 12:32:54 +02:00
d8bf5b3e9e
[Org] Add export by pandoc 2018-08-01 16:28:37 +02:00
09c1d2c37c
[Org] Moving loading of hydra to more sensible place 2018-07-31 21:01:18 +02:00
ca7f632e4b
[Org] Remove iCal support 2018-07-31 20:57:04 +02:00
3419d456dc
[Org] Moving some code around 2018-07-31 20:55:59 +02:00
c6d05cea7b
[Org] Capture template for plain bookmarks 2018-07-08 13:13:28 +02:00
000397e932
[Org] Don’t treat _ and ^ special without braces 2018-07-08 13:13:13 +02:00
4c1afc9baf
[Org] New defaults for opening Microsoft documents 2018-07-06 19:37:15 +02:00
12136f699a
[Org] Minor rework of ox integration 2018-05-05 20:41:49 +02:00
3189a3a0b1
[Org] Don’t delete diary before export
The original use case, namely an underlying git-annex repository in indirect
mode, has now been changed into an (experimental) v6 git-annex repository.
Let’s see how this works out.
2018-03-25 20:59:58 +02:00
e235e9993c
[Org] Show deadlines even if scheduled
To not lose track of them
2018-03-25 20:59:27 +02:00
805c94a1b6
[Org] Don’t be too strict on exporting diary 2018-03-17 11:39:46 +01:00
b517c17535
[Org] Additional checking when exporting diary 2018-03-17 11:11:37 +01:00
df1fdd16cc
[Org] Delete ‘org-icalendar-combined-agenda-file’ before exporting diary 2018-03-04 14:52:32 +01:00
4c7102eb2d
[Org] Capture notes into default refile file 2018-03-03 10:56:55 +01:00
1aacffa2e8
[Org] Try out ‘org-download’ 2018-02-22 16:43:54 +01:00
c77155dd63
[Org] Fix implementation for OneNote-Links 2018-02-14 22:26:29 +01:00
c14f45d186
[Org] Exclude refiling targets with DONE states
Copied from http://doc.norang.ca/org-mode.html#Refiling
2018-02-14 22:06:42 +01:00
2943a7a4b9
[Org] Fix spec for stuck projects 2018-02-04 18:14:30 +01:00
7a9961a253
[Org] Don’t ask so much for meetings 2018-01-23 17:51:00 +01:00
31e1c64037
[Org] Use ‘cl-equalp’ instead of ‘equalp’ 2018-01-23 17:50:23 +01:00
8fd665b954
[Org] Comments and TODOs 2018-01-21 18:12:48 +01:00
caa13eb1d3
[Timeline] Moving timeline code into separate package 2018-01-21 18:07:04 +01:00
3787cef333
Merge branch 'db/org-merger'
Conflicts:
	site-lisp/db-org.el
	site-lisp/db-utils.el
2018-01-21 16:19:04 +01:00
2d9b54104c
[Org] Highlight some latex syntax 2018-01-21 16:12:55 +01:00
b790d98977
[Org] Functions to copy clock lines from one task to another 2018-01-21 16:10:21 +01:00
74a26b4d5a
[Org] Change API of function to add clock lines to task
Instead of resolving an ID, this function now gets a marker designating the task
where the provided clock line should go to.
2018-01-21 16:09:27 +01:00
08927fd0ee
[Org] Fix reformatting function for bank csv files 2018-01-21 14:55:58 +01:00
9e32733014
[Misc] Even more silencing 2018-01-16 18:30:59 +01:00
55e3c0ab8f
[Org] Avoid some byte compiler warnings 2018-01-16 17:55:15 +01:00
925bb90dee
[Org] Don’t set symbol for ellipsis explicitly
Let’s use customize for this.
2018-01-16 17:40:56 +01:00
0bbaf4b62b
[Org] Change time representation for ‘db/org-add-clock-line-to-file’ 2018-01-13 18:29:37 +01:00
766b12e4e3
[Org] Updating documentation for clock line mapping function 2018-01-13 18:29:13 +01:00
f1ae359a35
[Utils] Move org-mode utils to ‘db-org.el’
and do some minor beautifications.
2018-01-13 14:25:05 +01:00
375e39dd35
[Org] Simplification 2018-01-13 14:07:20 +01:00
2a6c40d446
[Org] Minor formatting 2018-01-13 14:07:13 +01:00
2c8d8ddaf1
[Org] Save point and mark when inserting new clock lines 2018-01-13 14:07:09 +01:00
2fcc4c4685
[Org] Cleaing up code on manipulating clock lines 2018-01-13 13:06:31 +01:00
0fa88c141f
[Org] First working version of clock line inserter 2018-01-13 12:51:08 +01:00
fab318d5dc
[Org] Rearrange code for manually inserting new clock lines 2018-01-13 12:50:50 +01:00
b81a152d42
[Org] Keep point and mark when iterating over clock lines and headlines 2018-01-13 12:49:43 +01:00
64c4f231bd
[Org] Update docstring for timeline formatter 2018-01-07 17:28:42 +01:00
3d283d600f
[Org] Add customization for timeline reporting 2018-01-07 17:28:20 +01:00
e4893fe52e
[Org] Minor changes for main timeline formatting function 2018-01-07 17:17:54 +01:00
c8d5bb24e1
[Org] Skip short slots in timeline formatting 2018-01-07 17:17:09 +01:00
463d7c1532
[Org] Cluster entries of timeline by category 2018-01-07 16:34:49 +01:00
0d2e773d9d
[Org] Function stub for merging clock lines into existing file
unfinished.
2018-01-01 15:35:34 +01:00
0d982d66d5
[Org] Ignore scheduled items in SOMEWHEN list 2018-01-01 15:34:51 +01:00
8cf1afc64c
[Org] Add timestamps for notes 2018-01-01 15:34:40 +01:00
34e639ac98
[Org] Refactor ‘db/org-clocking-time-in-range’
This function now uses the more general ‘db/org-map-clock-lines-and-entries’,
which is also going to be used by the future ‘db/org-add-clock-line-to-file’ (or
similar).
2017-12-16 10:42:23 +01:00
1f00baadde
[Org] Remove obsolete comment 2017-12-16 10:41:46 +01:00
adc1cac590
[Org] Remove unused ‘db/org-agenda-add-clocking-time’ 2017-12-15 21:46:14 +01:00
28c6ae47a1
[Org] make ‘db/org-add-clocking-time’ take two arguments 2017-12-15 21:45:50 +01:00
942c4a99dd
[Org] Don’t use UTC when converting time for reporting 2017-12-04 19:05:41 +01:00
54e6e242e3
[Org] Update type parameters for OneNote links
Untested.
2017-12-03 10:21:45 +01:00
58c786c251
[Org] Update and fix docstrings for reporting 2017-12-03 10:17:47 +01:00
5d347b1112
[Org] Use ‘sort’ instead of ‘cl-sort’
Should be equally fast, and is simpler.
2017-12-03 10:17:19 +01:00
62a2154d28
[Org] Fix typo in variable names 2017-12-03 10:16:13 +01:00
4273dfeb41
[Org] Revert ‘db/org-timeline-in-range’ to mostly imperative style
This mostly reverts 1192dc21, as it’s much clearer now what is going on, imho.

(btw: the commit message of 1192dc21 should have started with "More"
instead of "Move", duh!)
2017-12-03 10:07:58 +01:00
096989ee33
[Org] Use ‘org-read-date’ to query dates for reporting 2017-12-03 09:59:23 +01:00
53e81f252e
[Org] Another attempt to fix condition on current clock 2017-12-03 09:47:36 +01:00
41a57ecd96
[Org] Fix condition on when to include the current clock during reporting 2017-12-03 09:27:36 +01:00
17b5d9fecb
[Misc] Add lexical binding to all files 2017-12-03 09:19:05 +01:00
979f7af136
[Org] Clarify docstring for reporting function 2017-12-02 22:06:16 +01:00
1715a0412a
[Org] Remove redundant comma 2017-12-02 22:01:53 +01:00
5a68daa8e3
[Org] Adapt report formatting 2017-12-02 21:57:45 +01:00
1b6018dd84
[Org] Report for today ends 23:61 2017-12-02 21:57:28 +01:00
c76c7e3fd7
[Org] Some meta-comment on reporting 2017-12-02 21:57:12 +01:00
984777fdc2
[Org] When no date is given, default to today 2017-12-02 21:49:50 +01:00
bc08f185fd
[Org] Fix some bugs in the reporting functions 2017-12-02 21:48:57 +01:00
afb474d44c
[Org] Add convenience function to format report for a particular day 2017-12-02 21:27:34 +01:00
bdf7209032
[Org] Fix formatting of ‘db/org-format-timeline’ 2017-12-02 21:21:05 +01:00
24da327c2e
[Org] Show category instead of duration when reporting 2017-12-02 21:17:07 +01:00
1192dc2cb8
[Org] Move functional style for reporting function
Doesn’t mean it’s more comprehensible now, though …
2017-12-02 21:11:41 +01:00
e95ca2da9a
[Org] Add markers to reporting function
In this way, more information can be extracted from the actual formatting
functions.
2017-12-02 20:55:14 +01:00
599e6d41b8
[Org] Add reporting function for timelines 2017-12-02 20:00:58 +01:00
6fea7a228d
[Org] Add auxiliary functions for reporting 2017-12-02 18:49:21 +01:00
850880ce5d
[Org] Don’t eval source blocks on export 2017-11-14 14:59:31 +01:00
eb01e9f154
[Org] Don’t split lines on M-RET 2017-11-13 20:45:36 +01:00
9501f6b4ac
[Org] Reformatting some comments 2017-11-11 09:36:38 +01:00
5cdc0068c8
[Org] Remove empty strings from ‘org-agenda-files’ before exporting diary
Empty strings in the variable ‘org-agenda-files’ cause exporting of the current
buffer, because "" is treated by ‘org-agenda-files’ (the function).  This
results in ID properties generated in the current buffer, if this happens to be
an org-mode buffer currently selected at the time of export.
2017-11-11 09:36:00 +01:00
6d4d519aab
[Org] Clock time again for taking notes 2017-11-06 21:30:57 +01:00
9db7801fe6
[Org] Move ‘org-agenda-prefix-format’ to custom.el 2017-11-06 21:28:06 +01:00
11a467de51
[Org] Shortcut for noting down abbreviations 2017-11-04 11:32:15 +01:00
edcce1d692
[Org] Add custom link for OneNote files 2017-11-04 11:17:45 +01:00
bcac4afc03
[Org] Don’t use too large numbers in clock consistency checks
They could get too large and could be automatically converted to floats then,
resulting in strange errors.
2017-10-30 20:04:45 +01:00
c67bfe2e17
[Org] File handlers for usual Windows file extensions 2017-10-30 20:04:04 +01:00
305c358ca9
[Org] Fix misplaced require when exporting calendar 2017-10-29 22:27:38 +01:00
5747361df6
[Org] Remove obsolete code from agenda custom command 2017-10-28 14:31:17 +02:00
8ce78e4c47
[Org] Use different face for broken links 2017-10-28 14:29:07 +02:00
fdcbeebcb8
[Org] Fix bug when initializing custom agenda files 2017-10-28 09:43:28 +02:00
ad27f96943
[Org] Update agenda files when changing customizations 2017-10-27 21:14:26 +02:00
d515b9480d
[Org] Generalize export of org-mode calendar to ics
The location to which the calendar will be exported is not taken from the
customized value of ‘org-icalendar-combined-agenda-file’, which is not fixed
anymore in the configuration.  If this variable is not set (i.e. nil), the no
exporting is done.
2017-10-21 09:02:46 +02:00
b5397920eb
[Org] Open directories in emacs itself
Finally!
2017-10-20 17:59:16 +02:00
e49a3e3236
[Misc] Moving path specifications to custom.el 2017-10-17 22:09:53 +02:00
9768bc4580
[Org] Replace obsolete variable ‘org-time-clocksum-format’ with ‘org-duration-format’ 2017-10-17 18:30:42 +02:00
b3151704de
[Org] Fix issue of ‘nil’ file names when exporting diary 2017-10-08 16:33:43 +02:00
eccf84d6b0
[Org] Don’t show file name of currently running clock 2017-10-01 16:02:20 +02:00
5a06066324
[Org] Don’t clock in for notes anymore 2017-09-30 21:55:19 +02:00
2bfc90a9b7
Revert "[Org] No shortcut for break task needed anymore"
This reverts commit 9bc0cdffec.
2017-09-15 17:47:37 +02:00
af8eb47675
[Org] Don’t set default values for main org-mode files 2017-09-15 17:47:30 +02:00
2712e8747b
[Org] Improve setting of `org-agenda-files' 2017-09-15 17:45:19 +02:00
9bc0cdffec
[Org] No shortcut for break task needed anymore 2017-09-08 17:45:09 +02:00
f72acff3b1
[Org] Setting task ids in main init file now 2017-09-02 13:34:22 +02:00
7ce608cffe
[Org] Fix keybinding 2017-09-02 13:34:09 +02:00
f27c078041
[Org] Include time of current task in clock-report again 2017-09-02 13:33:57 +02:00
ffb1ae14d5
[Org] Don’t show sublevels in SOMEHOW list 2017-08-26 11:39:00 +02:00
20b9df0ff0
[Org] Extend functionality to manually add clock line 2017-08-26 11:38:44 +02:00
fce3b088a8
[Org] Update capture templates 2017-08-14 20:36:18 +02:00
5b3a895cab
[Org] Restructure configuration
In particular, put clock persistence variables in correct order, and do not
include currently running clock task in clock report table anymore.
2017-08-14 08:18:55 +02:00
0ec7e34399
[Org] Don’t transfer org agenda appointments to appt 2017-08-12 11:33:14 +02:00
f3c05d630d
[Org] Simplify resetting of checkboxes
Now there is no need to depend on ‘org-plus-contrib’ anymore :D
2017-08-12 11:25:04 +02:00