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