Skip to content

OMNIS-62: Add zsh-edit-select module - #89

Merged
JtheGunner merged 2 commits into
mainfrom
feat/OMNIS-62-add-zsh-edit-select-module
Nov 28, 2026
Merged

JtheGunner merged 2 commits into
mainfrom
feat/OMNIS-62-add-zsh-edit-select-module

Conversation

@JtheGunner

Copy link
Copy Markdown
Owner

Summary

Adds the built-in zsh-edit-select module (zsh): edit the command line like a text editor with zsh-edit-select (Shift selection, copy, cut, paste, undo, mouse selection).

  • Installed from a pinned git clone (v0.7.01); no package manager ships it.
  • macOS: apply builds the clipboard agent from the pinned clone via the fallback run. A failed build fails the install, so the module is degraded and the exit code is non-zero. On other platforms the run command renders empty, which skips the build.
  • Linux: the plugin downloads its agent itself on the first shell start, from its latest release rather than the pinned tag. This is documented in the README and CHANGELOG.
  • Loads after completion, autosuggestions and syntax-highlighting, the order the plugin is written for.
  • The cheatsheet lists the key bindings (Cmd on macOS, Ctrl elsewhere), the macOS Accessibility step (edit-select setup-ax), the need for terminal key bindings, and the migration from a manual install. omnishell writes no terminal configuration.

Test plan

  • go test ./... -race, go vet ./..., golangci-lint run ./...: green.
  • New modules/zsh_edit_select_test.go: manifest, load order, build runs on macOS only, build failure fails the install, plan without a package manager, snippet in a real zsh (path with a space, missing plugin is silent), golden files.
  • Manually: built the macOS agent from a clean clone, and ran init, enable zsh-edit-select, apply, doctor and cheatsheet against a throwaway HOME.
  • Reviewer: run omnishell enable zsh-edit-select && omnishell apply on macOS with Xcode Command Line Tools, restart the terminal after adding the key bindings, then try Shift+arrows and Cmd+C.

Installs the plugin from a pinned clone and, on macOS, builds its clipboard agent with make during apply, so a failed build degrades the module instead of surfacing on the first shell start. Other platforms render an empty run command, which skips the build; the plugin provisions its Linux agent itself. The module loads after autosuggestions and syntax-highlighting, the order the plugin expects, and ships a cheatsheet with the terminal key bindings and migration notes.
On Linux the plugin downloads its agent on the first shell start from its latest GitHub release, not from the pinned tag. Say so in the README and the changelog.
@JtheGunner
JtheGunner merged commit 9631da4 into main Nov 28, 2026
5 checks passed
@JtheGunner
JtheGunner deleted the feat/OMNIS-62-add-zsh-edit-select-module branch November 28, 2026 14:50
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