Skip to content

Default no-arg run to current directory and sync docs#53

Merged
owainlewis merged 2 commits into
mainfrom
fix/default-current-dir
Jun 29, 2026
Merged

Default no-arg run to current directory and sync docs#53
owainlewis merged 2 commits into
mainfrom
fix/default-current-dir

Conversation

@owainlewis

Copy link
Copy Markdown
Owner

Summary

Reviewed the codebase against all documentation and corrected stale docs so they match the current implementation. Also includes the existing CLI change on this branch that makes a no-arg run default to the current directory.

Changes

CLI behavior (src/cli.rs, already on this branch)

  • Running cortex with no path defaults to the current directory (.) instead of erroring. Verified by cli::tests::defaults_to_current_directory.

README

  • Document the no-arg run defaulting to the current directory (the "Developer Run" section previously said "exactly one path").
  • Add C-d as a delete-forward alias (keymap.rs:42).
  • Add C-x u undo keybinding (keymap.rs:66) — it was bound but undocumented.
  • Add the /commands slash alias for /help (app.rs:357).

AGENTS.md

Verification

  • cargo test — 144 passed, 0 failed.
  • Manually cross-checked README keybinding/slash tables and picker bindings against keymap.rs, commands.rs, app.rs, and picker.rs.

Follow-up (not in this PR)

  • docs/roadmap.md lists undo/redo ([v0.3] Add undo and redo #27) under v0.3 as "Planned/open", but undo/redo is fully implemented, documented, and tested (and credited in docs/releases/v0.1.0.md). The roadmap ties status to issue closure by design, so the right fix is to close [v0.3] Add undo and redo #27 rather than edit roadmap status here. Flagging for product review.

- Document no-arg run defaulting to the current directory
- Add C-d (delete forward), C-x u (undo) keybindings to README
- Add /commands slash alias to README
- Drop shipped tree-sitter from AGENTS do-not-add list
@owainlewis owainlewis merged commit 84bfd41 into main Jun 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[v0.3] Add undo and redo

1 participant