Live data from Hacker News

Sublime Text 2 plugin to show git commit history for selected line(s) of code

github.com

21–30 of 45 posts

Re: Sublime Text 2 plugin to show git commit history for selected line(s) of code

#21
post #2

Will this be available for ST 3 too or are there any incompatibilities stopping it from working on ST 3?

I've just tested GitCommitMsg in ST3 and the only problem seems to be the print function. I'll fix this up and send a PR. Scratch that. There are a couple of API changes I believe, but I should be able to fix these too. Edit: I can't even get the command to work for me.

Dammit, I was really excited about this too. Here's to hoping somebody reposts about it when the ST3 version is official...

Re: Sublime Text 2 plugin to show git commit history for selected line(s) of code

#22
post #10
post #4

Disclaimer: I love ST and use it everyday and this is not against this plugin in particular, just the idea of extending your editor to be an IDE. When people extend their text editor (be it sublime, vim, emacs) with all these (often outdated) plugins i am left wondering why there is still so much hate for IDEs ? I use IDEs from Jetbrains for most of my stuff and they do all these things oob with a consistent UI and a…

Extensible editors like Sublime, vim and emacs, amongst others, let you program them easily. As a programmer this is useful. This plugin is maybe 30 lines of code. With 1,988 packages and 1,436 authors(in Sublime's case) they turn into customised IDE's that 2.15 million package users are using. If there is a bug, you can submit a patch, or fork a plugin - and people do. This means plugins can be fixed quickly and eas…

Yeah that sounds sweet in theory. In practice i would first have to learn python and get into the ST api before i could build my own plugin or fix existing ones, so that would probably take some time that i dont have. And while there are lots of plugins i found quite a few areas (C# for example) where plugins are there, but haven't been updated in a long time and don't work for certain aspects of the language etc. You can obviously work with them, but they don't exactly make me drop VS.

I also hardly no anyone that works with C#, Java or Objective-C without an IDE, because you lose a lot of productivity. I enjoy working with ST in JS/php and other dynamic languages though where intellisense etc does not matter too much.

Re: Sublime Text 2 plugin to show git commit history for selected line(s) of code

#23
post #22
post #10

Earlier quoted context omitted.

Extensible editors like Sublime, vim and emacs, amongst others, let you program them easily. As a programmer this is useful. This plugin is maybe 30 lines of code. With 1,988 packages and 1,436 authors(in Sublime's case) they turn into customised IDE's that 2.15 million package users are using. If there is a bug, you can submit a patch, or fork a plugin - and people do. This means plugins can be fixed quickly and eas…

Yeah that sounds sweet in theory. In practice i would first have to learn python and get into the ST api before i could build my own plugin or fix existing ones, so that would probably take some time that i dont have. And while there are lots of plugins i found quite a few areas (C# for example) where plugins are there, but haven't been updated in a long time and don't work for certain aspects of the language etc. Yo…

I use ST for a Cocoa/OpenGL app, and love it much more than xcode. When you actually know what you are doing, all that auto-voodoo stuff just gets in the way.

Re: Sublime Text 2 plugin to show git commit history for selected line(s) of code

#24
post #17

Earlier quoted context omitted.

I've just tested GitCommitMsg in ST3 and the only problem seems to be the print function. I'll fix this up and send a PR. Scratch that. There are a couple of API changes I believe, but I should be able to fix these too. Edit: I can't even get the command to work for me.

Still going to fix it up?

Someone else has fixed it :)

I was about to push my changes even though the command doesn't work for me.

Re: Sublime Text 2 plugin to show git commit history for selected line(s) of code

#25
post #4

Disclaimer: I love ST and use it everyday and this is not against this plugin in particular, just the idea of extending your editor to be an IDE. When people extend their text editor (be it sublime, vim, emacs) with all these (often outdated) plugins i am left wondering why there is still so much hate for IDEs ? I use IDEs from Jetbrains for most of my stuff and they do all these things oob with a consistent UI and a…

I'm of the opinion that a well-engineered IDE is almost always better than a simple text editor. I "grew up" using Visual Studio on Windows. That said, I find myself using vim and Sublime Text fairly frequently.

Both are useful because they're universal for all languages, simple, quick, and pretty much are guaranteed to have a high base-line level of quality. vim is also useful because it's available on virtually every Unix machine, meaning I can use it on remote machines I've ssh'd into.

With these editors, I also think there's a certain pleasure in starting from a mostly blank slate and installing only the plugins you're personally interested in. The result feels less bloated because it's optimized for precisely one person: you.

Re: Sublime Text 2 plugin to show git commit history for selected line(s) of code

#27
post #4

Disclaimer: I love ST and use it everyday and this is not against this plugin in particular, just the idea of extending your editor to be an IDE. When people extend their text editor (be it sublime, vim, emacs) with all these (often outdated) plugins i am left wondering why there is still so much hate for IDEs ? I use IDEs from Jetbrains for most of my stuff and they do all these things oob with a consistent UI and a…

I've tried the last two major versions of PHPStorm and I just can't use it. On my Air with 4GB of RAM it struggles to even open a file. It's slow, sometimes unresponsive, and uses so much memory so my VM can't run on the same machine. If there was a 'Lite' version, I'd love to try it out. But the defacto PHP IDE can not run on my machine, which is why I stick with ST and plugins.

Re: Sublime Text 2 plugin to show git commit history for selected line(s) of code

#29
post #9

It doesn't seem to exist anymore: https://sublime.wbond.net/search/GitCommitMsg or in package control. Will install it manually, seems a great trick!

In fact it is hasn't yet been accepted: https://github.com/wbond/package_control_channel/pull/2800

Ran into the same issue. Software authors should not put false installation instructions in the README - in this case, should have waited until the package is accepted before claiming it's installable from Package Control. At the very least, added a disclaimer "pending approval of the plugin."

Re: Sublime Text 2 plugin to show git commit history for selected line(s) of code

#30
post #4

Disclaimer: I love ST and use it everyday and this is not against this plugin in particular, just the idea of extending your editor to be an IDE. When people extend their text editor (be it sublime, vim, emacs) with all these (often outdated) plugins i am left wondering why there is still so much hate for IDEs ? I use IDEs from Jetbrains for most of my stuff and they do all these things oob with a consistent UI and a…

I can't speak for others, but for me, the main thing that has kept me away from IDEs is lag. Every IDE I've ever used (IDEA, Eclipse, NetBeans, Visual Studio) has always interrupted my workflow on a regular basis in order to recompile something or update some index or other.

In statically typed languages, that's often a tradeoff I'm happy to make; IDEs give you a lot more information than text editors in that case. But in a dynamically typed language, where I'll need to run the program to find errors anyway, the lag is just a nuisance.

As I've primarily worked in dynamic languages for the last several years, I've had no desire to put up with IDE lag for minimal gain.

Post reply on HN