karthink / popper

Emacs minor-mode to summon and dismiss buffers easily.
GNU General Public License v3.0
449 stars 21 forks source link

Prefix Key Press Causes Pop-Up Window to Shift to the Right #72

Open creese opened 1 month ago

creese commented 1 month ago

Summary

When a pop-up window is open and I press the general.el prefix key, the current pop-up shifts to the right instead of opening a new window below. It seems like Popper might be trying to manage a window it shouldn't.

Screenshot 2024-09-02 at 4 13 33 PM

Steps to Reproduce

  1. Install popper.el.
  2. Install general.el and create a definer:
    (use-package general
    :config
    (general-create-definer my-keys
    :states '(normal visual motion)
    :keymaps 'override
    :prefix "SPC")
    (my-keys ":" '("M-x" . execute-extended-command)))
  3. Open a Help window using describe-function.
  4. Press your general.el prefix key (e.g., the space bar).

Expected Behavior

The general.el window should appear beneath the Help window.

Actual Behavior

The Help window is pushed to the right within the managed pop-up window.

karthink commented 1 month ago

which-key and popper both use side windows at the bottom of the frame, so this is expected. You have to ask one of them to not use the bottom of the frame. Customize which-key-side-window-location or popper-display-function.