-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
Idea is: reflow the code when the window is resized.
- When emacs open a file blacken could pass black with --line-length equal to the number of column of the buffer the file is displayed on.
- Every time the buffer is resized, blacken could pass black again with an updated --line-length so adapt the code to the new width.
- When the file is saved, blacken could pass black one last time without --line-length for diff stability.
So one could work with a file in full-width with comfort of a big screen, then split the screen in two vertical windows and have the code rewrapped accordingly, the get back to a single buffer and get the code rewrapped automatically again to use the available space.
To be really nice and smooth it would need for the file cursor not to jump to another place, which is probably the hardest thing here...
Metadata
Metadata
Assignees
Labels
No labels