Example #1
0
func (m Mover) Exec(editor *editor.CodeEditor) {
	if editor.Controller().Deselect(true) {
		return
	}
	m.EditorCommand.Exec(editor)
}
Example #2
0
func (SelectLineStart) Exec(editor *editor.CodeEditor) {
	editor.Controller().SelectHome()
}
Example #3
0
func (s Scroller) Exec(editor *editor.CodeEditor) {
	s.EditorCommand.Exec(editor)
	editor.ScrollToRune(editor.Controller().FirstCaret())
}
Example #4
0
func (SelectLineEnd) Exec(editor *editor.CodeEditor) {
	editor.Controller().SelectEnd()
}
Example #5
0
func (LineStart) Exec(editor *editor.CodeEditor) {
	editor.Controller().MoveHome()
}
Example #6
0
func (SelectNextLine) Exec(editor *editor.CodeEditor) {
	editor.Controller().SelectDown()
}
Example #7
0
func (LineEnd) Exec(editor *editor.CodeEditor) {
	editor.Controller().MoveEnd()
}
Example #8
0
func (NextWord) Exec(editor *editor.CodeEditor) {
	editor.Controller().MoveRightByWord()
}
Example #9
0
func (SelectNextChar) Exec(editor *editor.CodeEditor) {
	editor.Controller().SelectRight()
}
Example #10
0
func (SelectPrevWord) Exec(editor *editor.CodeEditor) {
	editor.Controller().SelectLeftByWord()
}
Example #11
0
func (NextChar) Exec(editor *editor.CodeEditor) {
	editor.Controller().MoveRight()
}
Example #12
0
func (SelectPrevChar) Exec(editor *editor.CodeEditor) {
	editor.Controller().SelectLeft()
}
Example #13
0
func (PrevWord) Exec(editor *editor.CodeEditor) {
	editor.Controller().MoveLeftByWord()
}
Example #14
0
func (PrevChar) Exec(editor *editor.CodeEditor) {
	editor.Controller().MoveLeft()
}
Example #15
0
func (PrevLine) Exec(editor *editor.CodeEditor) {
	editor.Controller().MoveUp()
}
Example #16
0
func (SelectNextWord) Exec(editor *editor.CodeEditor) {
	editor.Controller().SelectRightByWord()
}
Example #17
0
func (SelectPrevLine) Exec(editor *editor.CodeEditor) {
	editor.Controller().SelectUp()
}
Example #18
0
func (NextLine) Exec(editor *editor.CodeEditor) {
	editor.Controller().MoveDown()
}