Simple goal:
Using GitBash for Windows, I would like to be able to paste my clipboard into gitbash Via CTRL+V.
Problem:
Every tutorial I can find says:
Right-click on the Git Bash icon and select Properties. Under the
Options tab, select QuickEdit Mode and click OK.
Restart Git Bash and try pasting again using the right-click menu or Ctrl+V.
In fact, this has some paste shortcuts (middle mouse; CTRL+SHIFT+INSERT. But I don't like those!
Obviously this doesn't work (I'm here).
What I've tried:
Poking around like a child with a stick in a puddle.
MINIGW 64 Git 2.39.2.windows.1: /z/py
Fri, 0323, 06:45 $ echo -e '"\C-v": paste' > ~/.inputrc
source ~/.inputrc
echo -e '"\e[1;5C": forward-word\n"\e[1;5D": backward-word' > ~/.inputrc
source ~/.inputrc
bash: \C-v:: No such file or directory
bash: $'\E[1;5C:': command not found
bash: $'\E[1;5D:': command not found
MINIGW 64 Git 2.39.2.windows.1: /z/py
Fri, 0323, 06:45 $ echo -e '"\e[1;5C": forward-word\n"\e[1;5D": backward-word' > ~/.inputrc
MINIGW 64 Git 2.39.2.windows.1: /z/py
Fri, 0323, 06:45 $ source ~/.inputrc
bash: $'\E[1;5C:': command not found
bash: $'\E[1;5D:': command not found
MINIGW 64 Git 2.39.2.windows.1: /z/py
Fri, 0323, 06:45 $ ^C
MINIGW 64 Git 2.39.2.windows.1: /z/py
Fri, 0323, 06:45 $ ^[[200~echo -e "\"\e[1;5C\": forward-word\n\"\e[1;5D\": backward-word" > ~/.inputrc
bash: $'\E[200~echo': command not found
MINIGW 64 Git 2.39.2.windows.1: /z/py
Fri, 0323, 06:45 $ echo -e "\"\e[1;5C\": forward-word\n\"\e[1;5D\": backward-word" > ~/.inputrc
MINIGW 64 Git 2.39.2.windows.1: /z/py
Fri, 0323, 06:45 $ source ~/.inputrc
bash: $'\E[1;5C:': command not found
bash: $'\E[1;5D:': command not found
MINIGW 64 Git 2.39.2.windows.1: /z/py
Fri, 0323, 06:45 $
AHK script (not working as a workaround):
;ahk v1
SingleInstance, Force
^+v:: ;Ctrl+Shift+V.
SendInput %Clipboard% ;Sends the clipboard at keystroke speed.
return ;Exits the hotkey.
It would probably be more effective in AHK to do something like assign MiddleMouse, which I think would require the keyboard hook, or to have ctrl+v send shift+insert if that really works, like this:
;ahk v1.
#SingleInstance, Force
^v::+{ins}
Poking around like a child with a stick in a puddle.
.. made my day. I don't think that this is an option but [Shift]+[Insert] is (old school keys for paste). Many of us left handed people still use this but it doesn't help you right handed people.Middle click
, for example. Thanks!ahk v1 ^+v:: SendInput %Clipboard% return