1
0
Fork 0
Commit graph

215 commits

Author SHA1 Message Date
37fe64b4d8 [oni-org] Add some Pomodoro[1] helper functions
- ‘oni-org-increment-property’: A generic command that increments a numeric org
  property

- ‘oni-org-pomodoro-add-note’: A command that adds a note to the org item
  logbook that states a pomodoro was completed.

- ‘oni-org-pomodoro-times’: A function that parses an org item logbook to figure
  out at what times a pomodoro had been completed for that particular task.

- ‘oni-org-pomodoro-times-for-date’: A function that finds the times a pomodoro
  has been marked as completed for a specified date.

- ‘oni-org-archive-old-tasks’: Unrelated to the other functions, just a command
  that archives all of the tasks that have been closed in the previous month.

[1]: https://francescocirillo.com/products/book-the-pomodoro-technique
2022-12-13 07:29:08 -08:00
5f7a6b8ddd Give some keybindings (hopefully) more descriptive names
This style of keybinding helps ‘which-key’[1] to display a better name for the
command.

[1]: https://github.com/justbur/emacs-which-key
2022-12-13 07:11:36 -08:00
0401e08e65 [oni-org] Don't display blocked tasks in the agenda at all
I'm trying as much as I can to just only display what I can actually work on,
and by definition anything that is blocked I cannot.
2022-11-13 17:00:43 -08:00
aac81cc7a8 [oni-org] Enable Special C-k
See the documentation of ‘org-special-ctrl-k’ for what it does
2022-11-13 17:00:05 -08:00
601935c856 [oni-org] Fix exclusion of ‘journal.org’ 2022-10-26 23:35:48 -07:00
7342368178 [oni-org] Add functions to create and update a Pomodoro overview
This is meant to be used as a daily overview of the Pomodoro's that I've gone
through during the day. Should be put in my journal. For that reason, and
because I haven't figured out how to make it idempotent on days that aren't
today, I've added an exclusion of ‘journal.org’ to the
‘oni-org-update-all-dblocks-live’ function.
2022-10-25 23:18:55 -07:00
875e63d62a [oni-org] Allow project references to work with archived tasks
This commit fixes the issue that project tasks found in the archive of the org
file can't be accessed through the link that's been generated. This fixes that.
2022-10-19 22:52:45 -07:00
1c9b256f78 [oni-org] Add icon for “config” tasks 2022-09-28 00:49:13 -07:00
073f83e8f9 [oni-org] Reduce the distance of the tags column
This will make top-level headlines still place their tags before the line ends.
2022-09-27 23:46:04 -07:00
3c22cbb1e0 [oni-org] Update available agenda commands 2022-09-21 23:44:27 -07:00
c7e5178a36 [oni-org] Add ‘form-feed’ package to dependencies
This way I can use pretty looking horizontal rulers in my org files.
2022-08-24 20:41:36 -07:00
2fc7107969 [oni-org] Update default todo agenda command
I've removed the hierarchy from my tags, so now I need to see any for the tag of
the current host name, any computer, and any emacs tasks that have a state of
TODO.
2022-06-21 22:45:57 -07:00
cc3aa6f532 [oni-org] Use IDs for org-mode links if a heading has one
I don't want to set it up to always use an ID just yet because I'm not sure how
well that will work with programs like Orgzly and Orgro which don't support
using ID.
2022-06-20 09:16:34 -07:00
f0bf02d9ec [oni-org] Remove ‘mixed-pitch’
I tried it, and I just didn't like it. It looks alright, but alignment is
difficult, and even though faces are set up to be fixed-pitch they still end up
rendering as variable-pitch. During startup my org file also loads too early and
doesn't get the right font set. It just doesn't really add enough.
2022-06-20 09:11:58 -07:00
1c3b3abb39 [oni-org] Add “Waiting for” to my overview and add “Review” agenda 2022-06-13 16:16:47 -07:00
3a5ea16176 [oni-org] Update all dynamic blocks on save
Skip any that are in archived files.
2022-06-13 16:16:11 -07:00
df3396bd8f [oni-org] Search through the archive for project tasks
When I archive tasks I still want them to show up in the projects.
2022-06-05 14:14:56 -07:00
c63f5f0fec [oni-org] Add function to write oni-project-steps dblock
This allows me to run ‘org-dynamic-block-insert-dblock’ instead of having to
write it manually each time.
2022-05-26 23:13:28 -07:00
efb74f9440 [oni-org] Switch to the marker's buffer before getting ID 2022-05-26 01:32:06 -07:00
467914a556 [oni-org] Find projects in any of my agenda files 2022-05-26 01:31:24 -07:00
da68ca4f7d [oni-org] Fix using ‘oni-org-move-subtree’ multiple times in a row
Before, because of the use of ‘org-cut-subtree’, which in turn calls
‘kill-region’, which checks to see if ‘last-command’ equals ‘kill-region’ and
uses either ‘kill-append’ or ‘kill-new’ repeated uses of the
‘oni-org-move-subtree’ command would append cut subtrees together and repeatedly
paste the same subtrees over and over again.

