Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] add new features and improvements to the "incarg" ZLE widget
- X-seq: zsh-workers 52522
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Cc: midchildan <git@xxxxxxxxxxxxxx>
- Subject: Re: [PATCH] add new features and improvements to the "incarg" ZLE widget
- Date: Sun, 4 Feb 2024 16:36:55 -0800
- Archived-at: <https://zsh.org/workers/52522>
- In-reply-to: <20240204191938.42759-1-git@midchildan.org>
- List-id: <zsh-workers.zsh.org>
- References: <20240204191938.42759-1-git@midchildan.org>
On Sun, Feb 4, 2024 at 11:37 AM midchildan <git@xxxxxxxxxxxxxx> wrote:
>
> This brings numerous improvements to the incarg ZLE widget
Thanks for sending. Remarks below, all minor.
> Vim's increment command jumps to the nearest integer after the cursor
> and increments it. I find this behavior very useful when combined with
> history-beginning-search-backward. So I made it possible to get this
> behavior by prefixing vi to the widget name.
Here you say "vi" and in the doc specifically "vim" but in fact any
prefix beginning with "vi" is accepted by the code, I think?
> + if [[ "$WIDGET" == vi* ]]; then
> + # jump to the nearest number after the cursor
Should probably be more precise.
> +++ b/Doc/Zsh/contrib.yo
> @@ -2620,12 +2620,30 @@ zle -N history-pattern-search-forward history-pattern-search)
> +By default, the target integer will be incremented by one. With a numberic
Typo: "numeric"
Thanks for including a test.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author