Skip to content

Commit

Permalink
refactor(multi-vterm): move display buffer properties to me-window
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed May 16, 2024
1 parent 5b83f5a commit 596442a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
8 changes: 0 additions & 8 deletions modules/me-tools.el
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,6 @@
"otT" #'multi-vterm
"ott" #'multi-vterm-dedicated-toggle
"otp" #'multi-vterm-project)
;; Show at bottom
(add-to-list 'display-buffer-alist
`("\\*vterminal - .*\\*" ;; multi-vterm-project / dedicated
(display-buffer-reuse-window display-buffer-in-direction)
(direction . bottom)
(dedicated . t)
(reusable-frames . visible)
(window-height . 0.3)))
:custom
(multi-vterm-dedicated-window-height-percent 30)
:config
Expand Down
3 changes: 2 additions & 1 deletion modules/me-window.el
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@
;; Terminal buffers
(add-to-list
'display-buffer-alist
`(,(rx bol "*" (or "eshell" "terminal" "shell" "Shell Command Output" "Async Shell Command") "*" eol)
`(,(rx bol "*" (or "eshell" "terminal" "shell" "Shell Command Output" "Async Shell Command" (seq "vterminal - " (* any))) "*" eol)
(display-buffer-reuse-window display-buffer-at-bottom)
(dedicated . t) ;; Close when finished
(direction . bottom)
(reusable-frames . visible) ;;
(window-height . 0.3)))

Expand Down

0 comments on commit 596442a

Please sign in to comment.