Conversation
work <project> now just cd's and shows context by default. Use -e to explicitly request an editor. Adds cc/claude/ccy for Claude Code integration, including Ghostty new-window support. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Rewrite docs/commands/work.md: new synopsis, -e flag, Claude Code editors (cc/ccy/cc:new), deprecation notice, bumped to v7.2.0 - Update QUICK-REFERENCE.md: work command examples with -e flag - Update CHANGELOG.md: add [7.2.0] entry for editor flag feature - Update hop.md: reference work -e flag in related commands - Update CLAUDE.md: add work -e to quick reference Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The while-loop flag parser only handled flags before the project arg. `work flow -e` silently failed (treated -e as deprecated positional editor). Replaced with full arg scan that collects flags from any position, so both `work -e flow` and `work flow -e` work correctly. Tests: 39 passing (was 31), 8 new tests with mock project env that exercises the full code path through _flow_open_editor. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Tutorial incorrectly stated "work . opens the appropriate editor". Now correctly teaches that work starts a session, and -e is optional for opening an editor. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
New test categories: - _flow_open_editor edge cases (empty, unknown, branch checks) - .STATUS parsing (Status, Phase, missing file) - finish/hop help flags (--help, -h, help shorthand) - hop invalid project error handling - work help output content validation - arg parser edge cases (bare -e, no $EDITOR, unknown flags) - teaching workflow detection (_work_teaching_session) - first-run welcome (marker creation, skip on second call) - token validation helpers (function existence, non-git dir) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
# Conflicts: # CLAUDE.md
Data-Wise
pushed a commit
that referenced
this pull request
Feb 16, 2026
…framework Resolves merge conflicts from work -e editor flag (PR #396) added on dev after the testing overhaul branched. Converts 40+ new editor/help/arg-parser tests from inline framework to shared test-framework.zsh assertions. 71/71 test-work.zsh passing, dogfood 4/4 clean, full suite 45/45. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.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
-e [EDITOR]flag onworkcommand-eworks in any position (work flow -e,work -e flow,work -e code flow)cc,ccy(yolo),cc:new(new Ghostty window)work <proj> <editor>positional syntax (warns but still works)Changes
Code
commands/work.zsh— Full arg parser rewrite (while-loop → positional scan withremainingarray)Tests
tests/test-work.zsh— 31 → 70 tests with mock project env covering:-e,--editor, bare, with value, before/after project)_flow_open_editoredge cases (empty, unknown, all editor branches).STATUSparsing (Status, Phase, missing file)finish/hophelp flags and error handling$EDITORfallback, unknown flags, extra positional args)Documentation
docs/commands/work.md— Complete rewrite for-eflag, 9 editor options documenteddocs/help/QUICK-REFERENCE.md— Updated work examples with-eflagdocs/CHANGELOG.md— v7.2.0 entrydocs/commands/hop.md— Updated-eflag referencesdocs/tutorials/01-first-session.md— Fixed stale "work opens editor" claims, now teaches-eflagCLAUDE.md— Quick Reference updated, date stampsTest plan
./tests/run-all.sh— 45/45 suites passing./tests/test-work.zsh— 70/70 tests passingwork flow -e/work -e flow/work -e code flowall workwork flow nvimshows deprecation warningwork <project> -e codeopens VS Codework <project> -e cclaunches Claude Code🤖 Generated with Claude Code