From: mmc@maruska.dyndns.org (Michal Maruška)
To: John Beppu <beppu@Ax9.org>
Cc: zsh-workers@sunsite.dk
Subject: Re: (backward-)kill-argument -- reformulation of the problem
Date: 13 Mar 2002 21:23:27 +0100 [thread overview]
Message-ID: <m2ofhsw728.fsf_-_@linux3.maruska.tin.it> (raw)
In-Reply-To: <20020313190956.GA24175@Ax9.org>
John Beppu <beppu@Ax9.org> writes:
> > i want to: * kill filenames w/ spaces: e.g. this\ is\ file.txt
> rm *[\ ]*
Hi John,
i feel very sorry, that i expressed myself very bad. My problem is
completely different from what i, unfortunately, described, and you answered.
I don't want to operate on my filesystem. I want to have a command in the ZLE
(Zsh' interactive line editor), which resembles backward-kill-word, but kills a whole
argument. So imagine, i write ( _ is the cursor position):
$ cat this\ is\ file.txt_
and now i want:
$ cat just\ another\ document.html
Currently i have to backward-kill-word 3 times (and write the new argument).
> > * maybe even the bracketed part: find { -name '*.h' }
Here i assume, that Zsh (in its completion system) "knows" that -name option of
find(1) takes 1 argument. So i could delete all this constraint.
In other words, from (and the cursor could be under the text "-name '*.h'")
$ find -name '*.h'_
i want to obtain
$ find
If i was writing it in lisp/scheme, i could be typing
$ (find (-name '*.h') ....)
and just delete the inner-most sexp.
TIA
next prev parent reply other threads:[~2002-03-13 20:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-13 16:42 (backward-)kill-argument Michal Maruška
2002-03-13 19:09 ` (backward-)kill-argument John Beppu
2002-03-13 20:23 ` Michal Maruška [this message]
2002-03-15 8:55 ` (backward-)kill-argument Sven Wischnowsky
2002-03-15 15:31 ` (backward-)kill-argument Bart Schaefer
2002-03-15 15:49 ` (backward-)kill-argument Bart Schaefer
2002-03-15 15:49 ` (backward-)kill-argument (1/2 thanks 1/2 problem re-statement) Michal Maruška
2002-03-15 16:39 ` Bart Schaefer
2002-03-18 8:41 ` Sven Wischnowsky
2002-03-18 8:36 ` (backward-)kill-argument Sven Wischnowsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2ofhsw728.fsf_-_@linux3.maruska.tin.it \
--to=mmc@maruska.dyndns.org \
--cc=beppu@Ax9.org \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).