Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: backward-kill-shell-word widget
- X-seq: zsh-workers 37540
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- Subject: Re: backward-kill-shell-word widget
- Date: Sun, 10 Jan 2016 14:37:26 +0100
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=NjxPMNtkHddSf0MjPAJ+GsN9EMimXm2VncYPU6iGu6E=; b=J2nxrta87bNlzY99epDTcIWqyq5QW4WyV7O+8CL75Iql8CxZklvkY8/Sl+ROnqOd22 z00IDNS1Dj88WoVqSWZTVIxYxBIxVlUlvJrrc/jW7jduM3WJ8NoHx3qPdcHhn/+ghODL tTh/4fZrL6a6PmRbh6OfYO0lvteUoHZakk3mBzHI9dxRY6OiBXbV05eT1lM8jYQ4cjEe mDYc+UUnZ54og99xYuEvxJWOrd+91zWZC52VGlBRtQ/Y25J3AfcCtXETdTe8lCX8tUjx LQiy9jjDXU5g8qIAIXGA2uCx83Go3bX2g3c6VPOC/tSTykdbrBYPDo9bcuCgIiTQmgQq Bkzg==
- In-reply-to: <20160110003758.GA28696@tarsus.local2>
- 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
- References: <20160110003758.GA28696@tarsus.local2>
I see that you use (z) flag :) I think this is cool. I just was about
to decide to bind shell-worded transpose-words-match to Alt-r (have
transpose-segment bound to Alt-t) and noticed that I rather want to
keep select-word-style bash. I rather want Ctrl-W to delete normal
words. So with your function one can have:
- "Ctrl-W" / backward-kill-word to delete word with style of his choice
- transpose-words-match to swap words with style of his choice,
keeping in mind to position cursor at beginning of the words
- "Alt-m" / copy-prev-shell-word to copy shell word regardless of word style
- "Ctrl-T" / backward-kill-shell-word to delete shell word regardless
of word style
- "Alt-t" / my transpose-segment to swap shell words regardless of
word style (should I rename the widget to "transpose-shell-word",
looks like yes)
- "Alt-/" / _history-complete-older to complete shell words regardless
of word style
I think this goes into a nice workbench for quick manipulation of
command line, if one devotes time to establish order in that set of
loosely coupled functionalities.
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author