Refactor: Add `has_annotation` function.
Add `AnnotPreview` function.
Register user-defined command AnnotPreview.
Add writepreview function.

Add writepreview function, which writes annotation in a preview window
when the preview window is saved.