Allow both explorer and Run on conflict

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Octagon
Junior Member
Junior Member
Posts: 44
Joined: 2010-06-09, 20:05 UTC

Allow both explorer and Run on conflict

Post 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.
User avatar
Hacker
Moderator
Moderator
Posts: 13144
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post 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
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Octagon
Junior Member
Junior Member
Posts: 44
Joined: 2010-06-09, 20:05 UTC

Post 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
Post Reply