Live data from Hacker News

Show HN: Sublime Merge – A Git client from the makers of Sublime Text

sublimemerge.com

281–290 of 362 posts

Re: Show HN: Sublime Merge – A Git client from the makers of Sublime Text

#281

I was hopeful but for my simple uses, it doesn't work. I use gitg in a on Ubuntu VM, also known as "GitX" on Mac. The basic UI of gitg is much easier to read and browse, the commits and details are top/bottom instead of left right. With SM, I have to expand the window a whole lot more sideways to be able to read the commits. Also with SM my name is under each commit.. but since I work mostly solo, it's added noise th…

Further thoughts:

With gitg, I click on any commit and I can quickly see the files changed by that commit, then I can click to dive and see the actual code changes.

In SM by default there is a full spread of the modified lines. That's not as helpful since I have to scroll vertically , potentially a lot in order to see what other files were edited. There does not appear to be a "collapse all" by default option.

Though even in this collapsed view it's not very informative. In gitg there is a really simple red & green bar visual to see at aglance how much changes there are in each files. Thus when you epxlore a git repo, or review what you worked on weeks before;. it's easier to get a sense of how much things go into each commit.

With that said, it's a very slick client that obviously does a lot more than Gitg/gitx... I used SM today to edit an old commit message, which was simple to do.

The merge is probably awesome but I'm not sure how it works.. what if I mess up a rebase from the commaand line, will it let me continue the operation through SM or did I have to start the rebase / misc through SM first? (I ask because typically you had to configure the merge tool in the git config so I'm not sure how SM would catch that)

Re: Show HN: Sublime Merge – A Git client from the makers of Sublime Text

#282
I installed the binaries in linux and it didn't automatically find sublime_text. This should help if you're trying to use another editor too.

~/.config/sublime-merge/Packages/User/Preferences.sublime-settings

{ "editor_argument_format": "${file}:${line}:${col}", "editor_path": "/home//apps/bin/sublime_text" }

or if sublime_text is in your path.

    "editor_path": "sublime_text"

Re: Show HN: Sublime Merge – A Git client from the makers of Sublime Text

#284

Earlier quoted context omitted.

I built a prototype of it at one point, but was running into performance issues trying to get pixels onto the screen. I'd like to revisit this, as the hidpi experience really is a lot better with GTK3.

Wait... you use GTK on Linux? For what, exactly?

> Wait... you use GTK on Linux? For what, exactly?

SublimeText uses "Skia Graphics Library" to draw the entire user interface.

However, you still need to write Cocoa for macOS components and GTK for Linux.

Many cross-platform programs do the same, developers use a high-level library to render the overall interface, but underneath they are still using the native graphics libraries offered by the operating system where the program is running in, in this example, macOS and Linux. You can still do a lot with Skia alone, but eventually you'll find yourself writing some platform-specific custom code.

Re: Show HN: Sublime Merge – A Git client from the makers of Sublime Text

#285

Earlier quoted context omitted.

I built a prototype of it at one point, but was running into performance issues trying to get pixels onto the screen. I'd like to revisit this, as the hidpi experience really is a lot better with GTK3.

Wait... you use GTK on Linux? For what, exactly?

[deleted]

Re: Show HN: Sublime Merge – A Git client from the makers of Sublime Text

#286
post #2

Hi HN - Jon Skinner here, I made Sublime Text and Sublime Merge, alongside the rest of the Sublime HQ programming team - Will, Dylan and Benjamin. Let me know if you have any questions! Edit: there's also the announcement blog post, at https://www.sublimetext.com/blog/articles/sublime-merge

Is there any official channel for feedback?

I just opened this on my repo and there's 3 immediate things I noticed:

1. The commit message UI sprouts a subtle 72 column marker when I put text in it, which is nice. But what it's missing is the even more subtle 50 column marker that I expect for the first line. Standard git commit style says the first line should try to be shorter than 50 chars because it's frequently shown as a summary and you don't want it truncated. Other tools like GitUp and GitX handle this nicely.

2. The diff view doesn't seem to have syntax highlighting for .swift files. I see highlighting for Tcl and Obj-C so I can confirm it's highlighting in general, but nothing for Swift. This is a rather surprising omission.

3. I can't actually commit using this app at all, because it seems to think I have no configured user details. Trying to commit pops up a dialog for me to set it either globally or locally. But I do already have it configured globally. In fact, I have it configured globally twice. I have it first in ~/.git/config, and then I also have it overridden in ~/.git/config.local, and my ~/.git/config has an [include] section that specifies `path = config.local`. I'm wondering if Sublime Merge is getting confused by that include and throwing away my entire global config?

Re: Show HN: Sublime Merge – A Git client from the makers of Sublime Text

#287
post #158

Since using Atom for years now I am not up2date in regards to Sublime Text. Does it have a Git integration, or is this the tool that should be used instead of a editor integration?

No built-in integration afaik. There are plugins to issue git commands and see line diffs in the gutter.

Re: Show HN: Sublime Merge – A Git client from the makers of Sublime Text

#288

This looks pretty good! Maybe this is a good time to air some complaints about all of these Git UIs. The approach of every single Git app that I've encountered is to present the history as the entry point to working with a project. Maybe I'm a weirdo, but that's not how I primarily work with git, and while having such a history view is critical, I'd like a tool that actually doesn't do that as its main mode of operat…

Couldn't agree more with your point about history v/s file.

This is why I use SmartGit. https://www.syntevo.com/smartgit/

It has two perspectives, 'Main' and 'Review'. For each perspectives, you can configure different 'windows' to be shown/hidden. Window types are 'Changes', 'Journal', 'Branches', 'Git Output' etc.

For the Main perspective, I configure it to show me History + Remote/Local branches + 'Git Output'. This is when I want to interact with the remote repository.

For the Review perspective, I configure it to display the Files/Folders and Changes. You can configure the 'Files' view to show 'modified' files on the top, review the differences in 'Changes' section below and do quick commits.

Yes, the above is not as nice as Eclipse being able to display semantic changes but it's a very nice workflow and have not found anything better.

Re: Show HN: Sublime Merge – A Git client from the makers of Sublime Text

#289

Earlier quoted context omitted.

Do you guys use OpenGL to render the UI widgets? Or do you use something more high-level like Skia?

Sublime Text uses Skia.

Do you know if they tested alternatives, like Blend2D?

https://blend2d.com/

Re: Show HN: Sublime Merge – A Git client from the makers of Sublime Text

#290
post #2

Hi HN - Jon Skinner here, I made Sublime Text and Sublime Merge, alongside the rest of the Sublime HQ programming team - Will, Dylan and Benjamin. Let me know if you have any questions! Edit: there's also the announcement blog post, at https://www.sublimetext.com/blog/articles/sublime-merge

Any thoughts on open sourcing cross platform ui library that you have created ? Or even a paid version ?
Post reply on HN