Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
(temporary) disable bracketed_paste
- X-seq: zsh-users 22684
- From: Piotr Karbowski <jabberuser@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: (temporary) disable bracketed_paste
- Date: Fri, 5 May 2017 19:55:14 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=1Wn2moKg5oEdQeyLZ9uY6RDz0T69iEoavMU/eU6sXMo=; b=R6KiZkC9oldzXWngVZ+LSCqsjQa5pfjxhJFtR2JN5//98gRkOc+UWN1fGP6hHiQ8sr kU7Zru+6Y0l9YCtzRAcD2a3rgLCr44QxteTlJ+6YMT2ZMBl5Wk1GMGLJIBEArlLJP46g yhZSt8Cf/pIAGNcvpbUSbldlVcAtLWRWXJpoIJlGG8nSgo2ffnfbhbrHuwD7wKeeqrPY 2zAnoFf9eOKNo73rlaj/qbFxtMfL53v6OmQxPss0+KPlSbMSkXBbuw/nKIm00q5ZChZz LYoQD3+b+lyyGJ0W8RUvEfN3/bci6igbIO66OVc2J8hbK9OsRQnWzD8YU0H70hqh5ZDA Htpw==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Hi,
I'd like to know how to temporary disable zle_bracketed_paste. Best
would be if I could disable it for a moment, and restore afterward. I
have hooked fzy into hotkey via zle, which I use often, however, when I
spawn fzy via zle, and paste with middle click, with 'foo' I am getting
'[200~foo[201' instead.
I tried to `unset zle_bracketed_paste` but it does work only on the root
of .zshrc, if I wrap it within function, it does not do a thing.
Here's my fzy thing
# Insert path selected with fzy into command line on ^F press.
_select_path_with_fzy() {
local selected_path
if ! command -v fzy >/dev/null 2>&1; then
echo 'No fzy binary found in $PATH.'
return 1
fi
echo
selected_path="$(find -L . | cut -c 3- | fzy)"
if [ "${selected_path}" ]; then
LBUFFER+="${(q)selected_path}"
fi
zle reset-prompt
}
zle -N _select_path_with_fzy
bindkey "^F" _select_path_with_fzy
-- Piotr.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author