From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: edit-command-line, vim, and pasting
Date: Thu, 5 Nov 2015 09:22:43 -0800 [thread overview]
Message-ID: <151105092243.ZM21495@torch.brasslantern.com> (raw)
In-Reply-To: <29492.1446721743@thecus.kiddle.eu>
On Nov 5, 12:09pm, Oliver Kiddle wrote:
}
} I'm not quite sure why stdin (but not stdout/stderr) is closed for zle
} widgets but we could generate sequences only for commands executed with
} the tty opened on fd 0. However, it is easier to just handle the case
} specifically in edit-command-line.
OK. Somewhere (perhaps both in description of the zle_bracketed_paste
variable and in the section on user-defined widgets?) the doc should
note the need to do this end/start thing when running an external
command.
Or maybe as you mentioned there should be a built-in way to do it
safely -- "zle -X command [args]" which does the "exec < /dev/tty"
and wraps the command in the bracketed-paste sequences and possibly
also does an implicit "zle -I"?
prev parent reply other threads:[~2015-11-05 17:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAPZ477Oz5BCB797hpE5SO+X9f_Sz8BXX49nUZ9jPERgVGcXHzw@mail.gmail.com>
[not found] ` <151101103921.ZM16163@torch.brasslantern.com>
[not found] ` <18028.1446462993@thecus.kiddle.eu>
2015-11-03 17:31 ` Bart Schaefer
2015-11-05 11:09 ` Oliver Kiddle
2015-11-05 17:22 ` Bart Schaefer [this message]
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=151105092243.ZM21495@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-workers@zsh.org \
/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).