Doesn't work well with visual-fill-column
xeruf opened this issue · 2 comments
xeruf commented
I wanted to use visual-fill-column to soft-wrap my text at column 80, so the annotations would be put to the right as I'd like it to be. Unfortunately, this didn't work as expected:
It seems that the annotations are treated like regular text to be wrapped. Is there any way to get around this?
bastibe commented
This makes sense. annotate tries to place annotations at the right edge of the screen. It is currently not aware of visual-fill-column.
cage2 commented
On Sun, Oct 25, 2020 at 01:02:06PM -0700, Janek wrote:
Hi!
I wanted to use [visual-fill-column]
[...]
It seems that the annotations are treated like regular text to be
wrapped. Is there any way to get around this?
You are right, visual mode operates changing (according to my quick
check on its source code) the window's margin (setting
visual-fill-column-fringes-outside-margins to nil should show what i
mean) whilst annotate just place the annotations on an actual
newline. Probably using a :new-line policy should improve the
appearance or you could even check the new annotation style in the
pull requests currently opened. ;-)
Bye!
C.