Readit News logoReadit News
jskinner commented on Sublime Text Build 3211   sublimetext.com/3... · Posted by u/elktea
rsoto · 6 years ago
Hey Jon, thanks for such an amazing and honest product.
jskinner · 6 years ago
My pleasure, and thanks for the kind words!
jskinner commented on Sublime Text Build 3211   sublimetext.com/3... · Posted by u/elktea
slater · 6 years ago
"We've got some pretty exciting changes coming up quite soon"

Can you elaborate? :)

jskinner · 6 years ago
Not yet sorry! FWIW the best place for news is in the Discord channel: https://discord.gg/D43Pecu
jskinner commented on Sublime Text Build 3211   sublimetext.com/3... · Posted by u/elktea
jskinner · 6 years ago
There are only minor changes in this build: a few bug fixes, plus notarization support, which is required for macOS 10.15.

We've got some pretty exciting changes coming up quite soon, but this isn't it.

jskinner commented on Use mmap with care   sublimetext.com/blog/arti... · Posted by u/ingve
avar · 6 years ago
Is there a post where it's covered why Sublime Merge implements things like packfile reading on its own, rather than using git's own plumbing? E.g. in this case presumably keeping a "git cat-file --batch" would do the trick.

I contribute to git.git, and it would be interesting to know if there's inherent issues stopping you from doing that, or if it's implementation problems in some cases (e.g. missing plumbing commands or features). There's definitely interest from upstream in reviewing patches / helping if there's missing or inadequate plumbing.

You'd get upstream features for free as they come along. E.g. presumably you haven't implemented the new MIDX format, but that speeds up pack file access by a lot for some use-cases, and presumably the boring bits of low-level git operations aren't much of a selling point in and of themselves.

Aside from whether you'd use "git" itself, such a trick of using a slave process you'd talk to over IPC of some sort would cover some of the issues you wrote about, e.g. issue with sharing global state with libraries like Breakpad.

jskinner · 6 years ago
We do defer to Git for all write operations, but for reading, we do it ourselves partly for efficiency, and partly to get the right data.

In terms of getting the right data, one example is that we need to know the full set of non-ignored sub-directories in the working directory, so we can watch them for changes. It's easy enough to generate this ourselves as we calculate the status output, but I don't believe that git will emit it.

In terms of performance, we rely on being able to read objects efficiently. For example, to show a commit, we can't just use the output of "git diff", as we need the full file contents to be able to calculate syntax highlighting correctly. You could go a long way with "git cat-file --batch", but there are plenty of contexts where you can't practically batch requests, and process creation costs + the lack of caching across requests (which can be quite significantly due to the delta encoding of objects) would be quite significant.

jskinner commented on Show HN: Sublime Merge – A Git client from the makers of Sublime Text   sublimemerge.com... · Posted by u/jskinner
commanderjroc · 7 years ago
Hey Jon, Sublime Team.

Is there a way to make the "Staged Files" view appear at the top of the tool? Preferably above "Working Directory" ?

jskinner · 7 years ago
It's not configurable, but you can click on the "Working Directory" head to collapse all the files there, which will make seeing the Staged changes easier
jskinner commented on Show HN: Sublime Merge – A Git client from the makers of Sublime Text   sublimemerge.com... · Posted by u/jskinner
davidlartey · 7 years ago
Hello Jon, congratulations on Sublime Merge. ST has been my preferred editor for as long as I can remember.

I'm trying out Sublime Merge, but it seems my git hooks aren't been called. Am I the only one experiencing this? A feature or a bug?

jskinner · 7 years ago
Git hooks will be run, as all mutating actions go through git itself, however pre-commit hooks may not work as you expect with this setup. When you commit via Sublime Merge, it's doing a git commit -m "...", which works differently with git hooks than a plain git commit.
jskinner commented on Show HN: Sublime Merge – A Git client from the makers of Sublime Text   sublimemerge.com... · Posted by u/jskinner
jarek83 · 7 years ago
Whenever I try to do something I get an error: xcrun: error: invalid active developer path (some path here), missing xcrun at: some other path here
jskinner · 7 years ago
We use the system Git by default on Mac if it's installed, but it sounds like that's not working for you. If you set your git_binary preference to "bundled", we'll use the one that comes with Sublime Merge instead.
jskinner commented on Show HN: Sublime Merge – A Git client from the makers of Sublime Text   sublimemerge.com... · Posted by u/jskinner
chrisper · 7 years ago
I can't figure out how to configure SSH key or where to find a documentation for the settings file :(

EDIT: Ok I found out it just takes the SSH key from ~/.ssh

But now it complains about C:\\Program Files\\Sublime Merge \\ssh-askpass-sublime.exe missing.

jskinner · 7 years ago
Sorry about that - I missed a part in our Windows installer, and ssh-askpass-sublime.exe isn't being installed. This will be resolved in the next day or two, in the mean time the portable version has it - https://www.sublimemerge.com/download
jskinner commented on Show HN: Sublime Merge – A Git client from the makers of Sublime Text   sublimemerge.com... · Posted by u/jskinner
asfaltboy · 7 years ago
@jskinner can we run the 3-way merge tool from command line, i.e to set it as a `git mergetool` ?
jskinner · 7 years ago
It's not exposed via the command line right now
jskinner commented on Show HN: Sublime Merge – A Git client from the makers of Sublime Text   sublimemerge.com... · Posted by u/jskinner
benwills · 7 years ago
Straight to payment for me. Sublime Text is one of the few pieces of software I've just felt was done totally right at so many levels. Entirely happy to give you more of my money.
jskinner · 7 years ago
Thanks for your support!

u/jskinner

KarmaCake day1192April 4, 2008
About
https://www.sublimetext.com
View Original