Live data from Hacker News

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

github.com

1–10 of 45 posts

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

#1
I created a Sublime Text 2 plugin that lets you see the commit message history (messages & file stats) for selected line(s) of code with a simple shortcut: cmd+shift+m on Mac, alt+shift+m on Linux/Windows.

Inspired by this earlier post (https://news.ycombinator.com/item?id=7202146).

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

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

#3
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.

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

#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 are well tested. Why would i want to fiddle together my text editor with one-man plugins that often dont even work 100% ?

I love Sublime etc. for what it does best, which is editing text, but i still use IDEs for most of my coding so i dont have to think about configuring my editor all day.

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

#5
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…

Its easier to start from a lightweight text editor and add only what you need as opposed to start with an IDE and trim the fat, and pray it won't break.

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

#6
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…

>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 ?

Because most (all?) IDE's are slow. I've used Eclipse for years. Have also tried Idea and dabbled with NetBeans. I don't like their slow operation, nor they clunky UIs. And I don't find their speed, even today with an SSD and 8+GB of RAM, good enough. Tolerable might be a better word.

Plus their text-editing abilities leave a lot to be desired too.

>Why would i want to fiddle together my text editor with one-man plugins that often dont even work 100% ?

Well, my experience with IDEs is that their plugins and core functionality is not all roses either.

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

#7
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…

Its easier to start from a lightweight text editor and add only what you need as opposed to start with an IDE and trim the fat, and pray it won't break.

Counter point: IDEs can provide a better experience for interacting with the myriad different tools we rely on as developers, through a consistent, unified, interface.

Jetbrains do go some way towards addressing the point you raise, with their language specific editors. I use a broad enough cross-section of those languages that I stick with IDEA ultimate, but my experiences with PyCharm, RubyMine and WebStorm have been nothing but positive.

Qualifier: All IDEs, and especially IDE interfaces, are not created equal!

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

#8
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…

Its easier to start from a lightweight text editor and add only what you need as opposed to start with an IDE and trim the fat, and pray it won't break.

This is my reason for using ST2 as well. I even bought PyCharm last year (the doomsday sale), but it was just too much. It has so many options that even basic ones had steep learning curve (as in "where the hell is this function?").

Note that I'm talking about personal use. If I were a full time developer, I might force myself into an IDE.

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

#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 easily by many people if there is a need. Plugins compete against each other, and cooperate with each other in the same space.

The core stays simple, optimized, highly crafted, and stable. The innovation, and quick implementations of solutions to new problems happen inside plugins. High levels of integration is possible, and does happen within the plugins.

Check out Arduino-like, which turns Sublime into an Arduino IDE https://sublime.wbond.net/packages/Arduino-like%20IDE

An IDE is simply loading all the plugins at once, even the parts you don't need.

Post reply on HN