Rewrite how magit windows/popups are managed
The old policy was to invoke magit in fullscreen, but in practice, I've found myself wanting to peek at other buffers (maybe even notes) while I manage my project in version control. So this change introduces two big changes and one fix: + Instead of a full-frame policy, we use full-column. e.g. Invoking magit-status will take up a full column of windows (and will restore them when you quit). + Popups are displayed below the current window if called from a magit buffer, otherwise as a popup at the bottom of the frame. + Fixes popups opening in a random window if called from a magit buffer in a popup. This is only a start and needs more testing.
This commit is contained in:
parent
391ac1cae5
commit
2cc5d223fe
2 changed files with 27 additions and 30 deletions
|
@ -26,8 +26,8 @@ available.")
|
|||
#'magit-builtin-completing-read)
|
||||
magit-revision-show-gravatars '("^Author: " . "^Commit: ")
|
||||
magit-diff-refine-hunk t ; show word-granularity on selected hunk
|
||||
magit-display-buffer-function #'+magit-display-buffer-fullscreen
|
||||
magit-popup-display-buffer-action '((display-buffer-in-side-window)))
|
||||
magit-display-buffer-function #'+magit-display-buffer
|
||||
magit-popup-display-buffer-action '((+magit-display-popup-buffer)))
|
||||
|
||||
(set-popup-rule! "^\\(?:\\*magit\\|magit:\\)" :ignore t)
|
||||
;; so magit buffers can be switched to
|
||||
|
@ -50,6 +50,7 @@ available.")
|
|||
(def-package! magithub
|
||||
:after magit
|
||||
:preface
|
||||
;; Magithub is not well-behaved, so this needs to be set early
|
||||
(setq magithub-dir (concat doom-etc-dir "magithub/"))
|
||||
:init
|
||||
(setq magithub-clone-default-directory "~/"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue