You can bind to "command-edit:goto ", but binding to the action
"JumpLine" will have the same effect now.
Fixes #1550
return true
}
+// OpenFile opens a new file in the buffer
+func (h *BufPane) JumpLine() bool {
+ InfoBar.Prompt("> ", "goto ", "Command", nil, func(resp string, canceled bool) {
+ if !canceled {
+ h.HandleCommand(resp)
+ }
+ })
+ return true
+}
+
// Start moves the viewport to the start of the buffer
func (h *BufPane) Start() bool {
v := h.GetView()
"RemoveAllMultiCursors": (*BufPane).RemoveAllMultiCursors,
"SkipMultiCursor": (*BufPane).SkipMultiCursor,
"JumpToMatchingBrace": (*BufPane).JumpToMatchingBrace,
+ "JumpLine": (*BufPane).JumpLine,
"None": (*BufPane).None,
// This was changed to InsertNewline but I don't want to break backwards compatibility