Skip to content

eXtract: C-e edits, C-o opens, C-r relative/absolute paths - #76

Merged
netj merged 7 commits into
mainfrom
extract-edit-open-keys
Nov 11, 2026
Merged

netj merged 7 commits into
mainfrom
extract-edit-open-keys

Conversation

@netj

@netj netj commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

eXtract gets three keys:

  • C-e edits the picks in `$EDITOR` (`vi` if unset) in a new pane above (like the other shortcuts; across the window edge when short) the source pane's directory. Existing files and paths open at their `:line:col` (`+LINE` for vim/nvim/nano/emacs, `file:line:col` for Helix, `-g` for VS Code), several in one editor; URLs are left to C-o. Anything else (commands, quotes, lines, hashes) goes to a temp file that is removed when the editor exits.
  • C-o opens each pick by kind: macOS reveals files in Finder, opens directories and URLs (`xdg-open` elsewhere); hashes and `#234` use `gh browse` in a git repo. Anything unopenable is skipped with a short `display-message`.
  • M-r cycles path style for typing and copying: shown, relative to the project root, absolute (`:line:col` kept), remembered in `@optmux-extract-paths` and shown in the header.

C-e loses fzf's end-of-line (End still works). Pure functions (`classify`, `edit_plan`, `editor_argv`, `open_command`, `restyle`) are tested; docs updated.

🤖 Generated with Claude Code

netj and others added 7 commits November 10, 2026 21:48
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ack to vi

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…her shortcuts

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@netj
netj merged commit 1f570a8 into main Nov 11, 2026
3 checks passed
@netj
netj deleted the extract-edit-open-keys branch November 11, 2026 06:17
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.

1 participant