News for hackers. Stuff that matters.
Re:GitHub Desktop 3.2: Preview your pull request by tomodachi94 on Friday March 03, 2023 @04:18PM (#35015149)
This functionality is built-in to vim-fugitive and VS Code.

In Fugitive, open it with :Git , select the unstaged file then press = . Select the desired range with visual mode, then press s and commit as normal.

In VS Code, select a hunk, press Ctrl+P, then type "Stage Selected Range." Repeat this process and commit as normal.

Edit: formatting and typo.

Re:GitHub Desktop 3.2: Preview your pull request by Hasnep on Saturday March 04, 2023 @07:44AM (#35020392)
I commit small chunks so often that I have a keyboard shortcut set up for that "stage selected range" command in VSCode, definitely recommend it to get a more useful commit history.