Repository navigation
OMNIS-62: Add zsh-edit-select module - #89
Merged
Merged
Conversation
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.
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
Adds the built-in
zsh-edit-selectmodule (zsh): edit the command line like a text editor with zsh-edit-select (Shift selection, copy, cut, paste, undo, mouse selection).v0.7.01); no package manager ships it.applybuilds the clipboard agent from the pinned clone via the fallbackrun. A failed build fails the install, so the module is degraded and the exit code is non-zero. On other platforms theruncommand renders empty, which skips the build.completion,autosuggestionsandsyntax-highlighting, the order the plugin is written for.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.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.init,enable zsh-edit-select,apply,doctorandcheatsheetagainst a throwawayHOME.omnishell enable zsh-edit-select && omnishell applyon macOS with Xcode Command Line Tools, restart the terminal after adding the key bindings, then try Shift+arrows and Cmd+C.