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