12 ms·
Sublime Text 2 plugin to show git commit history for selected line(s) of code
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.<p>Inspired by this earlier post (https://news.ycombinator.com/item?id=7202146).
- dewey 13y agoWill this be available for ST 3 too or are there any incompatibilities stopping it from working on ST 3?
- jbrooksuk 13y agoI'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.
- mrmondo 13y agoST 3 compatibility would indeed be nice, we haven't used 2 for quite some time now.
- kayoone 13y agoDisclaimer: 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.
- hayksaakian 13y agoIts 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.
- hugofirth 13y agoCounter 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!
- rplnt 13y agoThis 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.
- danieldk 13y ago
- hartator 13y agoIt doesn't seem to exist anymore: https://sublime.wbond.net/search/GitCommitMsg https://sublime.wbond.net/search/GitCommitMsg or in package control. Will install it manually, seems a great trick!
- FichteFoll 13y agoIn fact it is hasn't yet been accepted: https://github.com/wbond/package_control_channel/pull/2800 https://github.com/wbond/package_control_channel/pull/2800
- javajosh 13y agoRan 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."
- trendynoise 13y agoAnyone have a screenshot of what this looks like in action?
- bpicolo 13y agoIt literally just opens up a new tab and shows you the git blame for the highlighted lines. Actually pretty handy.
- joshfraser 13y agoDoes this work w/ Sublime Text 3 too?
- lunixbochs 13y agoThis reminds me of the layers concept from https://www.destroyallsoftware.com/talks/a-whole-new-world https://www.destroyallsoftware.com/talks/a-whole-new-world
- mmanfrin 13y agoThere is a plugin (found within the package manager) called simply 'Git' that does this -- you just call Git Blame from the bar (CTRL SHIFT P) and it'll show you a line-by-line history of the whole file or selection.
- chrisbumgardner 13y agoHi all, works with ST3 now and is in Package Control. Only thing missing is Windows support (looking into it). Thanks for the comments and pull-requests :)