fix(snippets): bold labels, empty optional fields, only mandatory TAB stops

This commit is contained in:
2026-02-24 14:59:41 +01:00
parent d83ffcdbb4
commit 6358721349
3 changed files with 27 additions and 27 deletions

View File

@@ -2,14 +2,14 @@
# name: ADR - Architectural Decision Record # name: ADR - Architectural Decision Record
# key: ;adr # key: ;adr
# -- # --
| ID | ${1:ADR-0001} | | **ID** | ADR-${1:0001} |
| Subject | ${2:Title of the decision} | | **Subject** | ${2:Title} |
|----------------------|-------------------------------------------| |--------------------------|----------------|
| Problem statement | ${3:What is the problem?} | | **Problem statement** | |
| Decision | ${4:What was decided?} | | **Decision** | |
| Alternatives | ${5:What alternatives were considered?} | | **Alternatives** | |
| Justification | ${6:Why this decision?} | | **Justification** | |
| Implications | ${7:What are the implications?} | | **Implications** | |
| Derived requirements | ${8:What requirements derive from this?} | | **Derived requirements** | |
| Status | ${9:Proposed} | | **Status** | ${3:Proposed} |
$0 $0

View File

@@ -2,14 +2,14 @@
# 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)))` | | *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)))` |
| Subject | ${1:Title of the decision} | | *Subject* | ${1:Title} |
|----------------------+-------------------------------------------| |------------------------+---------------------------|
| Problem statement | ${2:What is the problem?} | | *Problem statement* | |
| Decision | ${3:What was decided?} | | *Decision* | |
| Alternatives | ${4:What alternatives were considered?} | | *Alternatives* | |
| Justification | ${5:Why this decision?} | | *Justification* | |
| Implications | ${6:What are the implications?} | | *Implications* | |
| Derived requirements | ${7:What requirements derive from this?} | | *Derived requirements* | |
| Status | ${8:Proposed} | | *Status* | ${2:Proposed} |
$0 $0

View File

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