-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] File previews flicker when visual-line-fill-column-mode
is enabled
#295
Comments
visual-line-fill-column-mode
is enabled
I tested your config with doom with Emacs31 and can not reproduce. Are you using dirvish from |
Thanks for having a look at it. It is installed using
Maybe I missed something else, but I do not think so, I tested many configurations and files before posting. I do not know if there is a cache mechanism or something, but results can be inconsistent. While I was testing, I noticed that some files that I previewed/browsed without the === EDIT I am having a lot of trouble making sense of this, but I just did some more testing, and I do not know what the normal behaviour should be. I went to other folders to test some more. I have an org-roam folder with a lot of notes, and none of them flicker. They are displayed in the preview as if the So I guess it leaves me with two questions:
Denote has a |
Please let me know if doomemacs/doomemacs#8272 solved this. If not, tweak the |
Sorry I could not test this weekend. I did a very quick test this morning, but I cannot dig into much further today. The problem only persists for Org files open in buffers prior to calling Dirvish. Other files are now displayed steadily, even non Org files already open in buffers (tested with Elisp only). I could not isolate any other common characteristic between Org files still affected except being open in buffers (tried large files, files with title only, folded, unfolded...). Finally, I did not understand at first glance the Please let me know if you need more info, thanks for following up 👍 |
In case this is helpful, I noticed today that flickering previews affect files open in buffers only, but I think it might be linked to the Taking a closer look, previews of files open in buffer honor/respect the |
I see. Thanks for the feedback, will try to fix this soon. |
This commit addresses: 1. make preview window read only (#270) 2. add back `dirvish-preview-setup-hook` (#184) 3. add hook `dirvish-util-buffer-init-hook` (#195) 4. prevent focus competition when preview window is focused (#295) As of now, all of the preview buffers are just read-only "proxy" buffer (meaning although they can be edited directly, but it's not recommended to do so since these buffers is not fully initialized and should be only used as preview, you can navigate through the file contents, but do not attempt to edit them in that buffer. More commands relates to the preview buffer might be added in the future.
Please let me if 8a2aafd fixed this. |
I tried to make it flicker as much as I could, it seems fixed for me. I will let you know if it happens again after using it for longer, and do not hesitate if you need more info. |
This is expected since they are newly generated read-only buffers, it does not reuse your existing buffers. Feel free to report back if the same issue occurs. |
Bug description
Org files with lines longer than
fill-column
value flicker in the preview pane whenvisual-line-fill-column-mode
is enabled inorg-mode
. I have not tested with other file types.I also noticed that switching focus to the preview pane stops the flickering even after switching back to the dired pane, the preview remains still. The flickering starts again if I open a minibuffer, or a
dirvish
menu UI.I tested with
visible-mode
on and off, it made no difference.Steps to reproduce
visual-line-fill-column-mode
is enabled inorg-mode
fill-column
dirvish
This is how
visual-mode
is configured in my configuration file:The flickering also happens when using the default
fill-column
value (commenting thesetq-local
line above), and it is even worse when usingvisual-line
along withvisual-fill-column
as follows:Expected behavior
The Org file preview should remain still.
OS
Linux
Emacs Version
29
Emacs Configurations
Doom Emacs
Error callstack
Anything else
Thanks for your time, and a great package.
The text was updated successfully, but these errors were encountered: