Have you tried to use the same binding? python-ts-mode
should have the same default set as python-mode
due of how python-ts-mode-map
is defined.
To see all available bindings, type C-h f python-ts-mode RET
. You’re probably thinking of C-c <
and C-c >
.
What’s going on on the gif doesn’t look particularly smooth, so as long as the horizontal steps are limited to multiples of the character width, this should be easy to write in Emacs Lisp (5-10 lines).
But doing something practical with it will require extra work. I.e. the depicted process is probably a part of some specific buffer management/switching mechanism, and that would require some extra analysis to replicate and integrate.