Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Extending zed
- X-seq: zsh-users 23439
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- Subject: Re: Extending zed
- Date: Tue, 5 Jun 2018 16:40:31 +0200
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=GQYIxbxifCDfUIBj01rhqgcyQJcjDmztfqtNUXKQWHg=; b=IyxdmnZbycaQfc5IuPQJmxoMazx5M228CnxhVu6zOnWY7CxFRtqT9xzw7H31IE/QiL /ROe5BpykUEAAVMJ6QktN4ZL8XzxCnTwPzsJ59xCAk1hx01KTzeN17fVKwCr/fTeJ/lL xAmr71TWqbZPjiclZBkPlV3xmvwkpC6Epg9BsZW2TPYplzszn65zZo++6UOvVaueZn24 vhifJVo7yx+YsLUbMHqGrs32GJgcu3oymVJqDRGaxs66CtO5Kdyerhpwd1TinP0M+dP3 n11cUWHUvBUiDQJek4ptk2fztEs/EO2DIyTiPji0zGNSfDzurXJ57hoB43aB7a4Jyu0N xVlw==
- In-reply-to: <7026.1528128511@thecus>
- 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: <CGME20180603055854epcas5p1e92f5a41384aeb9d1555751df74f57ee@epcas5p1.samsung.com> <CAKc7PVDas7ZvXA0CvR1opSH5Wz0d=FVj=NZHGSu2k3C_o=fGZQ@mail.gmail.com> <20180604083801eucas1p258b13dadf37a66e8a59e8714462d0577~06DN1ECXq0206402064eucas1p26@eucas1p2.samsung.com> <CAKc7PVCV3TCe4k-SyJOiD6aDA+uF5FRM_5Q45X9sLPOeCOunWA@mail.gmail.com> <20180604095044eucas1p2ae6dd78f9518e91e6171d15d3717f924~07CtDwS5C1968619686eucas1p2k@eucas1p2.samsung.com> <CAKc7PVB6JhtAQa+MUs0tm28211e4xJ4QRt-83=QYmuOczKwcOA@mail.gmail.com> <7026.1528128511@thecus>
On 4 June 2018 at 18:08, Oliver Kiddle <okiddle@xxxxxxxxxxx> wrote:
> -i vi-cmd-mode). I followed the naming of the __zed_pg_up widgets in
> naming this __zed_init but I'm not especially fond of this – it looks
> like a completion function.
It hurts me a little too. For my plugin functions, I use "-", i.e.
"-zed_pg_up", but didn't propose this as it is somewhat controversial
– requires to use "--" when handling the function, e.g. when passing
to `autoload -- -zed_pg_up`. But we might take the decision to use
that scheme. Also, completion handling code could use pattern
`[_][^_]`, I do it already in Zplugin. This is also a solution.
> Undoing individual characters at a time is not how undo works in vi or
> vim. You can bind a key to undo in viins and it'll do that. Otherwise,
> undo events are merged when you go into vi command mode allowing
> vi-compatible undo behaviour of undoing whole vi changes.
True, I do following to have fine-grained undo in vim:
inoremap <Space> <Space><C-g>u
inoremap <Tab> <Tab><C-g>u
inoremap <Return> <Return><C-g>u
Although not sure if vim is more end-user than vi, if so Zsh could follow vim.
> By the way, the change in 42929 to bind Home and End seems harmless
> enough given that PgUp/Down is already there. I'm not so sure about
> the use of zle -la to test for widgets existing (zle -N is silent and
> idempotent anyway).
I was using zle -la in Zplugin, z-sy-h used it, then both switched to
use $widgets. Still the argument about idempotent zle -N is valid.
--
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author