feat: add subtask support (addsubtask command and hasSubtasks display)#178
Open
beauraines wants to merge 2 commits intomainfrom
Open
feat: add subtask support (addsubtask command and hasSubtasks display)#178beauraines wants to merge 2 commits intomainfrom
beauraines wants to merge 2 commits intomainfrom
Conversation
New command: addsubtask <parentIndex> [subtaskName...] Alias: as Creates a subtask under an existing task using the parent task's display index. Supports Smart Add syntax for the subtask name. Handles RTM-specific errors gracefully (Pro-only, nesting limit, repeating task conflicts). Usage: rtm addsubtask 5 Buy bananas rtm as 5 Closes: #151 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Adds a parentTask indicator ((p) in text mode, 📋 in emoji mode) to printIndicator.js and displays it in ls, lsd, lsp, and task detail views when a task has subtasks. Also shows Has Subtasks field in the task detail view. Closes: #124 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the ability to create subtasks and display parent task indicators in the CLI.
Key Changes
New command:
addsubtask(src/cmd/addsubtask.js)rtm addsubtask <parentIndex> [subtaskName...]asParent task indicator in listings
printIndicator.js: NewparentTaskindicator —(p)in text mode, 📋 in emoji models.js,lsd.js,lsp.js: Display indicator whentask.hasSubtasksis truetask.js: ShowHas Subtasks:in task detail viewDependencies
Requires beauraines/rtm-api#85 to be merged first (adds
addSubtask()method andhasSubtasksproperty).Breaking Changes
None — all changes are additive.
Closes #151, Closes #124