Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: visual line movement
- X-seq: zsh-users 23536
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: <zsh-users@xxxxxxx>
- Subject: Re: visual line movement
- Date: Fri, 27 Jul 2018 09:30:53 +0100
- Cms-type: 201P
- Dkim-filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180727083056euoutp01664e637a7515759e8a6312bb19882e61~FLJKgskur1852418524euoutp01C
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1532680256; bh=ztg+rgw6ZyL/3eTBHWA9OFv7ULASBANf+sfaxdmMzIM=; h=Date:From:To:Subject:In-Reply-To:References:From; b=l4FUi8tL09yrH04pc0nNvpRBDQD0oCziy8YIK767gGNqchSo3e/kO/HoVgm0vxB0M 3hUFtHGy/mVZdv82obzQgICuHVxK1fV3EEo24bg2mDzFLme1PuTJKRL9thEb64tMHy 8I6lB6Gbf/zI+6Xd/EG203mr7C3/30abwBpiUtGw=
- In-reply-to: <1532675437.2645470.1454547640.6843860B@webmail.messagingengine.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
- Organization: SCSC
- References: <CGME20180727072228epcas5p35fc9a81df04715c148d0b7a9cf582efd@epcas5p3.samsung.com> <1532675437.2645470.1454547640.6843860B@webmail.messagingengine.com>
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.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author