Add key binding and command to run any other command through input bar

This commit is contained in:
2025-06-15 15:43:12 +03:00
parent e25916228c
commit a3138a9e86
4 changed files with 56 additions and 4 deletions
+7 -2
View File
@@ -36,6 +36,8 @@ type Window struct {
CurrentBuffer *Buffer
screen tcell.Screen
closed bool
}
var mouseHeld = false
@@ -637,8 +639,11 @@ func (window *Window) handleMouseInput(ev *tcell.EventMouse) {
}
func (window *Window) Close() {
window.screen.Fini()
window.screen = nil
window.closed = true
err := window.screen.PostEvent(tcell.NewEventInterrupt(nil))
if err != nil {
return
}
}
func (window *Window) GetTextAreaDimensions() (int, int, int, int) {