mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-30 06:37:14 +09:00
@@ -209,6 +209,7 @@ func DefaultGlobalSettings() map[string]interface{} {
|
|||||||
"eofnewline": false,
|
"eofnewline": false,
|
||||||
"fastdirty": true,
|
"fastdirty": true,
|
||||||
"fileformat": "unix",
|
"fileformat": "unix",
|
||||||
|
"hidehelp": false,
|
||||||
"ignorecase": false,
|
"ignorecase": false,
|
||||||
"indentchar": " ",
|
"indentchar": " ",
|
||||||
"infobar": true,
|
"infobar": true,
|
||||||
@@ -254,6 +255,7 @@ func DefaultLocalSettings() map[string]interface{} {
|
|||||||
"fastdirty": true,
|
"fastdirty": true,
|
||||||
"fileformat": "unix",
|
"fileformat": "unix",
|
||||||
"filetype": "Unknown",
|
"filetype": "Unknown",
|
||||||
|
"hidehelp": false,
|
||||||
"ignorecase": false,
|
"ignorecase": false,
|
||||||
"indentchar": " ",
|
"indentchar": " ",
|
||||||
"keepautoindent": false,
|
"keepautoindent": false,
|
||||||
|
|||||||
@@ -47,24 +47,26 @@ func (sline *Statusline) Display() {
|
|||||||
file += " " + sline.view.Buf.Settings["fileformat"].(string)
|
file += " " + sline.view.Buf.Settings["fileformat"].(string)
|
||||||
|
|
||||||
rightText := ""
|
rightText := ""
|
||||||
if len(kmenuBinding) > 0 {
|
if !sline.view.Buf.Settings["hidehelp"].(bool) {
|
||||||
if globalSettings["keymenu"].(bool) {
|
|
||||||
rightText += kmenuBinding + ": hide bindings"
|
|
||||||
} else {
|
|
||||||
rightText += kmenuBinding + ": show bindings"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if len(helpBinding) > 0 {
|
|
||||||
if len(kmenuBinding) > 0 {
|
if len(kmenuBinding) > 0 {
|
||||||
rightText += ", "
|
if globalSettings["keymenu"].(bool) {
|
||||||
|
rightText += kmenuBinding + ": hide bindings"
|
||||||
|
} else {
|
||||||
|
rightText += kmenuBinding + ": show bindings"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if sline.view.Type == vtHelp {
|
if len(helpBinding) > 0 {
|
||||||
rightText += helpBinding + ": close help"
|
if len(kmenuBinding) > 0 {
|
||||||
} else {
|
rightText += ", "
|
||||||
rightText += helpBinding + ": open help"
|
}
|
||||||
|
if sline.view.Type == vtHelp {
|
||||||
|
rightText += helpBinding + ": close help"
|
||||||
|
} else {
|
||||||
|
rightText += helpBinding + ": open help"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
rightText += " "
|
||||||
}
|
}
|
||||||
rightText += " "
|
|
||||||
|
|
||||||
statusLineStyle := defStyle.Reverse(true)
|
statusLineStyle := defStyle.Reverse(true)
|
||||||
if style, ok := colorscheme["statusline"]; ok {
|
if style, ok := colorscheme["statusline"]; ok {
|
||||||
|
|||||||
Reference in New Issue
Block a user