This is because with the current snippet from the README, the entire buffer gets replaced then the cursor gets moved back to the offset it was at within the file. When this operation takes place, the line that offset is on is centered in middle of the screen, so if your cursor was on any line but the one in the center of the screen you'll see things jump.
This could be mitigated by capturing the offset of the line from center and restoring that or perhaps there's some other value/idiom in Emacs/elisp for accomplishing the same goal.
Alternatively we could rig up a better, more general map-external-cmd-over-buffer type of functionality
This is because with the current snippet from the README, the entire buffer gets replaced then the cursor gets moved back to the offset it was at within the file. When this operation takes place, the line that offset is on is centered in middle of the screen, so if your cursor was on any line but the one in the center of the screen you'll see things jump.
This could be mitigated by capturing the offset of the line from center and restoring that or perhaps there's some other value/idiom in Emacs/elisp for accomplishing the same goal.
Alternatively we could rig up a better, more general
map-external-cmd-over-buffertype of functionality