Skip to content

Commit 1a22c2b

Browse files
committed
Convert to kanban slash commands
1 parent 3111f5e commit 1a22c2b

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ The following commands only appear in the slash menu when the cursor is on a tas
164164
| **Task: Waiting** | Toggles `#W` at the start of the task text (inserts if absent, removes if present) |
165165
| **Task: Due Date** | Opens a date input pre-filled with today (YYYY-MM-DD). Confirms and inserts `#D-YYYY-MM-DD` at the start of the task text. Replaces any existing due date tag |
166166
| **Task: Completion Date** | Opens a date input pre-filled with today (YYYY-MM-DD). Confirms and inserts `#C-YYYY-MM-DD` at the start of the task text. Replaces any existing completion date tag |
167+
| **Convert to Kanban Card** *(Pro)* | Marks the task as done, creates a Kanban card in the **TODO** lane with the task title (stripped of tags), matching priority and due date, and the **Waiting** flag set. Only available on unchecked tasks |
167168

168169
Priority and waiting tags toggle: issuing the same tag again removes it. Issuing a different priority replaces the existing one. Due date and completion date tags replace any existing tag of the same type.
169170

@@ -556,7 +557,7 @@ Cards are the primary unit of work. Each card is stored as a **Markdown file** w
556557
- **Delete card** — click the trash icon in the card editor.
557558
- **Open card file** — click the **Open File** button in the card editor to open the Markdown file directly.
558559

559-
**Priority levels:** critical · high · medium · low · none
560+
**Priority levels:** P1 · P2 · P3 · P4 · P5 · none
560561

561562
#### Entries (comments)
562563

@@ -588,7 +589,7 @@ A typical card file looks like:
588589
---
589590
title: Implement search
590591
lane: doing
591-
priority: high
592+
priority: p2
592593
assignee: gareth
593594
labels:
594595
- backend
@@ -618,6 +619,7 @@ Front-matter holds the structured fields; the Markdown body is the card descript
618619
| **AS Notes: Create Kanban Board** | Create a new board |
619620
| **AS Notes: Rename Kanban Board** | Rename the current board |
620621
| **AS Notes: Delete Kanban Board** | Delete the current board and all its data |
622+
| **AS Notes: Convert Task to Kanban Card** | Mark the current task done and create a Kanban card from it *(Pro)* |
621623

622624
## Settings
623625

docs-src/pages/Slash Commands.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ These commands only appear in the slash menu when the cursor is on a task line (
6666
| **Task: Waiting** | Inserts `#W` at the task text start |
6767
| **Task: Due Date** | Opens a date input pre-filled with today (YYYY-MM-DD format). On confirm, inserts `#D-YYYY-MM-DD` at the task text start |
6868
| **Task: Completion Date** | Opens a date input pre-filled with today (YYYY-MM-DD format). On confirm, inserts `#C-YYYY-MM-DD` at the task text start |
69+
| **Convert to Kanban Card** *(Pro)* | Marks the task as done, creates a Kanban card in the **TODO** lane with the task title (stripped of tags), matching priority and due date, and the **Waiting** flag set. Only available on unchecked tasks |
6970

7071
## Pro Licence
7172

vs-code-extension/src/SlashCommandProvider.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,8 @@ export class SlashCommandProvider implements vscode.CompletionItemProvider {
325325
convertToCardItem.insertText = '';
326326
convertToCardItem.range = range;
327327
convertToCardItem.command = { command: 'as-notes.convertTaskToKanbanCard', title: 'Convert to Kanban Card' };
328-
items.push(convertToCardItem); }
328+
items.push(convertToCardItem);
329+
}
329330

330331
return new vscode.CompletionList(items, false);
331332
}

0 commit comments

Comments
 (0)