Repository navigation
feat: set ID --title to retitle an item in place (#18) - #20
Merged
Merged
Conversation
There was no CLI verb to correct an item's descriptive title after creation — the only options were a hook-discouraged manual TASKS.md edit or re-file + defer (ID churn). Add `set ID --title "New title"`: replaces the descriptive text while preserving the ID, status, priority, and all trailing machine tags (via split_item_tags), applied to the primary line and any @shadow copies so the derived copies stay in sync. Guards: empty titles are rejected, and so is a title that ENDS with a tag-shaped token (e.g. "... @milestone=m1") — on re-parse that token would merge into the trailing machine-tag region and silently become a real tag. Tag-lookalikes elsewhere in the title remain prose, per the #9 parsing rules. New e2e scenario 50 covers retitle + tag preservation, shadowed-feature sync, both guards, and the mid-title lookalike case. version 1.1.2 -> 1.2.0.
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.
Closes #18. Delivers the retitle half of #11 (the
noteverb remains open there).What
set ID --title "New title"— replace an item's descriptive title in place, preserving its ID, status, priority, and all trailing machine tags (built onsplit_item_tagsfrom the 1.1.1 tag-region work). Applies to the primary line and any@shadowcopies, keeping derived copies in sync (same semantics as the #17 fix).Guards
... @milestone=m1) → rejected with a clear message, because on re-parse that trailing token would merge into the machine-tag region and silently become a real tag.Verification
make checkgreen: 265 assertions, 0 failures; smoke OK; 3.8-safe; single file, zero deps.Minor version:
__version__1.1.2 → 1.2.0 (new command surface); CHANGELOG + docstring updated.