mirror of
https://github.com/EnumeratedDev/Typer.git
synced 2025-07-01 07:48:20 +00:00
Add helpful messages for different actions
This commit is contained in:
parent
12495d4bd9
commit
ffd8cd54c0
@ -148,6 +148,7 @@ func initCommands() {
|
||||
}
|
||||
|
||||
window.CurrentBuffer = Buffers[index]
|
||||
PrintMessage(window, fmt.Sprintf("Set current buffer to '%s'.", window.CurrentBuffer.Name))
|
||||
},
|
||||
}
|
||||
|
||||
@ -166,6 +167,7 @@ func initCommands() {
|
||||
}
|
||||
|
||||
window.CurrentBuffer = Buffers[index]
|
||||
PrintMessage(window, fmt.Sprintf("Set current buffer to '%s'.", window.CurrentBuffer.Name))
|
||||
},
|
||||
}
|
||||
|
||||
@ -181,6 +183,7 @@ func initCommands() {
|
||||
}
|
||||
|
||||
window.CursorMode = CursorModeBuffer
|
||||
PrintMessage(window, fmt.Sprintf("New buffer created with the name '%s'.", window.CurrentBuffer.Name))
|
||||
},
|
||||
}
|
||||
|
||||
@ -199,6 +202,7 @@ func initCommands() {
|
||||
window.CurrentBuffer = Buffers[bufferIndex]
|
||||
}
|
||||
window.CursorMode = CursorModeBuffer
|
||||
PrintMessage(window, "Buffer closed.")
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -91,6 +91,7 @@ func initTopMenu() {
|
||||
|
||||
d := CreateDropdownMenu(buffersSlice, 0, y, 0, func(i int) {
|
||||
window.CurrentBuffer = Buffers[i]
|
||||
PrintMessage(window, fmt.Sprintf("Set current buffer to '%s'.", window.CurrentBuffer.Name))
|
||||
ClearDropdowns()
|
||||
window.CursorMode = CursorModeBuffer
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user