annotate.el icon indicating copy to clipboard operation
annotate.el copied to clipboard

Doesn't work well with visual-fill-column

Open xeruf opened this issue 5 years ago • 2 comments

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?

xeruf avatar Oct 25 '20 20:10 xeruf

This makes sense. annotate tries to place annotations at the right edge of the screen. It is currently not aware of visual-fill-column.

bastibe avatar Oct 26 '20 10:10 bastibe

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.

cage2 avatar Oct 26 '20 17:10 cage2