Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: CLI Tricks



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