magicstep / ViATc-English

Vim mode at Total Commander. More keyboard shortcuts for the file manager.
29 stars 10 forks source link

Failed to map custom commands in usercmd.ini (or is this feature not yet implemented?) #14

Closed Fuann-Kinoko closed 1 year ago

Fuann-Kinoko commented 2 years ago

First of all, thanks for your work, this script really made me pick up total commander again.

When I try to add commands from usercmd.ini for hotkeys, I keep getting mapping failed and the command is missing a < symbol

Actually, most of the time the original commands are enough, but sometimes I want to add some fancy commands as well.

magicstep commented 2 years ago

Sorry for late reply. I see you start command with em may I know why? Try cm if em has no reason On line 4688 the script is looking for cm and replaces it with < actiontxt := Regexreplace(actiontxt,"^cm_","<") . ">"

2022-10-22 20_16_05-ViATc-0 5 5en ahk (c__Progs_ViATc) - GVIM

I think I could modify this line so it would replace any of those two patterns like this line: actiontxt := Regexreplace(actiontxt,"^(em_|cm_)","<") . ">"

or I could put a dot which means any letter not just c or e actiontxt := Regexreplace(actiontxt,"^.m_","<") . ">"

magicstep commented 2 years ago

Another question, did you change your font in Windows from Normal to Big? I am surprised that the words don't fit in their places. This is how it should look like: 2022-10-22 21_04_23-Settings   VIATC 0 5 5 4