Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Allow both explorer and Run on conflict

 
Post new topic   Reply to topic    Total Commander Forum Index -> TC suggestions (English) Printable version
View previous topic :: View next topic  
Author Message
Octagon
Junior Member
Junior Member


Joined: 09 Jun 2010
Posts: 42

PostPosted: Wed Mar 21, 2012 6:51 am    Post subject: Allow both explorer and Run on conflict Reply with quote

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.
Back to top
View user's profile Send private message
Hacker
Moderator
Moderator


Joined: 06 Feb 2003
Posts: 9133
Location: Bratislava, Slovakia

PostPosted: Wed Mar 21, 2012 4:46 pm    Post subject: Reply with quote

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. Wink

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.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Octagon
Junior Member
Junior Member


Joined: 09 Jun 2010
Posts: 42

PostPosted: Sun Mar 25, 2012 5:53 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> TC suggestions (English) All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group