KTextEditor
10#ifndef KATEVI_VISUAL_VI_MODE_H
11#define KATEVI_VISUAL_VI_MODE_H
13#include <ktexteditor/range.h>
14#include <vimode/modes/normalvimode.h>
18class InputModeManager;
23 explicit VisualViMode(InputModeManager *viInputModeManager, KTextEditor::ViewPrivate *view, KateViewInternal *viewInternal);
27 bool isVisualLine()
const
29 return m_mode == VisualLineMode;
32 bool isVisualBlock()
const
34 return m_mode == VisualBlockMode;
37 void switchStartEnd();
38 void reset()
override;
39 void setVisualModeType(
const ViMode mode);
40 void saveRangeMarks();
42 void setStart(
const KTextEditor::Cursor c)
47 KTextEditor::Cursor getStart()
52 void goToPos(
const KTextEditor::Cursor c);
54 ViMode getLastVisualMode()
const
56 return m_lastVisualMode;
59 const KTextEditor::Cursor getStart()
const
65 void selectLines(KTextEditor::Range range);
68 void selectInclusive(
const KTextEditor::Cursor c1,
const KTextEditor::Cursor c2);
71 void selectBlockInclusive(
const KTextEditor::Cursor c1,
const KTextEditor::Cursor c2);
80 void goToPos(
const Range &r)
override;
86 const std::vector<Command> &commands()
override;
92 const std::vector<Motion> &motions()
override;
100 void updateSelection();
103 KTextEditor::Cursor m_start;
104 ViMode m_mode, m_lastVisualMode;
Commands for the vi normal mode.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:55:25 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.