mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-06 15:10:27 +09:00
add binding for ClearStatus
This commit is contained in:
@@ -65,6 +65,7 @@ func InitBindings() {
|
||||
"EndOfLine": (*View).EndOfLine,
|
||||
"ToggleRuler": (*View).ToggleRuler,
|
||||
"JumpLine": (*View).JumpLine,
|
||||
"ClearStatus": (*View).ClearStatus,
|
||||
}
|
||||
|
||||
keys := map[string]tcell.Key{
|
||||
@@ -289,6 +290,7 @@ func DefaultBindings() map[string]string {
|
||||
"CtrlR": "ToggleRuler",
|
||||
"CtrlL": "JumpLine",
|
||||
"Delete": "Delete",
|
||||
"Esc": "ClearStatus",
|
||||
}
|
||||
}
|
||||
|
||||
@@ -842,6 +844,12 @@ func (v *View) JumpLine() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// ClearStatus clears the messenger bar
|
||||
func (v *View) ClearStatus() bool {
|
||||
messenger.Message("")
|
||||
return false
|
||||
}
|
||||
|
||||
// None is no action
|
||||
func None() bool {
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user