From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7133 invoked by alias); 5 Jun 2018 14:40:56 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 23439 Received: (qmail 21452 invoked by uid 1010); 5 Jun 2018 14:40:56 -0000 X-Qmail-Scanner-Diagnostics: from mail-oi0-f48.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.218.48):SA:0(-2.7/5.0):. Processed in 1.304224 secs); 05 Jun 2018 14:40:56 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_PASS,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: sgniazdowski@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=GQYIxbxifCDfUIBj01rhqgcyQJcjDmztfqtNUXKQWHg=; b=iBWaH5erPR+4kdFIEzYx0GEyC6HzN/X/92JH8QRM0oE3/oqc7sIBtoPesRjKvSzxsP 1E0eiis3Tvx2B1RELNdzOvMaqh5RHTW6Ws9aU1/Z8xRK87bt5h2rVEkUoeK81YGIgWqr 2e6LjEP9FGOEdZeH4hH/2rOjM5yIn0Zzu6tT9IoXWfP1CfehDiC/VoAaKpqiCHZ8AxGE S6MixhQDCO5Pg1yaoiB6cU2HADbADkBCBNZqZdHDrL3/brH14RCHDE4YHnRwDyC6FMgx sSJ6FpHg9dr3l58NYSMuPJRzrs1LWyUl3j41TEP7yRquORLFLdY8r3ZTa5fYVPjx2Pi+ PUcA== X-Gm-Message-State: ALKqPwcfrLcLH/sf96hTTtMiWcBQUi8bPX0uhqIred+SLvyQO2W/sjMM GKHnmdfVM8OsNDyY6sV8K/BrVwkiW9RlmV/6skE= X-Google-Smtp-Source: ADUXVKKxXXg9ROLL77foVd3Sw1MEQ4oiZDOi+VYNVDxuIkyyQI5WcLEzuMeOUU0otjtu8fl1LgL80AIj8vR+OdDXPNo= X-Received: by 2002:aca:3ec3:: with SMTP id l186-v6mr14648773oia.231.1528209652189; Tue, 05 Jun 2018 07:40:52 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <7026.1528128511@thecus> References: <20180604083801eucas1p258b13dadf37a66e8a59e8714462d0577~06DN1ECXq0206402064eucas1p26@eucas1p2.samsung.com> <20180604095044eucas1p2ae6dd78f9518e91e6171d15d3717f924~07CtDwS5C1968619686eucas1p2k@eucas1p2.samsung.com> <7026.1528128511@thecus> From: Sebastian Gniazdowski Date: Tue, 5 Jun 2018 16:40:31 +0200 Message-ID: Subject: Re: Extending zed To: Oliver Kiddle Cc: Zsh Users Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On 4 June 2018 at 18:08, Oliver Kiddle 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 =E2=80=93 it l= ooks > 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 =E2=80=93 requires to use "--" when handling the function, e.g. when passin= g 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 u inoremap u inoremap u Although not sure if vim is more end-user than vi, if so Zsh could follow v= im. > 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. --=20 Best regards, Sebastian Gniazdowski