bastibe / annotate.el

Annotate.el
Other
384 stars 20 forks source link

Doesn't work well with visual-fill-column #82

Open xeruf opened 3 years ago

xeruf commented 3 years ago

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:

image image

It seems that the annotations are treated like regular text to be wrapped. Is there any way to get around this?

bastibe commented 3 years ago

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 3 years ago

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.