Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
bracketed paste
- X-seq: zsh-workers 35794
- From: Yuri D'Elia <wavexx@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: bracketed paste
- Date: Wed, 15 Jul 2015 18:51:17 +0200
- 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
Did the bracketedpaste widget made into 5.0.8?
The detailed release notes: http://zsh.sourceforge.net/releases.html are
missing, and I'm too lazy to diff ;)
In my current code, I decided to strip any blank from the string before
quoting and inserting into command line.
This has the effect of removing any leading/trailing newlines (or gobs
of whitespace, if you're pasting from a web page) without destroying the
content.
Also, I realized sometimes a final newline was tricking me into thinking
that the command was already enter-ed to the shell (but of course, it
wasn't). Stripping any final newlines is an improvement.
I'd like to do the same using the final widget if possible.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author