This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-04-02
Channels
- # announcements (2)
- # beginners (32)
- # boot (10)
- # calva (81)
- # cider (39)
- # clojure (56)
- # clojure-europe (8)
- # clojure-italy (7)
- # clojure-new-zealand (1)
- # clojure-nl (8)
- # clojure-poland (1)
- # clojure-spec (12)
- # clojure-uk (38)
- # clojurescript (5)
- # community-development (1)
- # core-async (55)
- # cursive (3)
- # datomic (44)
- # dirac (15)
- # emacs (20)
- # events (1)
- # fulcro (57)
- # hyperfiddle (2)
- # jobs (9)
- # juxt (9)
- # kaocha (1)
- # lein-figwheel (1)
- # off-topic (93)
- # pathom (2)
- # pedestal (3)
- # planck (3)
- # reitit (15)
- # ring (10)
- # shadow-cljs (25)
- # spacemacs (7)
- # sql (19)
- # tools-deps (8)
@ag I also use diff-hl
but I seem to remember this is only because I prefer the style of markings in the margin that diff-hl
makes. I will try git-gutter
again, as I notice that it will show changes to the unsaved parts of the file too.
This is the relevant parts of my .spacemacs
layer configuration
(git :variables
git-magit-status-fullscreen t
git-enable-github-support t
git-gutter-use-fringe t)
(version-control :variables
version-control-diff-tool 'diff-hl
version-control-global-margin t)
Hm, I really like the way diff-hl
highlights things but staging hunks is also something that I'd use a lot — from what I gather that only works with git-gutter?
guess it's time for me to invest some time into this magit thing everyone is always talking about then 😄
I stage changes using magit status, SPC m s
, use TAB
to open changes on a file, use v
to select lines within a hunk and s
to stage.
You cant select correctly over a hunk boundary, you would need to do two separate selects
I occasionally do the same for staged changes if I have staged too much. u
to un-stage.
Thanks! I was missing the TAB
bit and the visual selection thing