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