Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: visual line movement
- X-seq: zsh-users 23537
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: visual line movement
- Date: Fri, 27 Jul 2018 09:13:39 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=2tzaJL lTQhE7qmsE1/CA3RoUoriudDZUvn4FHQnW7XY=; b=DAGY3gajnVMrhKJ9KxAfGb hv60weZQMD0nTrulfEwtWbgkldk4GtUzxx8agQ4ma18FY3kEjFKegZ5j/TtfyjDS PN/6OTGjiqnPP+E3yzn00cp+CQVj4c2dwcvQfsOLp9Q4mWvG1Mkw195s+Q8mLBux lAkD48c2A6zpe+VtzBgBRHRNFOsi/0HiRqg+86HafJa5HaQxSLT+EDrcU13OncPk wxjCvow2/twCGeevmy4YihIyYFrlQLcxiBo4ix3p2KUJ3QQHwBhUZwnFq5K09qvL YIcSG4frPYMbknxtQXPfeFtKI9gEr5TaJMRUMD2/88lujc2b0tSLs+xi/zD4tDaA ==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=2tzaJL lTQhE7qmsE1/CA3RoUoriudDZUvn4FHQnW7XY=; b=JYa/kRtchYERh1n07yS8JH 1LFd92Hvl+Xizuaf9TwaMDqX9OJKezmtlHCTATL8+Rf3qqYhwjhNxYtS/C4TO1u6 ZDmiaJHlWAniwGxxhdUcG0JgmmFlpGHnUlASiHQD8PMT8OJwphGbN7d4eBqcX/bR 49yMzl0c0c+IAaMQNCU+eIvTLxRQdnQ0XGb3ku3r7aMkIsJSbtpQw29wTWmqc3HD OByUBM9XzSiUtLrJxVdpHBnBUx/V8HwiSAwRTMKtgR5HcmU5O+tsrVsL9sS+IM8p YkD3AYls+7xmnCMCGp/zUDbfGB/jpSCfFk1vCDeCSrTkL6CNRbf7rYHd5324b1GQ ==
- In-reply-to: <20180727083055eucas1p1b72703c6692ec61cc8dbcacbd6fe4539~FLJJMeOrA3177531775eucas1p1Z@eucas1p1.samsung.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CGME20180727072228epcas5p35fc9a81df04715c148d0b7a9cf582efd@epcas5p3.samsung.com> <1532675437.2645470.1454547640.6843860B@webmail.messagingengine.com> <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@xxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author