Hi Darek,
Thanks for trying, it's a very useful feedback.
Yep, currently NC tries to understand - should it run a tool in terminal or in UI environment, this choice is based on a bundle presence.
I'll add some sort of "starting options" later, just now I haven't figured out which ones are necessary.
Speaking of BeyondCompare - maybe using regular app path will work?
I've tried the following:
Code: Select all
{
"title": "Beyond Compare",
"path": "/Applications/Beyond Compare.app",
"parameters": "/solo %P %-P",
"shortcut": "^⌥d"
}
And it seems to work fine.
* Somehow my current folder always changes after launching external tool... seems like it's automatically set to the last folder I used in the underlying terminal.
Yep, it follows... Perhaps it will be right thing to separate "terminal for external tools" from "regular built-in terminal", like terminal-based external editors works now. Right now external tool starts in regular terminal, and this paths synchronization comes to play.
* For some reason this doesn't work `"shortcut": "^⌥D"` but this does `"shortcut": "^⇧D"`
My bug - Mac's UI extracts Shift modifier from upper-case hotkey letter, like "D", so "^⌥D" implicitly converts into "^⌥⇧D".
I'll write a fix soon, as temporary solution - using lower-case letter will work.
* Hot reload of config file works partially, but shortcuts changes don't always catch up and app restart is needed
Will check and fix.
* An option to limit total number of files would be cool. Here's the scenario: I want to highlight two files in one panel and diff them. So I'm using "parameters": "%P %-P", but I'm getting three arguments for that two selected in one panel and one from the opposite panel. Three arguments trigger three way merge mode, which is not what I want. The only way is to point to two files in two different panels, which isn't always convenient. On the other hand, I don't want to remove the %-P option, since sometimes I do want to diff two files from two different panels
Ha, that's interesting!
From my developer's point of view, adding some "global files output limiter", like "%2T", is a matter of an hour.
But here comes the next question - what about ordering?
Lets say parameters string is "%2T %P %-P", with two files selected on source panel and equally two files selected on target panel.
- should it order by position in parameters string, so result of "%2T %P %-P" and "%2T %-P %P" will differ?,
- OR should source/target be criterion here, so "%P" will produce two files regardless of position?
Surely, first variant is easier to implement.
Anyways, it's just a quick test. Hopefully my comments make sense
They are!