prezto/modules/editor
Chauncey Garrett fd72479bd5 Improved the prompt
- rearranged for better readability
- bolder angle brackets
- precise 24 hr time format option
- option to keep the clock updated (commented out because it messes with
  tab completions)
- ruby-info is clearer
- now makes use of $SHLVL
- improved executions trace prompt

[ticket: X]
2013-06-21 00:47:05 -05:00
..
init.zsh Improved the prompt 2013-06-21 00:47:05 -05:00
README.md [Fix #103] Add documentation for editor 2013-05-18 17:05:44 -04:00

Editor

Sets key bindings.

Settings

Key bindings

To enable key bindings, add the following to zpreztorc, and replace 'map' with 'emacs' or 'vi'.

zstyle ':prezto:module:editor' keymap 'map'

Dot Expansion

To enable the auto conversion of .... to ../.., add the following to zpreztorc.

zstyle ':prezto:module:editor' dot-expansion 'yes'

Theming

To indicate when the editor is in the primary keymap (emacs or viins), add the following to your theme_prompt_setup function.

zstyle ':prezto:module:editor:info:keymap:primary' format '>>>'

To indicate when the editor is in the primary keymap (emacs or viins) insert mode, add the following to your theme_prompt_setup function.

zstyle ':prezto:module:editor:info:keymap:primary:insert' format 'I'

To indicate when the editor is in the primary keymap (emacs or viins) overwrite mode, add the following to your theme_prompt_setup function.

zstyle ':prezto:module:editor:info:keymap:primary:overwrite' format 'O'

To indicate when the editor is in the alternate keymap (vicmd), add the following to your theme_prompt_setup function.

zstyle ':prezto:module:editor:info:keymap:alternate' format '<<<'

To indicate when the editor is completing, add the following to your theme_prompt_setup function.

zstyle ':prezto:module:editor:info:completing' format '...'

Then add $editor_info[context], where context is keymap, insert, or overwrite, to $PROMPT or $RPROMPT and call editor-info in the prompt_name_preexec hook function.

Authors

The authors of this module should be contacted via the issue tracker.