zsh-users
 help / color / mirror / code / Atom feed
From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: zsh-users@zsh.org
Subject: Re: visual line movement
Date: Fri, 27 Jul 2018 09:13:39 +0000	[thread overview]
Message-ID: <1532682819.3174137.1454651168.4C7C76C4@webmail.messagingengine.com> (raw)
In-Reply-To: <20180727083055eucas1p1b72703c6692ec61cc8dbcacbd6fe4539~FLJJMeOrA3177531775eucas1p1Z@eucas1p1.samsung.com>

Peter Stephenson wrote on Fri, 27 Jul 2018 09:30 +0100:
> On Fri, 27 Jul 2018 03:10:37 -0400
> Anthony Heading <anthony@ajrh.net> wrote:
> > Is there a good way to make zle up-/down-line etc operate visually,
> > i.e. have the cursor position move across wrapped lines on the screen
> > rather than considering only embedded '\n's in the buffer?   I'm
> > guessing not, but would like to be sure.
> 
> Unless I'm missing something, it's not possible without adding a
> separate calculation of where the lines on screen will go.  The
> function that redraws the screen keeps its information separately from
> the body of ZLE and, although it does remember what it's put where,
> there's no mapping between the screen lines and the logical data to
> refer to.

A workaround is to use edit-command-line:

http://zsh.sourceforge.net/FAQ/zshfaq03.html#l45


  reply	other threads:[~2018-07-27  9:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20180727072228epcas5p35fc9a81df04715c148d0b7a9cf582efd@epcas5p3.samsung.com>
2018-07-27  7:10 ` Anthony Heading
2018-07-27  8:30   ` Peter Stephenson
2018-07-27  9:13     ` Daniel Shahaf [this message]
2018-07-27  9:53   ` Mikael Magnusson
2018-07-27 11:50     ` Anthony Heading
2018-07-27 12:48       ` Peter Stephenson

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=1532682819.3174137.1454651168.4C7C76C4@webmail.messagingengine.com \
    --to=d.s@daniel.shahaf.name \
    --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).