branch: externals/dired-preview
commit 91fc74d122bd90e82eacd3ef55db540f831f0d66
Author: Protesilaos Stavrou <i...@protesilaos.com>
Commit: Protesilaos Stavrou <i...@protesilaos.com>

    Stop using a side window for previews
    
    We want the user to be able to focus the window, either with the
    keyboard or the mouse.  The window must then be a regular window.  Any
    special restrictions feel counter-intuitive as the user will not know
    that we had decided to set them in the first place.
    
    Thanks to Bruno Boal for bringing this matter to my attention:
    <https://git.sr.ht/~bboal>.  This was done in a private channel and
    the information is shared with permission.
---
 dired-preview.el | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/dired-preview.el b/dired-preview.el
index 0761ae2194..a5cc28de0b 100644
--- a/dired-preview.el
+++ b/dired-preview.el
@@ -202,9 +202,8 @@ checked against `split-width-threshold' or
 Return a `display-buffer' action alist, as described in the
 aforementioned user option."
   (let ((properties (dired-preview-display-action-side)))
-    `((display-buffer-in-side-window)
-      (side . ,(plist-get properties :side))
-      (slot . -1)
+    `((display-buffer-in-direction)
+      (direction . ,(plist-get properties :side))
       (,(plist-get properties :dimension) . ,(plist-get properties :size))
       (dedicated . t))))
 

Reply via email to