zsh-users
 help / color / mirror / code / Atom feed
From: Doron Behar <doron.behar@gmail.com>
To: zsh-users@zsh.org
Subject: ZLE Vi-mode: visual mode selection doesn't match the characters highlighted
Date: Sat, 12 Oct 2019 18:06:11 +0300	[thread overview]
Message-ID: <20191012150611.rwjwhbiqpvwla656@NUX> (raw)

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.

             reply	other threads:[~2019-10-12 15:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-12 15:06 Doron Behar [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191012150611.rwjwhbiqpvwla656@NUX \
    --to=doron.behar@gmail.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).