2022-04-22 02:54:47 +00:00
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2022-08-25 19:18:07 +00:00
; inspiration for conditional capture template : https://storax.github.io/blog/2016/05/02/org-capture-tricks/
; helper functions
2023-04-08 16:53:12 +00:00
( defvar my-capture-prmt-history nil
2022-08-25 19:18:07 +00:00
" History of prompt answers for org capture. " )
2023-04-08 16:53:12 +00:00
( defun my/prmt ( prompt variable )
2022-08-25 19:18:07 +00:00
" PROMPT for string, save it to VARIABLE and insert it. "
( make-local-variable variable )
2023-04-08 16:53:12 +00:00
( set variable ( read-string ( concat prompt " : " ) nil my-capture-prmt-history ) ) )
( defun my/inc ( what text &rest fmtvars )
2022-08-25 19:18:07 +00:00
" Ask user to include WHAT. If user agrees return TEXT. "
( when ( y-or-n-p ( concat " Include " what " ? " ) )
( apply 'format text fmtvars ) ) )
2023-04-08 16:53:12 +00:00
( defun my/inc_date ( what prefix )
2022-08-25 19:18:07 +00:00
" Ask user to include a date. If user agrees prompt for date. "
( when ( y-or-n-p ( concat " Include " what " ? " ) )
( concat prefix ( org-time-stamp nil ) ) ) )
2022-04-22 02:54:47 +00:00
; orgmode capture templates
( setq org-capture-templates ' (
2023-02-13 13:29:18 +00:00
( " d " " TODO (Main) " entry
( file " ~/org/orgzly/_todo.org " )
2024-07-28 16:04:59 +00:00
( file " ~/org/_org-capture-templates/template_todo.org " )
2023-02-13 13:29:18 +00:00
:prepend t
:immediate-finish " f "
:jump-to-captured " t "
)
( " s " " TODO (Slipbox) " entry
( file " ~/org/orgzly/_slipbox.org " )
2024-07-28 16:04:59 +00:00
( file " ~/org/_org-capture-templates/template_slipbox.org " )
2022-08-25 19:18:07 +00:00
:prepend t
:immediate-finish " f "
:jump-to-captured " t "
)
2022-04-22 02:54:47 +00:00
( " b " " Blog Post " entry
2022-08-23 19:21:21 +00:00
( file+headline " ~/org/blog/_blog.org " " Drafts " )
2024-07-28 16:04:59 +00:00
( file " ~/org/_org-capture-templates/template_blog.org " )
2022-04-22 02:54:47 +00:00
)
2022-08-24 20:56:22 +00:00
( " g " " Gaming " )
2023-05-02 14:04:02 +00:00
( " gd " " Destiny " )
( " gdc " " To Do - Crafted Gun "
2022-08-24 20:56:22 +00:00
entry ( id " 65a28e9e-e484-4722-8a25-4fbf0a8dea2c " )
2024-07-28 16:33:22 +00:00
( file " ~/org/_org-capture-templates/template_game_destiny_gun.org " )
2022-04-22 02:54:47 +00:00
:prepend t
2022-08-24 20:56:22 +00:00
:immediate-finish " f "
:jump-to-captured " t "
:unnarrowed " t "
2022-04-22 02:54:47 +00:00
)
2023-05-02 14:04:02 +00:00
( " gw " " Warframe " )
2024-03-18 13:41:43 +00:00
( " gwd " " Daily Reset "
entry ( file+headline " ~/org/games/games_warframe.org " " Daily / Weekly Reset " )
2024-07-28 16:33:22 +00:00
( file " ~/org/_org-capture-templates/template_game_warframe_daily_reset.org " )
2024-03-18 13:41:43 +00:00
:prepend t
:immediate-finish " f "
:jump-to-captured " t "
:unnarrowed " t "
)
( " gww " " Weekly Reset "
entry ( file+headline " ~/org/games/games_warframe.org " " Daily / Weekly Reset " )
2024-07-28 16:33:22 +00:00
( file " ~/org/_org-capture-templates/template_game_warframe_weekly_reset.org " )
2024-03-18 13:41:43 +00:00
:prepend t
:immediate-finish " f "
:jump-to-captured " t "
:unnarrowed " t "
)
( " gwt " " To Do "
entry ( file+headline " ~/org/games/games_warframe.org " " To Do " )
2024-07-28 16:33:22 +00:00
" ** TODO %^{Heading} \n :LOGBOOK: \n - Created: %U \n :END:%? "
2023-05-02 14:04:02 +00:00
:immediate-finish " f "
:jump-to-captured " t "
:unnarrowed " t "
:prepend " t "
)
2022-04-22 02:54:47 +00:00
( " h " " Health " )
2024-03-10 17:32:48 +00:00
( " hc " " Couples " )
( " hch " " Homework "
entry ( file+headline " ~/org/health/health_couples.org " " Homework " )
2024-07-28 16:33:22 +00:00
" ** TODO %^{Heading} :health:couples:homework: \n :LOGBOOK: \n - Created: %U \n :END:%? "
2024-03-10 17:32:48 +00:00
:immediate-finish " f "
:jump-to-captured " t "
:unnarrowed " t "
)
( " hcl " " Log Entry "
entry ( file+datetree " ~/org/health/health_couples.org " " Log " )
2024-08-08 19:43:58 +00:00
( file " ~/org/_org-capture-templates/template_couples_apt_log.org " )
2024-03-10 17:32:48 +00:00
:time-prompt " t "
:immediate-finish " f "
:jump-to-captured " t "
:unnarrowed " f "
)
( " hcd " " Appointment noteworthy developments / [time] in review "
entry ( file+headline " ~/org/health/health_couples.org " " To Do " )
2024-08-08 19:34:37 +00:00
( file " ~/org/_org-capture-templates/template_couples_apt_developments.org " )
2024-03-10 17:32:48 +00:00
:immediate-finish " f "
:jump-to-captured " t "
:unnarrowed " t "
:prepend " t "
)
( " hca " " Appointment Notes "
entry ( file+datetree " ~/org/health/health_couples.org " " Log " )
2024-08-08 19:50:07 +00:00
( file " ~/org/_org-capture-templates/template_couples_apt_notes.org " )
2024-03-10 17:32:48 +00:00
:time-prompt " t "
:immediate-finish " f "
:jump-to-captured " t "
:unnarrowed " t "
)
2022-04-22 02:54:47 +00:00
( " hm " " Mike " )
2024-03-07 18:09:16 +00:00
( " hmh " " Homework "
entry ( file+headline " ~/org/health/health_mike.org " " Homework " )
2024-07-28 16:33:22 +00:00
" ** TODO %^{Heading} :health::homework: \n :LOGBOOK: \n - Created: %U \n :END:%? "
2024-03-07 18:09:16 +00:00
:immediate-finish " f "
:jump-to-captured " t "
:unnarrowed " t "
)
2022-04-22 02:54:47 +00:00
( " hml " " Log Entry "
entry ( file+datetree " ~/org/health/health_mike.org " " Log " )
2024-07-28 16:33:22 +00:00
" * %^{Timestamp}U %^{Text} :health:log:%^g \n :LOGBOOK: \n - Created: %U \n :END:%? "
2022-04-22 02:54:47 +00:00
:time-prompt " t "
:immediate-finish " f "
:jump-to-captured " t "
2022-08-24 20:56:22 +00:00
:unnarrowed " f "
2022-04-22 02:54:47 +00:00
)
2022-09-15 21:37:14 +00:00
( " hmd " " Appointment noteworthy developments / [time] in review "
2022-04-22 15:00:10 +00:00
entry ( file+headline " ~/org/health/health_mike.org " " To Do " )
2024-07-28 16:33:22 +00:00
" ** READY [#A] %^{Heading} :health:appointment:%^g \n DEADLINE: %^t \n :LOGBOOK: \n - Created: %U \n :END:%? "
2022-04-22 15:00:10 +00:00
:immediate-finish " f "
:jump-to-captured " t "
:unnarrowed " t "
:prepend " t "
)
2022-09-15 21:37:14 +00:00
( " hma " " Appointment Notes "
2024-03-07 17:59:41 +00:00
entry ( file+datetree " ~/org/health/health_mike.org " " Log " )
2024-07-28 16:33:22 +00:00
" * %^{Timestamp}U %^{Text} :health:appointment:%^g \n :LOGBOOK: \n - Created: %U \n :END:%? "
2022-04-22 02:54:47 +00:00
:time-prompt " t "
:immediate-finish " f "
:jump-to-captured " t "
:unnarrowed " t "
)
( " hmx " " Anxiety Entry "
entry ( file+datetree " ~/org/health/health_mike.org " " Log " )
2024-07-28 16:33:22 +00:00
" * %^{Timestamp}U %^{Text} :panic: \n :LOGBOOK: \n - Created: %U \n :END: \n ** Level (0-10/none-strong): %^{Level} \n ** What brought on your feelings of anxiety or panic? \n %? \n ** Anxiety and Panic Responses \n *** Physical Sensations \n list the physical sensations you felt during your anxiety response \n e.g. dizziness, shortness of breath, blushing, sweating, muscle tension. Indicate three that frighten you the most. \n *** Thoughts and Images \n list the thoughts you had when anticipating or experiencing your anxiety response \n e.g. 'im having a heart attack', 'im losign control', 'something terrible will happen' \n *** Behaviors and Actions \n list the behaviors you exhibited or actions you took as a result of your anxiety response \n "
2022-04-22 02:54:47 +00:00
:time-prompt " t "
:immediate-finish " f "
:jump-to-captured " t "
:unnarrowed " t "
)
2024-05-27 13:56:12 +00:00
( " m " " Music import (beets) " entry
2024-07-16 15:49:35 +00:00
( file " ~/org/orgzly/_slipbox.org " )
2024-07-28 16:33:22 +00:00
( file " ~/org/_org-capture-templates/template_beets.org " )
2024-05-27 13:56:12 +00:00
:prepend t
:immediate-finish " f "
2022-04-22 02:54:47 +00:00
:jump-to-captured " t "
)
( " p " " Photography " )
( " pt " " Theme (Film) " entry
( file+headline " ~/org/photography/film.org " " Themes - Active " )
2024-07-28 16:33:22 +00:00
( file " ~/org/_org-capture-templates/template_photog_theme.org " )
2022-04-22 02:54:47 +00:00
:empty-lines-before 1
)
( " pi " " Theme (Instant Film) " entry
( file+headline " ~/org/photography/instant_film.org " " Themes - Active " )
2024-07-28 16:33:22 +00:00
( file " ~/org/_org-capture-templates/template_photog_instant_film_theme.org " )
2022-04-22 02:54:47 +00:00
:empty-lines-before 1
)
( " r " " Recipe " )
( " rs " " Standard " plain
( file " ~/org/culinary/_recipes.org " )
2024-07-28 16:33:22 +00:00
( file " ~/org/_org-capture-templates/template_culinary_recipe.org " )
2022-04-22 02:54:47 +00:00
:empty-lines-before 1
)
( " rb " " Budget Bytes " plain
( file " ~/org/culinary/_recipes.org " )
2024-07-28 16:33:22 +00:00
( file " ~/org/_org-capture-templates/template_culinary_budget_bytes.org " )
2022-04-22 02:54:47 +00:00
:empty-lines-before 1
)
( " t " " Trip " entry
( file+headline " ~/org/trips.org " " Planned " )
2024-07-28 16:33:22 +00:00
( file " ~/org/_org-capture-templates/template_trip.org " )
2022-04-22 02:54:47 +00:00
:empty-lines-before 1
)
2022-04-22 15:00:10 +00:00
) )