Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: CLI Tricks
- X-seq: zsh-users 6870
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: CLI Tricks
- Date: Fri, 12 Dec 2003 17:10:24 +0000
- In-reply-to: <200312121311.56353.hisham.lists@xxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <ge9jtvgbe5b8ht7motdbfq9ggsjmfsq50d@xxxxxxx> <20031212114809.GL2710@xxxxxx> <200312121311.56353.hisham.lists@xxxxxxxxxxxx>
On Dec 12, 1:11pm, Hisham Muhammad wrote:
}
} > You want the copy-prev-word function
}
} 'man zshzle' told me there's a copy-prev-shell-word which does the
} same but works with spaces. The manpage, however, says both are bound
} to the same key by default (a documentation bug?).
Yes, it's a doc bug; copy-prev-shell-word is a recent addition, and the
entry for it was created by cut+paste+edit of the copy-prev-word entry.
Index: Doc/Zsh/zle.yo
===================================================================
--- zle.yo 23 Sep 2003 15:27:14 -0000 1.9
+++ zle.yo 12 Dec 2003 17:07:53 -0000
@@ -1184,7 +1184,7 @@
Duplicate the word to the left of the cursor.
)
tindex(copy-prev-shell-word)
-item(tt(copy-prev-shell-word) (ESC-^_) (unbound) (unbound))(
+item(tt(copy-prev-shell-word))(
Like tt(copy-prev-word), but the word is found by using shell parsing,
whereas tt(copy-prev-word) looks for blanks. This makes a difference
when the word is quoted and contains spaces.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author