News for hackers. Stuff that matters.
Re:Sorting in Emacs by Conscat on Saturday August 12, 2023 @01:57PM (#37102628)
For me, being able to go straight from a selection in a code file to a log of all changes to that specific code, which I can then filter further, is what gets the strongest reactions from my coworkers.
Re:Sorting in Emacs by lordgrenville on Saturday August 12, 2023 @02:24PM (#37102847)
TIL magit-log-buffer-file...
Re:Sorting in Emacs by Conscat on Saturday August 12, 2023 @02:42PM (#37103007)
It's unfortunately hidden because it has no default keybinding iirc, but I love this feature. I think I discovered it by wondering if it exists, so I searched through the M-x candidates with orderless and typed in terms that I guessed could be part of the right name.
Re:Sorting in Emacs by duckerude on Saturday August 12, 2023 @02:56PM (#37103136)
C-c M-g l gets you there. (C-c M-g leads to a submenu that also has blame.)

Until this thread I didn't know it could also do regions.

Re:Sorting in Emacs by lsowen on Saturday August 12, 2023 @02:12PM (#37102743)
What?! How do you do this? I love magic but haven't discovered this.
Re:Sorting in Emacs by mbork_pl on Saturday August 12, 2023 @03:14PM (#37103291)
WHAT!? You can use M-x magit-log-buffer-file with an active selection and see only the changes to the selected portion? This is so obvious in hindsight and so cool... Thanks a million!