Closed gitrj95 closed 6 months ago
Hello @gitrj95!
when opening dired and point sits on a file: that first file does not trigger preview until i move around
This is a known issue. I need to think how best to approach it.
when jumping inside a directory and point sits on a file: that file does not trigger preview as above
How are you jumping around? Which commands are involved? In principle, we want to cover this scenario.
repro:
the remembering of point in (8) may be caused by saveplace; i don't recall the precise origin of the semantics, here
I am not using saveplace and do know about this issue. It is tricky how we should deal with it. Right now the preview is triggered by a motion in the current Dired buffer, such that we do not have to keep track of all window/buffer changing across Emacs. I am not sure how else we can approach this without broading the state we are keeping track of.
I solved these issues by adding dired-find-file dired dired-jump to the variable dired-preview-trigger-commands
(defvar dired-preview-trigger-commands
'(dired-next-line dired-previous-line dired-mark dired-goto-file dired-find-file dired dired-jump)
"List of Dired commands that trigger a preview.")
From: Nofint @.***> Date: Sat, 9 Sep 2023 23:58:35 -0700
I solved these issues by adding dired-find-file dired dired-jump to the variable dired-preview-trigger-commands
(defvar dired-preview-trigger-commands '(dired-next-line dired-previous-line dired-mark dired-goto-file dired-find-file dired dired-jump) "List of Dired commands that trigger a preview.")
This seems reasonable. Have you noticed any downsides with this addition? If not, we can update the package accordingly and I am happy to receive a pull request from you.
-- Protesilaos Stavrou https://protesilaos.com
From: Nofint @.***> Date: Sat, 9 Sep 2023 23:58:35 -0700 I solved these issues by adding dired-find-file dired dired-jump to the variable dired-preview-trigger-commands
(defvar dired-preview-trigger-commands '(dired-next-line dired-previous-line dired-mark dired-goto-file dired-find-file dired dired-jump) "List of Dired commands that trigger a preview.")
This seems reasonable. Have you noticed any downsides with this addition? If not, we can update the package accordingly and I am happy to receive a pull request from you. … -- Protesilaos Stavrou https://protesilaos.com
At the moment, I haven't encountered any issues. So maybe I should submit a pull request.
This has been done. Closing now. Thanks!
hi, prot. i hope you are well
it seems there are two conditions whereby previews do not happen when i would expect them:
i have not inspected the code, but presumably these issues are related