Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
State of the ZLE region across new prompts
- X-seq: zsh-workers 38834
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: State of the ZLE region across new prompts
- Date: Mon, 11 Jul 2016 21:28:14 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:to:subject:mime-version; bh=XbVdXkBwJy5YQduyEc9/QtdkdoT4lbrq2g4Qm5vvGjE=; b=F+7kLKfNusFaGIHaDBbAfGLYSt16bJiN2McXP03seOqKjyXV2Cn6SqpA5oloxxK0vS eiiA3zp8CCDLg8fWj3H7xydnvhWaQxYP3dbMup8g0z3HiOhIGf6xyYejuqqJUzhZtAid lBJI6OHVOgW1mtMv6vkSmNNg1Ifss1iKIzHZo+idwN1JEXzrHRyhNN2QHpzuDhD5RZB3 ccvNw+WYKEy0QSDG/ioaCPvH/GnPm0eVvqsNlj7i5m8WJmcmOMYudGS1XYq+f7ZxNGub jdJaVhKqLkw8VPMnpE++3rXwnbq6jKw2gSyjdntqjYhR8drMAAexblkY3cFcOd3Hx+vu +JPA==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Consider:
zle-line-finish() { CURSOR=0 MARK=$#BUFFER REGION_ACTIVE=1 }
zle -N zle-line-finish
The idea here, such as it is, is to highlight the entire buffer before
it is executed. (I was doing this to test something unrelated.)
With this in place, run a command, then when ZLE resumes at the next
prompt, start recalling commands with up-line-or-history. Note that
they are highlighted. I'm not entirely sure but I believe this means
the region is still active, not just that highlighting is confused.
Is REGION_ACTIVE intended to persist in this way?
Aside: The documentation for the zle_highlight "region" context
discusses "calling set-mark-command with a negative numeric argument"
and "exchange-point-and-mark with a zero numeric argument" but does
not mention deactivate-region or assignments to REGION_ACTIVE.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author