refactor(snippets): metadata table + org headings structure; minimal TAB stops

This commit is contained in:
2026-02-24 15:08:12 +01:00
parent 6358721349
commit 54d6fb27ed
4 changed files with 29 additions and 25 deletions

View File

@@ -2,14 +2,22 @@
# name: ADR - Architectural Decision Record # name: ADR - Architectural Decision Record
# key: ;adr # key: ;adr
# -- # --
| *ID* | `(let ((max-id 0)) (save-excursion (goto-char (point-min)) (while (re-search-forward "| \\*ID\\*\\s-+|\\s-+ADR-\\([0-9]+\\)" nil t) (setq max-id (max max-id (string-to-number (match-string 1)))))) (format "ADR-%04d" (1+ max-id)))` | * `(let ((max-id 0)) (save-excursion (goto-char (point-min)) (while (re-search-forward "^\\* ADR-\\([0-9]+\\)" nil t) (setq max-id (max max-id (string-to-number (match-string 1)))))) (format "ADR-%04d" (1+ max-id)))` - ${1:Subject}
| *Subject* | ${1:Title} |
|------------------------+---------------------------| | *ID* | `(let ((max-id 0)) (save-excursion (goto-char (point-min)) (while (re-search-forward "^\\* ADR-\\([0-9]+\\)" nil t) (setq max-id (max max-id (string-to-number (match-string 1)))))) (format "ADR-%04d" (1+ max-id)))` |
| *Problem statement* | | | *Subject* | ${1:Subject} |
| *Decision* | | | *Status* | ${2:Proposed} |
| *Alternatives* | | | *Date* | `(format-time-string "%Y-%m-%d")` |
| *Justification* | |
| *Implications* | | *** Problem statement
| *Derived requirements* | |
| *Status* | ${2:Proposed} | *** Decision
*** Alternatives
*** Justification
*** Implications
*** Derived requirements
$0 $0

View File

@@ -2,11 +2,14 @@
# name: Meeting notes # name: Meeting notes
# key: ;meeting # key: ;meeting
# -- # --
* Meeting: ${1:Topic} — `(format-time-string "%Y-%m-%d")`
| *Date* | `(format-time-string "%Y-%m-%d")` | | *Date* | `(format-time-string "%Y-%m-%d")` |
| *Attendees* | ${1:names} | | *Attendees* | ${2:names} |
| *Topic* | ${2:topic} |
|-------------+-----------------------------------| *** Notes
| *Notes* | |
| *Actions* | | *** Actions
| *Next* | |
*** Next steps
$0 $0

View File

@@ -1,11 +1,8 @@
# -*- mode: snippet -*- # -*- mode: snippet -*-
# name: TODO task with properties # name: TODO task
# key: ;todo # key: ;todo
# -- # --
* TODO ${1:Task title} * TODO ${1:Task title}
SCHEDULED: <`(format-time-string "%Y-%m-%d")`> SCHEDULED: <`(format-time-string "%Y-%m-%d")`>
:PROPERTIES: ${2:Notes}
:context: ${2:work/personal}
:END:
${3:Notes}
$0 $0

View File

@@ -5,14 +5,10 @@
* Weekly Review — `(format-time-string "W%V %Y")` * Weekly Review — `(format-time-string "W%V %Y")`
** Done this week ** Done this week
${1:- }
** In progress ** In progress
${2:- }
** Blocked ** Blocked
${3:- }
** Next week focus ** Next week focus
${4:- }
$0 $0