24 #ifndef KATE_VI_NORMAL_MODE_INCLUDED
25 #define KATE_VI_NORMAL_MODE_INCLUDED
39 #include <ktexteditor/cursor.h>
59 bool commandEnterInsertMode();
60 bool commandEnterInsertModeAppend();
61 bool commandEnterInsertModeAppendEOL();
62 bool commandEnterInsertModeBeforeFirstNonBlankInLine();
63 bool commandEnterInsertModeLast();
65 bool commandEnterVisualMode();
66 bool commandEnterVisualLineMode();
67 bool commandEnterVisualBlockMode();
68 bool commandReselectVisual();
69 bool commandToOtherEnd();
71 bool commandEnterReplaceMode();
74 bool commandDeleteToEOL();
75 bool commandDeleteLine();
77 bool commandMakeLowercase();
78 bool commandMakeLowercaseLine();
79 bool commandMakeUppercase();
80 bool commandMakeUppercaseLine();
81 bool commandChangeCase();
82 bool commandChangeCaseRange();
83 bool commandChangeCaseLine();
85 bool commandOpenNewLineUnder();
86 bool commandOpenNewLineOver();
88 bool commandJoinLines();
91 bool commandChangeLine();
92 bool commandChangeToEOL();
93 bool commandSubstituteChar();
94 bool commandSubstituteLine();
97 bool commandYankLine();
98 bool commandYankToEOL();
101 bool commandPasteBefore();
103 bool commandgPaste();
104 bool commandgPasteBefore();
106 bool commandIndentedPaste();
107 bool commandIndentedPasteBefore();
109 bool commandDeleteChar();
110 bool commandDeleteCharBackward();
112 bool commandReplaceCharacter();
114 bool commandSwitchToCmdLine();
115 bool commandSearchBackward();
116 bool commandSearchForward();
120 bool commandSetMark();
122 bool commandIndentLine();
123 bool commandUnindentLine();
124 bool commandIndentLines();
125 bool commandUnindentLines();
127 bool commandScrollPageDown();
128 bool commandScrollPageUp();
129 bool commandScrollHalfPageUp();
130 bool commandScrollHalfPageDown();
132 bool commandCenterView(
bool onFirst);
133 bool commandCenterViewOnNonBlank();
134 bool commandCenterViewOnCursor();
135 bool commandTopView(
bool onFirst);
136 bool commandTopViewOnNonBlank();
137 bool commandTopViewOnCursor();
138 bool commandBottomView(
bool onFirst);
139 bool commandBottomViewOnNonBlank();
140 bool commandBottomViewOnCursor();
144 bool commandPrintCharacterCode();
146 bool commandRepeatLastChange();
148 bool commandAlignLine();
149 bool commandAlignLines();
151 bool commandAddToNumber();
152 bool commandSubtractFromNumber();
154 bool commandPrependToBlock();
155 bool commandAppendToBlock();
157 bool commandGoToNextJump();
158 bool commandGoToPrevJump();
160 bool commandSwitchToLeftView();
161 bool commandSwitchToUpView();
162 bool commandSwitchToDownView();
163 bool commandSwitchToRightView();
164 bool commandSwitchToNextView();
166 bool commandSplitHoriz();
167 bool commandSplitVert();
169 bool commandSwitchToNextTab();
170 bool commandSwitchToPrevTab();
172 bool commandFormatLine();
173 bool commandFormatLines();
175 bool commandCollapseToplevelNodes();
176 bool commandCollapseLocal();
177 bool commandExpandAll();
178 bool commandExpandLocal();
179 bool commandToggleRegionVisibility();
181 bool commandStartRecordingMacro();
182 bool commandReplayMacro();
184 bool commandCloseWrite();
185 bool commandCloseNocheck();
294 void addCurrentPositionToJumpList();
296 virtual void reset();
298 void beginMonitoringDocumentChanges();
301 void initializeCommands();
302 QRegExp generateMatchingItemRegex();
310 Cursor cursorPosAtEndOfPaste(
const Cursor& pasteLocation,
const QString& pastedText);
312 void joinLines(
unsigned int from,
unsigned int to)
const;
313 void reformatLines(
unsigned int from,
unsigned int to)
const;
323 int getFirstNonBlank(
int line = -1)
const;
327 Cursor findSentenceStart();
328 Cursor findSentenceEnd();
329 Cursor findParagraphStart();
330 Cursor findParagraphEnd();
343 int m_motionOperatorIndex;
376 void addHighlightYank(
const Range& range);
385 bool waitingForRegisterOrCharToSearch();
387 void textInserted(KTextEditor::Document* document, KTextEditor::Range range);
388 void textRemoved(KTextEditor::Document*,KTextEditor::Range);
389 void undoBeginning();
392 void updateYankHighlightAttrib();
393 void clearYankHighlight();
394 void aboutToDeleteMovingInterfaceContent();
KateViKeyParser * m_keyParser
bool m_commandShouldKeepSelection
Cursor m_positionWhenIncrementalSearchBegan
QVector< int > m_matchingCommands
#define KATEPART_TESTS_EXPORT
bool m_pendingResetIsDueToExit
QVector< KateViCommand * > m_commands
virtual bool handleKeypress(const QKeyEvent *e)=0
bool m_lastMotionWasLinewiseInnerBlock
QVector< int > m_matchingMotions
Commands for the vi normal mode.
bool m_isRepeatedTFcommand
QVector< KateViMotion * > m_motions
combined class for motions and text objects.
QStack< int > m_awaitingMotionOrTextObject
bool motionWillBeUsedWithCommand()
Cursor m_currentChangeEndMarker
bool m_findWaitingForChar
bool m_motionCanChangeWholeVisualModeSelection
for encoding keypresses w/ modifiers into an internal QChar representation and back again to a descri...
QSet< KTextEditor::MovingRange * > m_highlightedYanks
QHash< QString, QString > m_matchingItems
KTextEditor::Attribute::Ptr m_highlightYankAttribute
uint m_scroll_count_limit