Question:
Is it possible to run ispell on a region (or the whole diff and nothing else) directly from the magit-status
buffer?
Motivation:
I am writing varying amounts of text and often keep it under version control.
I also use magit as a front-end for git.
After adding chunks of text here and there and then checking the magit-status
I catch myself wanting to spell check newly edited regions without the hassle of diving in to the text and find it or spell-check the whole document.
M-$
is to spellcheck a word andM-x ispell-region
to spellcheck a region.RET
on the text in the diff will jump to the corresponding location in the file.delete-trailing-whitespace
on an unstaged hunk and save the changes from the status buffer. You may be able to use this tooling to implement what you want. See the docs fordefine-magit-unstaged-hunk-action
for information on how it works.