5 ms·
On my version of zsh I was not able to do the following which is available on bash: http://unix.stackexchange.com/a/203075 http://unix.stackexchange.com/a/2030
by kovek 10y ago
On my version of zsh I was not able to do the following which is available on bash:
http://unix.stackexchange.com/a/203075 http://unix.stackexchange.com/a/203075
- oblio 10y agoWell, from what I see here: http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#Zle-Widgets http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#..., there's no predefined function for Emacs mode (I could only find the vi mode one: vi-find-next-char). On the other hand, if you look at the whole widgets section, I'm pretty sure you could hack it yourself since zsh supports used defined widgets (widgets are basically functions used by the zsh command editor). I never said that it's easy, just that zsh is basically a bash superset. However that does mean that in some occasions this means that you want a Prius and instead get a Ford Mustang kit that you have to assemble yourself :D
- opk 10y agoBinding the vi widget in emacs mode works: bindkey '^]' vi-find-next-char
- oblio 10y agoOh, it does? Cool. I didn't think that you could use a widget from one mode in another.
- JdeBP 10y agoOn both version 4.3.12 on Interix and version 5.2 on FreeBSD, "f" followed by a character works perfectly fine in "vi" mode and Control-X Control-F followed by a character, as per the zshzle manual, works perfectly fine in "emacs" mode. What were you doing wrong?