feat: add section reorder command#349
Merged
Merged
Conversation
doistbot
reviewed
May 18, 2026
Member
doistbot
left a comment
There was a problem hiding this comment.
This PR introduces the td section reorder command, offering robust functionality to rearrange sections within a project using positional or relative moves. It is a great addition that significantly expands the CLI's project management capabilities. A few adjustments are noted regarding the reuse of existing entity resolution and validation helpers, optimizing pagination logic to reduce memory overhead, polishing output formatting for consistency, and strengthening the test suite with more robust SDK boundary mocks and coverage for edge cases.
- Reuse shared ref resolution for section reorder - Extract shared reorder placement validation - Assert section reorder sync payloads in tests
scottlovegrove
approved these changes
May 19, 2026
- Print section order after successful reorders - Share reorder command args in section tests
doist-release-bot Bot
added a commit
that referenced
this pull request
May 19, 2026
## [1.66.0](v1.65.0...v1.66.0) (2026-05-19) ### Features * add section reorder command ([#349](#349)) ([fc87e70](fc87e70))
Contributor
|
🎉 This PR is included in version 1.66.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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.
Overview
Adds
td section reorderso sections can be reordered within a project from the CLI. It supports positional moves, plus relative moves before or after another section.Changes
td section reorderwith--project,--section,--before,--after,--position,--json, and--dry-run.section_reordercommand.SKILL_CONTENT, and the generated Todoist CLI skill file.Test plan
node dist/index.js section reorder "Review" --project "<project>" --before "Done" --dry-runand check the preview shows the expected order.node dist/index.js section reorder "Review" --project "<project>" --position 0 --jsonand confirm the JSON output listsReviewfirst.