Add et ws organize to reorder dynamic workspaces - #1
Merged
Conversation
Lets the user reorder dynamic ("ET-n") workspace slots via $EDITOR
(a git-rebase-todo style listing), while static workspaces stay
pinned at their current index. Shows a before/after summary (old
and new slot index, name, linked Jira issue, Tracker time) and asks
for confirmation before applying anything.
Since the reorder is a closed permutation over the same slot set
(unlike et ws delete's partial left-shift), every workspace's bound
Tracker timer follows its entry to its new slot without any timer
being dropped or orphaned, renamed to match the ET-<n> convention.
Adds to et/ws.py: WsOrganizeError, OrganizeCandidate/OrganizePlanRow,
prepare_organize, list_organize_candidates,
build_organize_editor_content, parse_organize_order,
build_organize_plan, apply_organize_plan, open_in_editor. Extracts
_pad_workspaces_list out of delete_active_workspace for reuse.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Documents notable changes since the v0.1.0 tag, including the new et ws organize command. 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
et ws organize, letting you reorder dynamic ("ET-n") workspace slots by editing their order in$EDITOR(git-rebase-todo style);staticworkspaces stay pinned at their current index.et ws delete's partial left-shift), no timer is ever dropped or orphaned.CHANGELOG.mddocumenting notable changes since thev0.1.0tag.New API surface (
et/ws.py)WsOrganizeError,OrganizeCandidate,OrganizePlanRowprepare_organize,list_organize_candidates,build_organize_editor_content,parse_organize_order,build_organize_plan,apply_organize_plan,open_in_editor_pad_workspaces_listout ofdelete_active_workspacefor reuse.Testing
uv run pytest: 205 passed, 89.7% coverageuv run ruff check .: cleanuv run mypy src: clean🤖 Generated with GitHub Copilot CLI