add binding for ClearStatus
This commit is contained in:
parent
77d8a2217f
commit
17397d503e
1 changed files with 8 additions and 0 deletions
|
@ -65,6 +65,7 @@ func InitBindings() {
|
||||||
"EndOfLine": (*View).EndOfLine,
|
"EndOfLine": (*View).EndOfLine,
|
||||||
"ToggleRuler": (*View).ToggleRuler,
|
"ToggleRuler": (*View).ToggleRuler,
|
||||||
"JumpLine": (*View).JumpLine,
|
"JumpLine": (*View).JumpLine,
|
||||||
|
"ClearStatus": (*View).ClearStatus,
|
||||||
}
|
}
|
||||||
|
|
||||||
keys := map[string]tcell.Key{
|
keys := map[string]tcell.Key{
|
||||||
|
@ -289,6 +290,7 @@ func DefaultBindings() map[string]string {
|
||||||
"CtrlR": "ToggleRuler",
|
"CtrlR": "ToggleRuler",
|
||||||
"CtrlL": "JumpLine",
|
"CtrlL": "JumpLine",
|
||||||
"Delete": "Delete",
|
"Delete": "Delete",
|
||||||
|
"Esc": "ClearStatus",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -842,6 +844,12 @@ func (v *View) JumpLine() bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ClearStatus clears the messenger bar
|
||||||
|
func (v *View) ClearStatus() bool {
|
||||||
|
messenger.Message("")
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
// None is no action
|
// None is no action
|
||||||
func None() bool {
|
func None() bool {
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Reference in a new issue