zsh-users
 help / color / mirror / code / Atom feed
* ZLE Vi-mode: visual mode selection doesn't match the characters highlighted
@ 2019-10-12 15:06 Doron Behar
  2019-10-13  8:02 ` Oliver Kiddle
  0 siblings, 1 reply; 5+ messages in thread
From: Doron Behar @ 2019-10-12 15:06 UTC (permalink / raw)
  To: zsh-users

Hey all,

I'm having a small inconvenience with the way characters are highlighted
in visual mode.

Say my $BUFFER has the following text, current $KEYMAP is "vicmd", and
the cursor is located where ^ is:

    ZSH is the best shell
                  ^

If I press `v`, and then `F<space>`, the cursor is located as expected
here:

    ZSH is the best shell
              ^
              -----            (selected characters)

Naturally, the selection now includes all characters from `t` to the
space (inclusive), as marked with the hyphens.

The problem is, that only the 3 characters ("bes") are highlighted so
it's not clear what characters exactly are selected.

In comparison, when moving _forward_ in visual mode, the characters
highlighted include all letters selected.

This behaviour is not like in Vim (with it's default settings) and is
confusing IMO. My expectation is that every character selected will be
highlighted, no matter whether the cursor is at the start or the end of
the selection.

Is there a way to tweak this behavior?

Doron.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-10-17 15:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-12 15:06 ZLE Vi-mode: visual mode selection doesn't match the characters highlighted Doron Behar
2019-10-13  8:02 ` Oliver Kiddle
     [not found]   ` <20191013110016.pdkjrobevpxkqx6e@NUX>
     [not found]     ` <68873-1571254670.273502@yOop.8xvF.viEb>
2019-10-17 10:51       ` Doron Behar
2019-10-17 15:23         ` Oliver Kiddle
2019-10-17 12:07       ` Doron Behar

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).