fix(snippets): bold labels, empty optional fields, only mandatory TAB stops
This commit is contained in:
@@ -2,14 +2,14 @@
|
||||
# name: ADR - Architectural Decision Record
|
||||
# key: ;adr
|
||||
# --
|
||||
| ID | ${1:ADR-0001} |
|
||||
| Subject | ${2:Title of the decision} |
|
||||
|----------------------|-------------------------------------------|
|
||||
| Problem statement | ${3:What is the problem?} |
|
||||
| Decision | ${4:What was decided?} |
|
||||
| Alternatives | ${5:What alternatives were considered?} |
|
||||
| Justification | ${6:Why this decision?} |
|
||||
| Implications | ${7:What are the implications?} |
|
||||
| Derived requirements | ${8:What requirements derive from this?} |
|
||||
| Status | ${9:Proposed} |
|
||||
| **ID** | ADR-${1:0001} |
|
||||
| **Subject** | ${2:Title} |
|
||||
|--------------------------|----------------|
|
||||
| **Problem statement** | |
|
||||
| **Decision** | |
|
||||
| **Alternatives** | |
|
||||
| **Justification** | |
|
||||
| **Implications** | |
|
||||
| **Derived requirements** | |
|
||||
| **Status** | ${3:Proposed} |
|
||||
$0
|
||||
|
||||
@@ -2,14 +2,14 @@
|
||||
# name: ADR - Architectural Decision Record
|
||||
# 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)))` |
|
||||
| Subject | ${1:Title of the decision} |
|
||||
|----------------------+-------------------------------------------|
|
||||
| Problem statement | ${2:What is the problem?} |
|
||||
| Decision | ${3:What was decided?} |
|
||||
| Alternatives | ${4:What alternatives were considered?} |
|
||||
| Justification | ${5:Why this decision?} |
|
||||
| Implications | ${6:What are the implications?} |
|
||||
| Derived requirements | ${7:What requirements derive from this?} |
|
||||
| Status | ${8:Proposed} |
|
||||
| *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} |
|
||||
|------------------------+---------------------------|
|
||||
| *Problem statement* | |
|
||||
| *Decision* | |
|
||||
| *Alternatives* | |
|
||||
| *Justification* | |
|
||||
| *Implications* | |
|
||||
| *Derived requirements* | |
|
||||
| *Status* | ${2:Proposed} |
|
||||
$0
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
# name: Meeting notes
|
||||
# key: ;meeting
|
||||
# --
|
||||
| Date | `(format-time-string "%Y-%m-%d")` |
|
||||
| Attendees | ${1:names} |
|
||||
| Topic | ${2:topic} |
|
||||
|-----------+-----------------------------------|
|
||||
| Notes | ${3:discussion notes} |
|
||||
| Actions | ${4:action items} |
|
||||
| Next | ${5:next meeting} |
|
||||
| *Date* | `(format-time-string "%Y-%m-%d")` |
|
||||
| *Attendees* | ${1:names} |
|
||||
| *Topic* | ${2:topic} |
|
||||
|-------------+-----------------------------------|
|
||||
| *Notes* | |
|
||||
| *Actions* | |
|
||||
| *Next* | |
|
||||
$0
|
||||
|
||||
Reference in New Issue
Block a user