Many people like their own shortcuts additionally some of the default ones are not very convenient e.g. shift+insert. Ability to set own shortcuts would greatly enhance mintty usage. Moreover it is common functionality of most applications.
This is available already. See option KeyFunctions.
I have opened Options->Keys and can not see this option. I have also searched in other Options submenu and didn't find it. I'm using latest mintty from cygwin.
It's not in the Options dialog. You'll have to edit the config file manually.
I have searched these locations: /etc/minttyrc, $APPDATA/mintty/config, ~/.config/mintty/config, ~/.minttyrc and didn't find any exemplary config file there. I also tried to grep internet, mintty wiki and manual page but with no result. Can you provide such file?
Once you click Save from the Options dialog, a config file should be written. The default location would be ~/.minttyrc unless you were running wsltty, in which case please also look at "$LOCALAPPDATA/wsltty/config".
An example entry could be:
KeyFunctions=S+Insert:"insert";
Note: Insert refers to the Insert key on the small "editing keypad", not the one below the numeric keypad.
So I wanted to set control+shift+v for insert and control+shift+c for copy. I tried following combinations:
KeyFunctions=C+S+v:"insert"
KeyFunctions=C+S+c:"copy"
KeyFunctions=C+V:"insert"
KeyFunctions=C+S+V:"insert"
but they didn't work. Is it possible to set such shortcuts?
v:"insert".+ after them: CS+v:"insert".v:paste.So the configuration above could be achieved like
KeyFunctions=v:paste;\
c:copy;
Thx, mintty is good tool but documentation could be improved. One big file with all the options as for example would be sufficient in many cases.
That file is called the manual page and it's available online at http://mintty.github.io/mintty.1.html or interactively (from cygwin) via man mintty.
I guess there is some potential on improving about KeyFunctions. Please check out first.
As I said I was searching through manual but I haven't found relevant info. Probably adding some keywords like shortcut or shortkey in right places could help because this is what I was searching for.
There is a section "Keyboard shortcuts" and a subsection "User-defined shortcuts" in the introductory Usage chapter of the manual.
With 3.4.0, conditions 2. and 3. above are dropped, so the specification can now also look like:
KeyFunctions=C+S+v:paste;C+S+c:copy
Most helpful comment
As I said I was searching through manual but I haven't found relevant info. Probably adding some keywords like shortcut or shortkey in right places could help because this is what I was searching for.