tweak(gdscript): open godot log buffers in popup
Includes an advice to prevent the log buffer from being focused. This way, the user can return to their work faster when in their play-debug loop, as well as kill the game/Godot by killing the log buffer remotely (with its process) with C-g/ESC.
This commit is contained in:
parent
3cc2d83ee8
commit
3d99fbf525
1 changed files with 6 additions and 0 deletions
|
@ -13,6 +13,12 @@
|
||||||
(set-lookup-handlers! 'gdscript-mode
|
(set-lookup-handlers! 'gdscript-mode
|
||||||
:documentation '(gdscript-docs-browse-symbol-at-point :async t))
|
:documentation '(gdscript-docs-browse-symbol-at-point :async t))
|
||||||
(set-formatter! 'gdformat '("gdformat" "-") :modes '(gdscript-mode))
|
(set-formatter! 'gdformat '("gdformat" "-") :modes '(gdscript-mode))
|
||||||
|
(set-popup-rule! "^\\*godot " :ttl 0 :quit t)
|
||||||
|
|
||||||
|
(defadvice! +gdscript--dont-focus-output-buffer-a (fn &rest args)
|
||||||
|
"Don't move cursor into gdscript compilation window."
|
||||||
|
:around #'gdscript-comint--run
|
||||||
|
(save-selected-window (apply fn args)))
|
||||||
|
|
||||||
;; eww is clumsy and slow. Best that `gdscript-docs-browse-symbol-at-point'
|
;; eww is clumsy and slow. Best that `gdscript-docs-browse-symbol-at-point'
|
||||||
;; simply use the browser.
|
;; simply use the browser.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue