From 18a9aa58cd0d2d4d8cdc0f1f3aa7a62fe0d8a9be Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Sat, 10 Mar 2018 10:57:32 -0600 Subject: [PATCH] Add binding for MSFT/WSL paste escape sequence --- share/functions/fish_default_key_bindings.fish | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/share/functions/fish_default_key_bindings.fish b/share/functions/fish_default_key_bindings.fish index b30219daa..7c587cfb5 100644 --- a/share/functions/fish_default_key_bindings.fish +++ b/share/functions/fish_default_key_bindings.fish @@ -93,5 +93,9 @@ function fish_default_key_bindings -d "Default (Emacs-like) key bindings for fis bind $argv \e\[8~ end-of-line bind $argv \eOc forward-word bind $argv \eOd backward-word + case 'xterm-256color' + # Microsoft's conemu uses xterm-256color plus + # the following to tell a console to paste: + bind $argv \e\x20ep fish_clipboard_paste end end