mirror of
https://github.com/Hopiu/micro.git
synced 2026-05-09 23:34:42 +00:00
Merge
This commit is contained in:
commit
ef768e36f3
1 changed files with 10 additions and 1 deletions
|
|
@ -91,7 +91,14 @@ func BufMapKey(k Event, action string) {
|
||||||
screen.TermMessage("Lua Error:", a, "does not exist")
|
screen.TermMessage("Lua Error:", a, "does not exist")
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
names = append(names, "")
|
split := strings.SplitN(a, ".", 2)
|
||||||
|
if len(split) > 1 {
|
||||||
|
a = strings.Title(split[0]) + strings.Title(split[1])
|
||||||
|
} else {
|
||||||
|
a = strings.Title(a)
|
||||||
|
}
|
||||||
|
|
||||||
|
names = append(names, a)
|
||||||
} else if f, ok := BufKeyActions[a]; ok {
|
} else if f, ok := BufKeyActions[a]; ok {
|
||||||
afn = f
|
afn = f
|
||||||
names = append(names, a)
|
names = append(names, a)
|
||||||
|
|
@ -632,6 +639,7 @@ var MultiActions = map[string]bool{
|
||||||
"DeleteWordLeft": true,
|
"DeleteWordLeft": true,
|
||||||
"SelectLine": true,
|
"SelectLine": true,
|
||||||
"SelectToStartOfLine": true,
|
"SelectToStartOfLine": true,
|
||||||
|
"SelectToStartOfText": true,
|
||||||
"SelectToEndOfLine": true,
|
"SelectToEndOfLine": true,
|
||||||
"ParagraphPrevious": true,
|
"ParagraphPrevious": true,
|
||||||
"ParagraphNext": true,
|
"ParagraphNext": true,
|
||||||
|
|
@ -655,6 +663,7 @@ var MultiActions = map[string]bool{
|
||||||
"SelectPageUp": true,
|
"SelectPageUp": true,
|
||||||
"SelectPageDown": true,
|
"SelectPageDown": true,
|
||||||
"StartOfLine": true,
|
"StartOfLine": true,
|
||||||
|
"StartOfText": true,
|
||||||
"EndOfLine": true,
|
"EndOfLine": true,
|
||||||
"JumpToMatchingBrace": true,
|
"JumpToMatchingBrace": true,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue