Page 1 of 1

Allow both explorer and Run on conflict

Posted: 2012-03-21, 12:51 UTC
by Octagon
I have a git.bat file on Path and a "git" folder located outside of the gitted tree. Thus, I just press "g"-"i"-"t"-Enter in TC and get my Git. When I erroneously typed git in the folder that contains the "git" folder, I have got the git folder opened in Explorer. This is an interesting corner case of a folder matching a command.

I guess it is necessary to allow to do both - open the Explorer or run the command. It is sufficient to open Explorer when there is the automatically added by TC "\" at the end of the command and run the command when the user have deleted the "\", but possibly there is some better way.

Posted: 2012-03-21, 22:46 UTC
by Hacker
Hello Octagon,
Well, this is what Windows does, TC just asks Windows tu run "git" and based on the current dir, some registry settings and environmental variables, different things might / will happen. Just try typing "fonts" and pressing Enter. ;)

Roman

Posted: 2012-03-25, 11:53 UTC
by Octagon
That is, if I see that TC appends "\" to the end of the command, I would better replace it with some executable suffix. This is a good enough way out, and yet another usage for the TC command line autocompletion