Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Modify Zsh Configuration to Make M-backspace Remove Last Path Component
- X-seq: zsh-users 22455
- From: Markus Zeindl <su_ld@xxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Modify Zsh Configuration to Make M-backspace Remove Last Path Component
- Date: Sun, 12 Feb 2017 10:32:17 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h= content-transfer-encoding:content-type:content-type:mime-version :references:in-reply-to:message-id:subject:subject:from:from :date:date:received; s=mail20150812; t=1486891939; bh=UBnoGM5TRy XdYS4lV4eJW9Loii16QFzkqGqWQrBybaE=; b=kj2jinnUGk70N1+RV2smotOxw4 YUQl8FwxxgGJxKVVF5qEY9MP9WUXUpKmvwNWyL4dZTuVYiwV6W7yRWbfAD0E2Rzw 3VcRRQRUE7IGH63lSywP6kr3XH90nN9Zt10KqvoFM+Z07e5jseVKOg7Qedqt27Gz wIPtI0UUCG9THiJWx7ybupVy1Wnvh4RnJk6CeZhDmL9yyjF4wrvok6xTlxtEN2hG NbFYaLHZZnqFF7Y9t7TJH2Ay7zb3ieLrPlvrgkG46EPDl0204Gj32pYDnjNonNkx FAFV5rPIq3NeMegnjRvJSnAaANaJjrnKQfwiNVBRSnE2eJOEBksAZaNLMKMg==
- In-reply-to: <20170211214909.GA34769@tower.spodhuis.org>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20170211162624.457f5cbe@priamos.m9net.local> <CADweS+YA+VjDmFkYJm1+-pk55BZOJd6G=+ODHyKWnfQTgNpRZw@mail.gmail.com> <20170211214909.GA34769@tower.spodhuis.org>
Hi Phil,
that sounds nice, too!
Thanks,
Markus
Am Sat, 11 Feb 2017 21:49:09 +0000
schrieb Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx>:
> On 2017-02-11 at 17:01 +0100, Julien Jehannet wrote:
> > You can change the WORDCHARS setting by removing slash character:
> >
> > WORDCHARS=${WORDCHARS:s@/@}
>
> In addition to this, I find that I like ^W to keep the normal
> behaviour, but M-backspace to be different, so I do this:
>
> function backward-kill-partial-word {
> local WORDCHARS="${WORDCHARS//[\/.]/}"
> zle backward-kill-word "$@"
> }
> zle -N backward-kill-partial-word
> for x in '^Xw' '^[^?' '^[^H'; do
> bindkey "$x" backward-kill-partial-word
> done; unset x
>
> -Phil
Messages sorted by:
Reverse Date,
Date,
Thread,
Author