This adds VoiceCode support for zsh, namely selection support and undo bindings.
Pull requests are welcome. ๐
You must be using iTerm2 and ZSH.
By default, this is ~/voicecode
, so:
git clone https://github.com/anonfunc/voicecode-zsh.git ~/voicecode/zsh
- Add
source ~/voicecode/zsh/selection.zsh
to your ~/.zshrc - Optional: Change cursor style from block to vertical line. This makes selection behavior less confusing.
- Selection commands:
trail
,crew
,scram
,spando
- ZSH must be using Emacs style key bindings, the default.
- VoiceCode uses the clipboard to get selected text, so clipboard commands will interact with zsh's selection, not your terminal emulator.
- This means that CMD-C will have different behavior than
stoosh
, and that mouse selections will not be usable with VoiceCode. - It also means that once something is printed on the screen, you cannot use
trail
to select it.
- This means that CMD-C will have different behavior than
- Selection color is currently blue, and not configurable.
- If you are also using the
vim
VoiceCode package, I'm not sure what will happen, but various things will break.