summaryrefslogtreecommitdiff
path: root/plugins/vi-mode
AgeCommit message (Collapse)Author
2022-01-07docs(vi-mode): fix link typo in readme (#10570)Sang-Yun Oh
2021-12-29feat(vi-mode): add `INSERT_MODE_INDICATOR` (#9732)bretello
Co-authored-by: bretello <bretello@distruzione.org>
2021-09-27docs(vi-mode): document `$KEYTIMEOUT` issue (#9588)Marc Cornellà
Closes #9588
2021-03-15fix(vi-mode): fix keymap indicator on zle-line-finish (#9620)CrispyConductor
* Update VI_KEYMAP on zle-line-finish. Fixes next prompt draw. * Also fix vi-mode prompt redraw in case previous prompt was canceled * Do not redraw fix prompt if VI_MODE_RESET_PROMPT_ON_MODE_CHANGE is unset * Use a local variable instead of global in function
2021-01-16fix(vi-mode): ignore `clip*` function errors in yank and put widgetsMarc Cornellà
Fixes #9605
2021-01-04fix(vi-mode)!: add back edit-command-line key binding as 'vv' (#9573)Marc Cornellà
BREAKING CHANGE: the key binding to open an editor to edit the command line has been moved from being `v` (press v once) to being `vv` (press v twice). Now, the action for `v` is the default `visual-mode`, as is in Vim. Fixes #9573
2021-01-04fix(vi-mode): hide cursor-change logic behind `VI_MODE_SET_CURSOR` settingMarc Cornellà
Fixes #9570
2021-01-04docs(vi-mode): revamp README and document settingsMarc Cornellà
2021-01-02refactor(vi-mode): remove duplicate bindkey logic and fix syntaxMarc Cornellà
2021-01-02fix(vi-mode): control cursor, restore and use visual mode and speed up mode ↵Robert Estelle
changes (#8004)
2019-05-19vi-mode: reset KEYMAP on accept-line (#7818)Marc Cornellà
Fixes #7797
2019-04-09vi-mode: remove TRAPWINCH from plugin (#7753)Roman Perepelitsa
* Remove TRAPWINCH; it's unrelated to vi-mode * Update prompt with ad hoc KEYMAP variable Fixes mode indicator when the terminal window is resized
2019-04-09vi-mode: add CTRL+S to search history forwardMarc Cornellà
Fixes #6999
2018-09-24vi-mode: disable displayed mode on startupMarc Cornellà
This change had the unintended consequence of overriding the functions to ensure that application mode was set to use $terminfo sequences, introduced in #6449. Fixes #7137
2018-08-31vi-mode: reset-prompt if zle is active (TRAPWINCH)Marc Cornellà
Fixes zle errors when resizing: TRAPWINCH:zle: widgets can only be called when ZLE is active
2018-08-29vi-mode show indicator on zle-line-init and SIGWINCH (#6449)Balint Gyapjas
2016-09-12Fix iTerm crash on window re-size (#5211)Trevor Rosen
2016-09-12Add ctrl-r, ctrl-a and ctrl-e support in vi-mode (#4994)Douglas Drumond
* Add ctrl-r support in vi-mode to perform backward search in history * Add ctrl-a support to move to bol in vi-mode * Add ctrl-e support to move to eol in vi-mode Signed-off-by: Douglas Drumond <douglas@cafelinear.com>
2015-11-29Merge pull request #4191 from apjanke/vi-mode-fix-smkxMarc Cornellà
vi-mode: fix smkx/rmkx by removing broken line-init/finish widgets
2015-11-18vi-mode: remove line-init/finish widgets that broken terminfo keybindingsAndrew Janke
The zle-line-init and zle-line-finish definitions here were broken with respect to smkx/rmkx because their "if" logic had fallthrough where it shouldn't, so the mode was left in rmkx all the time. This just removes those widgets entirely, because they're now defined (correctly) in lib/keybindings.zsh and not needed in plugins.
2015-09-23Update README.mdAlexander Frolov
2015-06-12Plugins: vi-mode: Add first README fileDaniel Campoverde [alx741]
2015-02-22Merge pull request #3610 from bderrly/zle-active-checkRobby Russell
Verify zle is active before trying to reset-prompt.
2015-02-21Shorten the zle check and reset-prompt into one line.Brian Derr
2015-02-19Verify zle is active before trying to reset-prompt.Brian Derr
2015-02-18PLUGINS: vi-mode: allow ctrl-h, ctrl-?, ctrl-w for char and word deletionDaniel Campoverde [alx741]
Allow ctrl-h, ctrl-?, ctrl-w after changes in normal mode.
2015-02-18PLUGINS: vi-mode: allow ctrl-p, ctrl-n for history navigationDaniel Campoverde [alx741]
Allow ctrl-p, ctrl-n for history navigation while in insert mode.
2015-02-04Added trapwinch to vi-mode plugin.Gabor Marton
2014-03-14Added v as a keybinding to edit-command-lineMichael Hauser-Raspe
taken from [here](http://www.zsh.org/mla/users/2008/msg01013.html) We want pressing v in command mode to take us to an editor (defined by the $VISUAL or $EDITOR variable or vi) to edit the current contents of the command line which (I believe) is a standard feature of bash vi-mode or other readline prompts (see [here](http://www.catonmat.net/download/bash-vi-editing-mode-cheat-sheet.pdf) and [here](http://www.catonmat.net/blog/bash-vi-editing-mode-cheat-sheet/) for source).
2013-01-02Fix the fix for Issue #1479Greg Berenfield
2013-01-02fix for Issue 1479Greg Berenfield
2012-12-04Merge pull request #1387 from jimhester/vi-mode-patchRobby Russell
Fixes for vi-mode terminal overwriting bugs
2012-11-28Revert "Fix to restore bindings after switching to vi-mode"Max Bane
This reverts commit b609aa0e6c981f2039d777687cb01a84587f6edc -- this commit was a bad idea, because it makes vi-mode very difficult to use. The default `bindkey` keybindings are NOT MEANT to coexist with `bindkey -v` Vi mode; that's why `bindkey -v` clears them in the first place! Restoring all of the default keybindings after enabling Vi mode, the way the reverted commit did, causes many collisions between those default keybindings that begin with ESC and the command-mode-initiating ESC of Vi mode. See Issue 1438 of robbyrussell/oh-my-zsh. If people have custom keybindings, they should create them in their ~/.zshrc AFTER enabling the vi-mode plugin and sourcing oh-my-zsh.sh. # Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # On branch master # Changes to be committed: # (use "git reset HEAD <file>..." to unstage) # # modified: plugins/vi-mode/vi-mode.plugin.zsh #
2012-11-02Fixes for vi-mode terminal overwriting bugsJim Hester
fixes #387 and https://github.com/robbyrussell/oh-my-zsh/pull/1321#issuecomment-9959540 and other problems of prompt overwriting when people did not realize that it was vi mode causing the problem. Hat tip to sorin ionescu, as I took this code from prezto
2012-09-20Fix to restore bindings after switching to vi-modeJim Hester
the vi-mode plugin destroys any bindings made before it is sourced due to the 'bindkey -v' call to switch to using vi-mode. This patch saves the bindings before invoking 'bindkey -v' then rebinds them afterwards, this fixes a number of outstanding issues due to people using vi-mode and having things in oh-my-zsh break due to the bindings being destroyed
2010-09-30Reorganizing plugins so that each plugin has it's own directory now so that ↵Robby Russell
any plugin-specific functions can be bundled within there.