Setting ‘this-command’ will make sure that when the ‘kill-region’ checks the
value of ‘last-command’ it won't find ‘kill-region’ there.
2022-05-13 11:15:01 -07:00
4b94f8403c [oni-org] Use ‘rx’ instead of ‘rx-to-string’
‘rx’ should expand to what is needed to make sure that the right thing is done.
I feel more comfortable using this than ‘rx-to-string’ while unquoting the
variables I use.
2022-05-11 20:37:11 -07:00
54e9c9c26f [oni-org] Combine ‘oni-move-subtree-*’ into ‘oni-org-move-subtree’
These two functions do essentially the same thing, but in different directions.
This can also be done with one single interactive function. This way there is
only one thing to call.
2022-05-11 20:21:53 -07:00
aaa5b89d0a [oni-org] Add commands to move subtrees relative to others 2022-04-24 02:53:43 -07:00
297df3579d [oni-org] Add agenda to overview command and show 10 items each 2022-04-24 02:53:18 -07:00
40919f0fe9 [oni-org] Remove references to ‘oni-backlinks’
I haven't actually been using them at all, and they're just clogging up the
‘org-update-all-dblocks’ command by doing a bunch of unnecessary work.
2022-04-22 17:27:15 -07:00
64fee97d35 [oni-org] Add support for id: backlinks in oni-backlinks dblock 2022-04-01 18:39:47 -07:00
641f736478 [oni-org] Add dynamic block for org for linking together projects
This is similar to my backlinks dynamic block, but it supports links by id and
will print them as a checkbox so that the project can track progress by using
the progress cookies.
2022-04-01 18:37:10 -07:00
2dd841ffc3 [oni-org] Add an agenda with tasks, articles, videos, and music 2022-04-01 18:35:55 -07:00
3ef86655f1 [oni-org] Show the agenda as the only window 2022-03-15 23:10:59 -07:00
8ff956b3a2 [oni-org] Hide the body of the task marked as done 2022-03-15 23:09:46 -07:00
76bffd107c [oni-org] Enable ‘org-agenda-log-mode’ by default in Org agendas
This will show when I've marked items as done and when I've logged time on tasks.
2022-02-28 00:59:06 -08:00
055240f3db [oni-org] Icrease the duration of a single Pomodoro
I've been experimenting with using 25 minutes instead of 20 for each Pomodoro.
2022-02-08 09:47:49 -08:00
5a15eacc0d [oni-org] Specify some more properties on the capture frame
The name helps to specify in the window manager that it shouldn't be tiled, and
the width and height are just stylistic choices.
2022-02-08 09:46:59 -08:00
f34308bf66 [oni-org] Allow refiling to someday.org
I'm trying to get a little more serious about GTD, and using a someday file is
part of that.
2022-01-12 10:42:06 -08:00
b18f400401 [oni-org] Modify the columns format for the todo list
Since I'm trying out the Pomodoro technique I want to be able to see at how many
pomodoro's I've estimated something so that I can choose what to do next.
2022-01-11 14:04:27 -08:00
7df353e7dc [oni-org] Don't change the state of a TODO when I'm capturing it
When a capture template is set up to clock in as I'm capturing it, this function
would immediately change the state of the item to WIP (or whichever next status
there was), but even though I'm spending time on the ticket at that point it's
not in progress yet.
2022-01-11 10:02:29 -08:00
011f0ce2f9 [oni-org] Add a simple Pomodoro duration
I'm trying out the Pomodoro Technique and one of the things you're supposed to
do is estimate your tasks in pomodoros. This change lets me estimate in, for
example, 1p (20min) based on my specified pomodoro duration.
2022-01-10 22:06:12 -08:00
8af6f8d160 Remove autoloads for snippet loading
Loading ‘yasnippet’ shouldn't automatically load my package configuration. If my
package configuration hasn't been loaded it shouldn't try to include my snippets.
2021-12-01 13:43:21 -08:00
6c611b5007 [oni-org] Enable ‘electric-pair-local-mode’
With ‘electric-pair-local-mode’ and my inhibit function together I get a pretty
reasonable way of typing fancy quotes and regular quotes in words like “don't”.
2021-11-30 15:25:10 -08:00
f07e7e6ed0
[oni-org] Don’t require ‘ol-man’
It seems that ‘ol-man’ was moved from org-contrib to the main org repository,
but the version of org hasn’t been updated yet, so my system can’t find it yet.
2021-10-17 16:39:06 -07:00
82fbd7e4b2 [oni-org] Bring back Org Roam 2021-10-06 01:15:12 -07:00
0fee67c9d3
[oni-org] Don’t inherit the ‘project’ tag 2021-09-16 19:53:23 -07:00
a82ee89a23 [oni-org] Log non-state notes into the task, outside a drawer 2021-09-12 03:09:18 -07:00
6993a3f7af
[oni-org] Remove old compiled snippets file 2021-09-11 23:54:31 -07:00
cccaac7c32 [oni-org] Add and enable `mixed-pitch' mode 2021-09-11 02:47:56 -07:00
02b680f40b
[oni-org] Fix typo 2021-08-30 14:01:08 -07:00
955d9dd483
[oni-org] Always give Album entries the “music” category 2021-08-30 14:00:35 -07:00
0a2bbffa1a
[oni-org] Use ‘grep -E’ instead of ‘egrep’
‘egrep’ doesn’t seem to be a program that exists on Windows, even after
installing the GNU coreutils through at least Cygwin and MSYS2.
2021-08-30 13:59:36 -07:00
352f61ef62
[oni-org] Simplify usage of inbox.org
Instead of everything that needs to explicitly mentioning inbox.org, make it the
default notes file. Usually all new notes should be captured in there and will
be moved up to other places.
2021-08-15 23:40:49 -07:00
af880424a4
[oni-org] Add any org files to the agenda list 2021-08-12 22:02:27 -07:00
2463c583f9
[oni-org] Update Heading snippet 2021-08-04 00:00:30 -07:00
1ae504e6f0
[oni-org] Expand/update used todo keywords 2021-08-03 09:02:35 -07:00
b7df647005
[oni-org] Rename ‘oni-org-knowledge-*’ to ‘oni-org-exocortex-*’ 2021-07-30 23:16:34 -07:00
f846a15a07
[oni-org] Fix ‘oni-org-find-knowledge-file’
Make sure that any new files for notes are created in the
‘oni-org-knowledge-directory’ directory and not in whichever directory the
current buffer is visiting.
2021-07-30 23:13:56 -07:00
22373fab15 [oni-org] Add some functions for easy note writing 2021-07-24 01:09:07 -07:00
ed883f3059 [oni-org] Hide both TITLE and title in org buffers 2021-07-24 00:51:16 -07:00
0a3a770249
[oni-org] Remove autoload cookie 2021-07-20 01:14:06 -07:00
4309e56f00 [oni-org] Document where icons come from 2021-07-06 21:01:05 -07:00
02c496b04a [oni-org] Add some category icons 2021-07-06 21:00:42 -07:00
caba40a5f5 [oni-org] Check for ‘line-start’ instead of ‘\n’
Line-start is more accurate and will work for both the beginning of the buffer,
and anywhere else in the buffer at the start of the line.
2021-07-06 21:00:42 -07:00
f377541a46 [oni-org] Add capture template for CODE Magazine issues 2021-07-06 00:34:18 -07:00
bebfe3c991 [oni-org] Add capture template for bought albums 2021-07-05 23:30:21 -07:00
a37f274ce8 [oni-org] Capture most output into my inbox file 2021-07-05 23:28:36 -07:00
b80c4f4321 [oni-org] Add code to embed SVG images in output
This was taken from https://emacs.stackexchange.com/a/57433
2021-07-01 19:05:46 -07:00
554aad49b5 [oni-org] Only expand snippets if the key is at start of line 2021-06-30 15:22:57 -07:00
e50eef7268 [oni-org] Add ‘olivetti’ to org-mode buffers 2021-06-30 11:24:30 -07:00
b5e1c5e2a6 [oni-org] Remove ‘org-journal’ dependency
I haven’t been using ‘org-journal’, just a simple capture template.
2021-06-30 11:22:56 -07:00
7f233420c8 [oni-org] Add functions to remove and toggle inlineimages 2021-06-30 11:22:09 -07:00
9d74d0341d [oni-org] Add function to enable showing inline images on startup 2021-06-30 11:12:50 -07:00
0d349e09fe [oni-org] Add simple interactive command to wrap a region in a block 2021-06-22 22:20:50 -07:00
8a0e2a326d [oni-org] Hide ‘#+TITLE: ’ 2021-06-22 22:20:31 -07:00
64d3f0cbb9 [oni-org] Extend the day until 2am 2021-06-21 23:49:46 -07:00
b76610e4b6 [oni-org] Depend on ‘org’ and ‘org-contrib’
‘org-plus-contrib’ has been deprecated and the equivalent should now be the
‘org’ and ‘org-contrib’ packages.
2021-06-21 23:47:28 -07:00
5a6ba52a1a [oni-org] Allow refiling to the current buffer 2021-06-11 01:19:22 -07:00
ee6b99af45 Add Effort to the Reading list view
Also fix a typo ‘Reding’ -> ‘Reading’
2021-05-18 23:03:04 -07:00
17e3392313 [oni-org] Require using ‘{}’ for sub- and superscripts 2021-04-25 18:03:22 -07:00
a783346a79 [oni-org] Specialize ‘C-a’ and ‘C-e’ for org elements
When on a heading, first move to the beginning of the heading title, and then to
the beginning of the line. For moving to the end, first move to the end of the
title, and then past any tags.
2021-04-25 18:01:45 -07:00
0e46d80c6b [oni-org] Automatically renumber and sort footnotes in org 2021-04-25 18:00:51 -07:00
fa8a55843b [oni-org] Display entities in org in a nicer way 2021-04-25 18:00:08 -07:00
feb1e0cc09 [oni-org] Make ‘org-agenda’ restore the window configuration 2021-04-25 17:37:58 -07:00
30426230ed [oni-org] Add an unestimated reading list view 2021-04-25 17:37:08 -07:00
c2e9a919b6 Add ‘org-roam-insert’ to my Org hydra 2021-04-18 16:13:28 -07:00
fcdabae3fd [oni-org] Replace org icons and add a few new ones
Replace all of the previous icons used in org-mode for agenda views with SVG
ones, and add ones for the “moving”, “security”, “website” and “desktop”
categories.
2021-04-07 23:47:48 -07:00
3f2d563970 Add an icon for Emacs tasks 2021-04-07 19:57:30 -07:00
1b6972b09f Fix ‘org-roam-insert-immediate’ use in ‘oni-hydra-org’
This still probably calls ‘org-roam-insert-immediate’ incorrectly, but it fixes
it for my current use case. I’ve changed the call to ‘org-roam-find-file’ in a
similar manner in case it ever starts asking me interactively for things.
2021-03-29 10:00:50 -07:00
dd9fedf8ff Decouple ‘oni-org’ and ‘oni-org-roam’
‘org-roam’ doesn’t seem to work correctly on all the machines that I use
‘org-mode’ on.
2021-03-25 20:20:04 -07:00
0e0f464a65 For the journal capture template, only include task if clocked in 2021-03-25 19:37:48 -07:00
0d5b6fcc11 Bump version for oni-org
I updated one of the capture templates, but since they’re not part of the ‘.el’
file itself the version needs to manually be bumped.
2021-03-24 10:33:56 -07:00
85759a07d8 Add a link to the clocked-in task for journal entries 2021-03-17 21:14:56 -07:00
9e0f0d4352 Setup refiling in org-mode 2021-02-23 21:40:39 -08:00
058c6b39ae Hide macro markers in Org mode 2021-02-15 16:49:53 -08:00
b32f8ff3c5 If the projects directory doesn’t exist, that’s fine 2021-02-01 13:41:54 -08:00
ff7d19dc1e Add ‘electric-quote-local-mode’ to org-mode buffers 2021-01-31 21:47:13 -08:00
a74e8817fa Add ‘org-roam’ commands to my org hydra 2021-01-31 21:42:29 -08:00
1155024811 Add any project files to ‘org-agenda-files’ 2021-01-20 16:34:06 -08:00
f4fe076d62 Don't load icons if the display can't handle them 2021-01-06 20:19:53 -08:00
6b24843ac8 Replace the NEXT keyword with TODO
I don’t think NEXT has any real meaning for me now that I’ve started using my
agenda as my real todo list.
2021-01-06 10:54:03 -08:00
8975e2fa22 When clocking in, check for a state head and switch to the next
Instead of checking specifically that it’s in the TODO state, check that it’s in
any one of the first states (like TODO, or READ). If this is the case, switch it
from the current state to whatever the settings define as being the next
state (usually WIP or READING).
2021-01-06 10:52:05 -08:00
5c2ed55020 Make org-journal files .org files 2021-01-04 15:11:38 -08:00