mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-30 06:37:14 +09:00
Add docs for SpawnMultiCursorSelect
This commit is contained in:
@@ -23,97 +23,97 @@ var mouseBindingActions = map[string]func(*View, bool, *tcell.EventMouse) bool{
|
|||||||
}
|
}
|
||||||
|
|
||||||
var bindingActions = map[string]func(*View, bool) bool{
|
var bindingActions = map[string]func(*View, bool) bool{
|
||||||
"CursorUp": (*View).CursorUp,
|
"CursorUp": (*View).CursorUp,
|
||||||
"CursorDown": (*View).CursorDown,
|
"CursorDown": (*View).CursorDown,
|
||||||
"CursorPageUp": (*View).CursorPageUp,
|
"CursorPageUp": (*View).CursorPageUp,
|
||||||
"CursorPageDown": (*View).CursorPageDown,
|
"CursorPageDown": (*View).CursorPageDown,
|
||||||
"CursorLeft": (*View).CursorLeft,
|
"CursorLeft": (*View).CursorLeft,
|
||||||
"CursorRight": (*View).CursorRight,
|
"CursorRight": (*View).CursorRight,
|
||||||
"CursorStart": (*View).CursorStart,
|
"CursorStart": (*View).CursorStart,
|
||||||
"CursorEnd": (*View).CursorEnd,
|
"CursorEnd": (*View).CursorEnd,
|
||||||
"SelectToStart": (*View).SelectToStart,
|
"SelectToStart": (*View).SelectToStart,
|
||||||
"SelectToEnd": (*View).SelectToEnd,
|
"SelectToEnd": (*View).SelectToEnd,
|
||||||
"SelectUp": (*View).SelectUp,
|
"SelectUp": (*View).SelectUp,
|
||||||
"SelectDown": (*View).SelectDown,
|
"SelectDown": (*View).SelectDown,
|
||||||
"SelectLeft": (*View).SelectLeft,
|
"SelectLeft": (*View).SelectLeft,
|
||||||
"SelectRight": (*View).SelectRight,
|
"SelectRight": (*View).SelectRight,
|
||||||
"WordRight": (*View).WordRight,
|
"WordRight": (*View).WordRight,
|
||||||
"WordLeft": (*View).WordLeft,
|
"WordLeft": (*View).WordLeft,
|
||||||
"SelectWordRight": (*View).SelectWordRight,
|
"SelectWordRight": (*View).SelectWordRight,
|
||||||
"SelectWordLeft": (*View).SelectWordLeft,
|
"SelectWordLeft": (*View).SelectWordLeft,
|
||||||
"DeleteWordRight": (*View).DeleteWordRight,
|
"DeleteWordRight": (*View).DeleteWordRight,
|
||||||
"DeleteWordLeft": (*View).DeleteWordLeft,
|
"DeleteWordLeft": (*View).DeleteWordLeft,
|
||||||
"SelectLine": (*View).SelectLine,
|
"SelectLine": (*View).SelectLine,
|
||||||
"SelectToStartOfLine": (*View).SelectToStartOfLine,
|
"SelectToStartOfLine": (*View).SelectToStartOfLine,
|
||||||
"SelectToEndOfLine": (*View).SelectToEndOfLine,
|
"SelectToEndOfLine": (*View).SelectToEndOfLine,
|
||||||
"ParagraphPrevious": (*View).ParagraphPrevious,
|
"ParagraphPrevious": (*View).ParagraphPrevious,
|
||||||
"ParagraphNext": (*View).ParagraphNext,
|
"ParagraphNext": (*View).ParagraphNext,
|
||||||
"InsertNewline": (*View).InsertNewline,
|
"InsertNewline": (*View).InsertNewline,
|
||||||
"InsertSpace": (*View).InsertSpace,
|
"InsertSpace": (*View).InsertSpace,
|
||||||
"Backspace": (*View).Backspace,
|
"Backspace": (*View).Backspace,
|
||||||
"Delete": (*View).Delete,
|
"Delete": (*View).Delete,
|
||||||
"InsertTab": (*View).InsertTab,
|
"InsertTab": (*View).InsertTab,
|
||||||
"Save": (*View).Save,
|
"Save": (*View).Save,
|
||||||
"SaveAll": (*View).SaveAll,
|
"SaveAll": (*View).SaveAll,
|
||||||
"SaveAs": (*View).SaveAs,
|
"SaveAs": (*View).SaveAs,
|
||||||
"Find": (*View).Find,
|
"Find": (*View).Find,
|
||||||
"FindNext": (*View).FindNext,
|
"FindNext": (*View).FindNext,
|
||||||
"FindPrevious": (*View).FindPrevious,
|
"FindPrevious": (*View).FindPrevious,
|
||||||
"Center": (*View).Center,
|
"Center": (*View).Center,
|
||||||
"Undo": (*View).Undo,
|
"Undo": (*View).Undo,
|
||||||
"Redo": (*View).Redo,
|
"Redo": (*View).Redo,
|
||||||
"Copy": (*View).Copy,
|
"Copy": (*View).Copy,
|
||||||
"Cut": (*View).Cut,
|
"Cut": (*View).Cut,
|
||||||
"CutLine": (*View).CutLine,
|
"CutLine": (*View).CutLine,
|
||||||
"DuplicateLine": (*View).DuplicateLine,
|
"DuplicateLine": (*View).DuplicateLine,
|
||||||
"DeleteLine": (*View).DeleteLine,
|
"DeleteLine": (*View).DeleteLine,
|
||||||
"MoveLinesUp": (*View).MoveLinesUp,
|
"MoveLinesUp": (*View).MoveLinesUp,
|
||||||
"MoveLinesDown": (*View).MoveLinesDown,
|
"MoveLinesDown": (*View).MoveLinesDown,
|
||||||
"IndentSelection": (*View).IndentSelection,
|
"IndentSelection": (*View).IndentSelection,
|
||||||
"OutdentSelection": (*View).OutdentSelection,
|
"OutdentSelection": (*View).OutdentSelection,
|
||||||
"OutdentLine": (*View).OutdentLine,
|
"OutdentLine": (*View).OutdentLine,
|
||||||
"Paste": (*View).Paste,
|
"Paste": (*View).Paste,
|
||||||
"PastePrimary": (*View).PastePrimary,
|
"PastePrimary": (*View).PastePrimary,
|
||||||
"SelectAll": (*View).SelectAll,
|
"SelectAll": (*View).SelectAll,
|
||||||
"OpenFile": (*View).OpenFile,
|
"OpenFile": (*View).OpenFile,
|
||||||
"Start": (*View).Start,
|
"Start": (*View).Start,
|
||||||
"End": (*View).End,
|
"End": (*View).End,
|
||||||
"PageUp": (*View).PageUp,
|
"PageUp": (*View).PageUp,
|
||||||
"PageDown": (*View).PageDown,
|
"PageDown": (*View).PageDown,
|
||||||
"HalfPageUp": (*View).HalfPageUp,
|
"HalfPageUp": (*View).HalfPageUp,
|
||||||
"HalfPageDown": (*View).HalfPageDown,
|
"HalfPageDown": (*View).HalfPageDown,
|
||||||
"StartOfLine": (*View).StartOfLine,
|
"StartOfLine": (*View).StartOfLine,
|
||||||
"EndOfLine": (*View).EndOfLine,
|
"EndOfLine": (*View).EndOfLine,
|
||||||
"ToggleHelp": (*View).ToggleHelp,
|
"ToggleHelp": (*View).ToggleHelp,
|
||||||
"ToggleKeyMenu": (*View).ToggleKeyMenu,
|
"ToggleKeyMenu": (*View).ToggleKeyMenu,
|
||||||
"ToggleRuler": (*View).ToggleRuler,
|
"ToggleRuler": (*View).ToggleRuler,
|
||||||
"JumpLine": (*View).JumpLine,
|
"JumpLine": (*View).JumpLine,
|
||||||
"ClearStatus": (*View).ClearStatus,
|
"ClearStatus": (*View).ClearStatus,
|
||||||
"ShellMode": (*View).ShellMode,
|
"ShellMode": (*View).ShellMode,
|
||||||
"CommandMode": (*View).CommandMode,
|
"CommandMode": (*View).CommandMode,
|
||||||
"ToggleOverwriteMode": (*View).ToggleOverwriteMode,
|
"ToggleOverwriteMode": (*View).ToggleOverwriteMode,
|
||||||
"Escape": (*View).Escape,
|
"Escape": (*View).Escape,
|
||||||
"Quit": (*View).Quit,
|
"Quit": (*View).Quit,
|
||||||
"QuitAll": (*View).QuitAll,
|
"QuitAll": (*View).QuitAll,
|
||||||
"AddTab": (*View).AddTab,
|
"AddTab": (*View).AddTab,
|
||||||
"PreviousTab": (*View).PreviousTab,
|
"PreviousTab": (*View).PreviousTab,
|
||||||
"NextTab": (*View).NextTab,
|
"NextTab": (*View).NextTab,
|
||||||
"NextSplit": (*View).NextSplit,
|
"NextSplit": (*View).NextSplit,
|
||||||
"PreviousSplit": (*View).PreviousSplit,
|
"PreviousSplit": (*View).PreviousSplit,
|
||||||
"Unsplit": (*View).Unsplit,
|
"Unsplit": (*View).Unsplit,
|
||||||
"VSplit": (*View).VSplitBinding,
|
"VSplit": (*View).VSplitBinding,
|
||||||
"HSplit": (*View).HSplitBinding,
|
"HSplit": (*View).HSplitBinding,
|
||||||
"ToggleMacro": (*View).ToggleMacro,
|
"ToggleMacro": (*View).ToggleMacro,
|
||||||
"PlayMacro": (*View).PlayMacro,
|
"PlayMacro": (*View).PlayMacro,
|
||||||
"Suspend": (*View).Suspend,
|
"Suspend": (*View).Suspend,
|
||||||
"ScrollUp": (*View).ScrollUpAction,
|
"ScrollUp": (*View).ScrollUpAction,
|
||||||
"ScrollDown": (*View).ScrollDownAction,
|
"ScrollDown": (*View).ScrollDownAction,
|
||||||
"SpawnMultiCursor": (*View).SpawnMultiCursor,
|
"SpawnMultiCursor": (*View).SpawnMultiCursor,
|
||||||
"SpawnMultiCursorSelect":(*View).SpawnMultiCursorSelect,
|
"SpawnMultiCursorSelect": (*View).SpawnMultiCursorSelect,
|
||||||
"RemoveMultiCursor": (*View).RemoveMultiCursor,
|
"RemoveMultiCursor": (*View).RemoveMultiCursor,
|
||||||
"RemoveAllMultiCursors": (*View).RemoveAllMultiCursors,
|
"RemoveAllMultiCursors": (*View).RemoveAllMultiCursors,
|
||||||
"SkipMultiCursor": (*View).SkipMultiCursor,
|
"SkipMultiCursor": (*View).SkipMultiCursor,
|
||||||
"JumpToMatchingBrace": (*View).JumpToMatchingBrace,
|
"JumpToMatchingBrace": (*View).JumpToMatchingBrace,
|
||||||
|
|
||||||
// This was changed to InsertNewline but I don't want to break backwards compatibility
|
// This was changed to InsertNewline but I don't want to break backwards compatibility
|
||||||
"InsertEnter": (*View).InsertNewline,
|
"InsertEnter": (*View).InsertNewline,
|
||||||
@@ -601,7 +601,7 @@ func DefaultBindings() map[string]string {
|
|||||||
"Ctrl-MouseLeft": "MouseMultiCursor",
|
"Ctrl-MouseLeft": "MouseMultiCursor",
|
||||||
|
|
||||||
"Alt-n": "SpawnMultiCursor",
|
"Alt-n": "SpawnMultiCursor",
|
||||||
"CtrlM": "SpawnMultiCursorSelect",
|
"Alt-m": "SpawnMultiCursorSelect",
|
||||||
"Alt-p": "RemoveMultiCursor",
|
"Alt-p": "RemoveMultiCursor",
|
||||||
"Alt-c": "RemoveAllMultiCursors",
|
"Alt-c": "RemoveAllMultiCursors",
|
||||||
"Alt-x": "SkipMultiCursor",
|
"Alt-x": "SkipMultiCursor",
|
||||||
|
|||||||
@@ -95,6 +95,7 @@ can change it!
|
|||||||
| Alt+P | Remove latest multiple cursor |
|
| Alt+P | Remove latest multiple cursor |
|
||||||
| Alt+C | Remove all multiple cursors (cancel) |
|
| Alt+C | Remove all multiple cursors (cancel) |
|
||||||
| Alt+X | Skip multiple cursor selection |
|
| Alt+X | Skip multiple cursor selection |
|
||||||
|
| Alt+M | Spawn a new cursor at the beginning of every line in the current selection |
|
||||||
| Ctrl-MouseLeft | Place a multiple cursor at any location |
|
| Ctrl-MouseLeft | Place a multiple cursor at any location |
|
||||||
|
|
||||||
### Other
|
### Other
|
||||||
|
|||||||
@@ -215,6 +215,7 @@ Suspend (Unix only)
|
|||||||
ScrollUp
|
ScrollUp
|
||||||
ScrollDown
|
ScrollDown
|
||||||
SpawnMultiCursor
|
SpawnMultiCursor
|
||||||
|
SpawnMultiCursorSelect
|
||||||
RemoveMultiCursor
|
RemoveMultiCursor
|
||||||
RemoveAllMultiCursors
|
RemoveAllMultiCursors
|
||||||
SkipMultiCursor
|
SkipMultiCursor
|
||||||
@@ -464,7 +465,7 @@ MouseWheelRight
|
|||||||
|
|
||||||
// Multiple cursors bindings
|
// Multiple cursors bindings
|
||||||
"Alt-n": "SpawnMultiCursor",
|
"Alt-n": "SpawnMultiCursor",
|
||||||
"CtrlM": "SpawnMultiCursorSelect",
|
"Alt-m": "SpawnMultiCursorSelect",
|
||||||
"Alt-p": "RemoveMultiCursor",
|
"Alt-p": "RemoveMultiCursor",
|
||||||
"Alt-c": "RemoveAllMultiCursors",
|
"Alt-c": "RemoveAllMultiCursors",
|
||||||
"Alt-x": "SkipMultiCursor",
|
"Alt-x": "SkipMultiCursor",
|
||||||
|
|||||||
Reference in New Issue
Block a user