Pretty much anything is possible depending on how much time you want to spend scripting it, but just putting them in a in a sorted list is pretty quick if that will do, eg
Code: Select all
$keys = "F6|F9|Ctrl+F3|Shift+F12|F12";
$cmds = regexmatches(<get listofcommands 2>, "^.+\t(" . replace($keys, "+", "\+") . ")$", <crlf>);
inputselect(, formatlist(regexreplace($cmds, "^.+\|(.+?)\t(.+?)$", "$2<tab 2>$1"), n, <crlf>), <crlf>, 0);
As for why F12 isn't in your output, I can only imagine maybe it isn't set in your config, or you have set it wrong in the script because it works fine using the above script.