awaescher / RepoZ

👨‍💻 A zero-conf git repository hub for Windows and macOS with Windows Explorer- & CLI-enhancements
MIT License
1.01k stars 93 forks source link

Exe find #147

Closed CClouseau closed 3 years ago

CClouseau commented 3 years ago

Hi @awaescher ,

It's been a while since I started thinking of a way to efficiently find executable paths... First I started a bit of rework of the exe search to add new applications more easily (Git Bash I remember). I didn't find any reliable solution to search executables in "exotic" directories, so I ended up allowing to do it... in the configuration file !! Sorry master, to go against your will of a zero config app !! ;)

So , it goes like this : { "AutoFetchMode": 0, "PruneOnFetch": true, "ExePaths": [{ "ApplicationName": "SourceTree", "ApplicationFullPath": "C:\Users\######_01.001\AppData\Local\SourceTree\SourceTree.exe" }, { "ApplicationName": "GitBash", "ApplicationFullPath": "" }, { "ApplicationName": "WindowsTerminal", "ApplicationFullPath": "" }, { "ApplicationName": "VSCode", "ApplicationFullPath": "" } ] }

=> if no path is provided the good ol' search does the job.

CClouseau commented 3 years ago

@awaescher Hi again, I tried to pull the rework you did on "remotes" on my ExeFind branch: I had an issue calling ReadAllBranches because then, I had only remote branches in my checkout list. That's why I have deleted my latest commits.

awaescher commented 3 years ago

If I got this right, this pull request is not required anymore as we are merging #114. Please feel free to reopen if I was wrong.

Thank you