Describe the bug
autoload -Uz select-word-style && select-word-style bash
This setting makes word-unit shortcuts such as Alt-f (move forward one word) act like this
|some-command --some-flag
some|-command --some-flag
some-command| --some-flag
some-command --some|-flag
some-command --some-flag|
With following initialization order, both work great.
autoload -Uz select-word-style && select-word-style bash
zinit light zdharma-continuum/fast-syntax-highlighting
But with following order, select-word-style doesn't work anymore.
zinit light zdharma-continuum/fast-syntax-highlighting
autoload -Uz select-word-style && select-word-style bash
(Consecutive Alt-f)
|some-command --some-flag
some-command |--some-flag
some-command --some-flag|
Steps to reproduce
- Include the following two lines of configuration in this order in
.zshrc
zinit light zdharma-continuum/fast-syntax-highlighting
autoload -Uz select-word-style && select-word-style bash
- Restart zsh
- Write some command (e.g.
some-command --some-flag)
- Move the cursor to the start of the line
- Press Alt-f
Expected behavior
The cursor should move like this
|some-command --some-flag
some|-command --some-flag
some-command| --some-flag
some-command --some|-flag
some-command --some-flag|
Screenshots and recordings
No response
Operating System & Version
linux-gnu | ubuntu | x86_64 | x86_64 | x86_64 unknown
Zsh version
zsh 5.9 (x86_64-ubuntu-linux-gnu)
Terminal emulator
xterm-256color
If using WSL on Windows, which version of WSL
None
Additional context
No response
Describe the bug
autoload -Uz select-word-style && select-word-style bashThis setting makes word-unit shortcuts such as
Alt-f(move forward one word) act like thisWith following initialization order, both work great.
autoload -Uz select-word-style && select-word-style bash zinit light zdharma-continuum/fast-syntax-highlightingBut with following order, select-word-style doesn't work anymore.
zinit light zdharma-continuum/fast-syntax-highlighting autoload -Uz select-word-style && select-word-style bash(Consecutive
Alt-f)Steps to reproduce
.zshrczinit light zdharma-continuum/fast-syntax-highlighting autoload -Uz select-word-style && select-word-style bashsome-command --some-flag)Expected behavior
The cursor should move like this
Screenshots and recordings
No response
Operating System & Version
linux-gnu | ubuntu | x86_64 | x86_64 | x86_64 unknown
Zsh version
zsh 5.9 (x86_64-ubuntu-linux-gnu)
Terminal emulator
xterm-256color
If using WSL on Windows, which version of WSL
None
Additional context
No response