News for hackers. Stuff that matters.
Re:Show HN: I made a tool that made me faster at Git by dmortin on Sunday August 05, 2018 @01:49AM (#17689900)
If you status, commit, diff often then you don't want to leave your editor, because every little things (switching to a terminal just to do git stuff) adds up in the long run.

Version control functions should be available right in your editor (e.g. magit) and you can't really beat one character hotkeys for version control stuff. It doesn't get more convenient than that.

Re:Show HN: I made a tool that made me faster at Git by yellowapple on Sunday August 05, 2018 @01:57AM (#17689919)
Seconding the in-editor approach. Magit is wonderful (though I often do end up heading to the command-line for certain things out of habit).
Re:Show HN: I made a tool that made me faster at Git by john2x on Sunday August 05, 2018 @02:35AM (#17690037)
I think it's good to keep doing some things via command line, so as not to forget how Git works "under the hood". I also keep my Git alias commands to a minimum for a similar reason.
Re:Show HN: I made a tool that made me faster at Git by dmortin on Sunday August 05, 2018 @03:05AM (#17690127)
For me flow is important, so that I don't get distracted when working. The best way to achieve this is having single key shortcuts.

Knowing how GIT works uder the hood is less important than staying in the flow, at least for me as a developer. People responsible for repository maintenance may have other priorities.

Re:Show HN: I made a tool that made me faster at Git by jolmg on Sunday August 05, 2018 @04:23AM (#17690328)
> If you status, commit, diff often then you don't want to leave your editor, because every little things (switching to a terminal just to do git stuff) adds up in the long run.

That sounds like limiting the functionality of the whole computer to what the text editor can do. That doesn't make sense. Next, you'll want to browse the web from the editor because you don't want to leave it (just because emacs does it doesn't mean it isn't absurd).

Anyway, I think it's better to configure the system so using multiple programs is as quick and effortless as possible. For your example, I use i3, a tiling window manager, and have the screen split with a terminal window on the left and my editor on the right. If I wanted to check `git status`, I just type `<super+h>git s<enter>`. To go back to the editor, `<super+l>`. There's really not much difference with a single character shortcut.

Re:Show HN: I made a tool that made me faster at Git by stult on Sunday August 05, 2018 @07:29AM (#17690797)
That's a terrible analogy. I only use git with my IDEs and only use my IDEs with git (except one weird outside project at work where I have to use a partner company's TFS). So integration makes complete sense. Hell, that's true whether you use CLI or GUI. I use my browser for an infinite variety of different activities, only a tiny subset of which relate to my IDE.
Re:Show HN: I made a tool that made me faster at Git by xorcist on Sunday August 05, 2018 @06:38AM (#17690643)
> Next, you'll want to browse the web from the editor

Well, you're clearly replying to an emacs user. He/she will not find that statement the least hyperbolic.

Re:Show HN: I made a tool that made me faster at Git by dmortin on Sunday August 05, 2018 @07:36AM (#17690818)
I do. I use a separate browser. There are people who want to do everything from their editors. There are people who want to do only editing in the editor.

And there are middle ground people like me who want editor integration when it makes me more efficient (like invoking frequent VC commands right from the editor), but I do mail and browsing and stuff with external tools.

Re:Show HN: I made a tool that made me faster at Git by dmortin on Sunday August 05, 2018 @04:39AM (#17690367)
> That sounds like limiting the functionality of the whole computer to what the text editor can do.

Not really. It's about putting the most frequent features into your editor, so they can be accessed effortlessly. If you have to do something which is less frequent and the editor does not support it then you still have the terminal.

> If I wanted to check `git status`, I just type `<super+h>git s<enter>`. To go back to the editor, `<super+l>`. There's really not much difference with a single character shortcut.

It's efficient compared to switching to the terminal with alt-tab or something, though by single shortcut I meant that you can use it right in your editor buffer, so it's really just pressing one or two keys vs. `<super+h>git s<enter>`