Kate
katevinormalmode.cpp
Go to the documentation of this file.
122 if ( keyCode == Qt::Key_Escape || (keyCode == Qt::Key_C && e->modifiers() == Qt::ControlModifier) || (keyCode == Qt::Key_BracketLeft && e->modifiers() == Qt::ControlModifier)) {
125 // Vim in weird as if we e.g. i<ctrl-o><ctrl-c> it claims (in the status bar) to still be in insert mode,
126 // but behaves as if it's in normal mode. I'm treating the status bar thing as a bug and just exiting
147 && (!waitingForRegisterOrCharToSearch) // Not in the middle of "find char" motions or replacing char.
202 const Cursor endOfWordOrWORD = (isWORD ? findWORDEnd(currentPosition.line(), currentPosition.column()-1, true) :
244 //kDebug( 13070 ) << "removing " << m_commands.at( m_matchingCommands.at( i ) )->pattern() << ", size before remove is " << m_matchingCommands.size();
268 if ( m_commands.at( i )->needsMotion() && m_commands.at( i )->pattern().length() == m_keys.size() ) {
276 int checkFrom = ( m_awaitingMotionOrTextObject.isEmpty() ? 0 : m_awaitingMotionOrTextObject.top() );
294 //kDebug( 13070 ) << "\tchecking " << m_keys.mid( checkFrom ) << " against " << m_motions.at( i )->pattern();
308 m_motionCanChangeWholeVisualModeSelection = m_motions.at( i )->canChangeWholeVisualModeSelection();
314 r.endLine = m_view->textFolding().visibleLineToLine( qMax (vline+delta, 0) /* ensure we have a valid line */ );
414 //kDebug( 13070 ) << "'" << m_keys << "' AWAITING MOTION OR TO (INDEX): " << ( m_awaitingMotionOrTextObject.isEmpty() ? 0 : m_awaitingMotionOrTextObject.top() );
990 Range range = Range(m_commandRange.startLine, m_commandRange.startColumn, m_commandRange.endLine, m_commandRange.endColumn);
1095 // Position cursor just before first non-whitesspace character of what was the last line joined.
1233 KateViRange yankRange(linenum, 0, linenum + getCount() - 1, getLine(linenum + getCount() - 1).length(), ViMotion::InclusiveMotion);
1299 // If linewise, cursor will be at the beginning of the line *after* the last line of pasted text,
1300 // unless that line is the last line of the document; then it will be placed at the beginning of the
1307 // As with commandgPaste, except that it pastes *at* the current cursor position or, if linewise,
1327 KateViRange r( c.line(), c.column(), c.line(), c.column()+getCount(), ViMotion::ExclusiveMotion );
1353 KateViRange r( c.line(), c.column()-getCount(), c.line(), c.column(), ViMotion::ExclusiveMotion );
1548 doc()->indent( KTextEditor::Range( line1, 0, line2, doc()->lineLength( line2 ) ), -getCount() );
1984 // Special case: If we're already on the very last character in the document, the motion should be
2408 const bool placeCursorAtEndOfMatch = m_viInputModeManager->lastSearchPlacesCursorAtEndOfMatch();
2410 KateViRange match = findPatternForMotion( pattern, !backwards, caseSensitive, m_view->cursorPosition(), getCount() );
2427 const bool placeCursorAtEndOfMatch = m_viInputModeManager->lastSearchPlacesCursorAtEndOfMatch();
2429 KateViRange match = findPatternForMotion( pattern, backwards, caseSensitive, m_view->cursorPosition(), getCount() );
2771 const KateViRange match = findPatternForMotion( word, false, false, getWordRangeUnderCursor().start(), getCount() );
2786 // Search from the beginning of the word under the cursor, so that the current word isn't found
2788 const KateViRange match = findPatternForMotion( word, true, false, getWordRangeUnderCursor().start(), getCount() );
2795 lines_to_go = m_viewInternal->endLine() - linesDisplayed()- m_view->cursorPosition().line() + 1;
2814 lines_to_go = m_viewInternal->endLine() - linesDisplayed()/2 - m_view->cursorPosition().line();
2976 const bool swallowPrecedingSpaces = (c2.column() == doc()->lineLength(c2.line()) - 1 && !doc()->character(c2).isSpace() ) || startedOnSpace || swallowCarriageReturnAtEndOfLine;
2993 KateViRange r( c.line(), c.column(), !swallowCarriageReturnAtEndOfLine ? ViMotion::InclusiveMotion : ViMotion::ExclusiveMotion );
3088 const bool swallowPrecedingSpaces = (c2.column() == doc()->lineLength(c2.line()) - 1 && !doc()->character(c2).isSpace() ) || startedOnSpace || swallowCarriageReturnAtEndOfLine;
3105 KateViRange r( c.line(), c.column(), !swallowCarriageReturnAtEndOfLine ? ViMotion::InclusiveMotion : ViMotion::ExclusiveMotion );
3213 const KateViRange allBetweenCurlyBrackets = findSurroundingBrackets( '{', '}', true, '{', '}' );
3220 const bool openingBraceIsLastCharOnLine = innerCurlyBracket.startColumn == doc()->line(innerCurlyBracket.startLine).length();
3223 const QString textLeadingClosingBracket = doc()->line(innerCurlyBracket.endLine).mid(0, innerCurlyBracket.endColumn + 1);
3224 const bool closingBracketHasLeadingNonWhitespace = !textLeadingClosingBracket.trimmed().isEmpty();
3248 // The line containing the end bracket is left alone if the end bracket is preceded by just whitespace,
3500 // returns the operation mode that should be used. this is decided by using the following heuristic:
3504 // 4. there are some motion that makes all operator charwise, if we have one of them mode will be CharWise
3555 const QString leadingWhiteSpaceOnCurrentLine = doc()->line(pasteAt.line()).mid(0, doc()->line(pasteAt.line()).indexOf(QRegExp("[^\\s]")));
3556 const QString leadingWhiteSpaceOnFirstPastedLine = textToInsert.mid(0, textToInsert.indexOf(QRegExp("[^\\s]")));
3566 textToInsert.replace(QString('\n') + leadingWhiteSpaceOnFirstPastedLine, QString('\n') + leadingWhiteSpaceOnCurrentLine);
3572 pasteAt.setColumn( doc()->lineLength( pasteAt.line() ) ); // paste after the current line and ...
3620 Cursor KateViNormalMode::cursorPosAtEndOfPaste(const Cursor& pasteLocation, const QString& pastedText)
3656 void KateViNormalMode::shrinkRangeAroundCursor(KateViRange& toShrink, const KateViRange& rangeToShrinkTo)
3725 KateViRange r(0, 0, m_view->doc()->lines(), m_view->doc()->line(m_view->doc()->lastLine()).length(), ViMotion::InclusiveMotion);
3749 m_highlightYankAttribute->setDynamicAttribute (KTextEditor::Attribute::ActivateMouseIn, mouseInAttribute);
3750 m_highlightYankAttribute->dynamicAttribute (KTextEditor::Attribute::ActivateMouseIn)->setBackground(yankedColor);
3783 // Work around the fact that both Normal and Visual mode will have their own m_highlightedYank -
3791 return m_keys.size() > 0 && (lastChar == 'f' || lastChar == 't' || lastChar == 'F' || lastChar == 'T' || lastChar == 'r');
3798 const bool continuesInsertion = range.start().line() == m_currentChangeEndMarker.line() && range.start().column() == m_currentChangeEndMarker.column();
3821 m_viInputModeManager->addMark(doc(), '[', Cursor(m_viInputModeManager->getMarkPosition('[').line(), 0));
3824 m_viInputModeManager->addMark(doc(), ']', Cursor(m_viInputModeManager->getMarkPosition(']').line() + 1, 0));
3825 m_viInputModeManager->addMark(doc(), '.', Cursor(m_viInputModeManager->getMarkPosition('.').line() + 1, 0));
3829 m_viInputModeManager->addMark(doc(), ']', Cursor(m_viInputModeManager->getMarkPosition(']').line(), 0));
3830 m_viInputModeManager->addMark(doc(), '.', Cursor(m_viInputModeManager->getMarkPosition('.').line(), 0));
3853 // Slavishly follow Vim's weird rules: if an undo removes several lines, then all markers should
3854 // be at the beginning of the line after the last line removed, else they should at the beginning
3857 m_viInputModeManager->addMark(doc(), '[', Cursor(m_viInputModeManager->getMarkPosition('[').line() + markerLineAdjustment, 0));
3858 m_viInputModeManager->addMark(doc(), ']', Cursor(m_viInputModeManager->getMarkPosition(']').line() + markerLineAdjustment, 0));
3859 m_viInputModeManager->addMark(doc(), '.', Cursor(m_viInputModeManager->getMarkPosition('.').line() + markerLineAdjustment, 0));
KateViRange motionToLineLast()
Definition: katevinormalmode.cpp:2455
void align(KateView *view, const KTextEditor::Range &range)
Definition: katedocument.cpp:2908
virtual bool insertLine(int line, const QString &s)
Definition: katedocument.cpp:701
Definition: kateviinputmodemanager.h:50
Cursor & start()
void replayMacro(QChar macroRegister)
Definition: kateviinputmodemanager.cpp:345
void finishRecordingMacro()
Definition: kateviinputmodemanager.cpp:333
bool commandEnterInsertModeAppendEOL()
start insert mode after the last character of the line
Definition: katevinormalmode.cpp:596
bool commandEnterInsertModeAppend()
enter insert mode after the current character
Definition: katevinormalmode.cpp:570
bool paste(KateViNormalMode::PasteLocation pasteLocation, bool isgPaste, bool isIndentedPaste)
Definition: katevinormalmode.cpp:3526
Cursor findWORDEnd(int fromLine, int fromColumn, bool onlyCurrentLine=false) const
Definition: katevimodebase.cpp:650
QScriptValue i18n(QScriptContext *context, QScriptEngine *engine)
i18n("text", arguments [optional])
Definition: katescripthelpers.cpp:186
bool getTemporaryNormalMode()
Definition: kateviinputmodemanager.h:229
Cursor findPrevWORDStart(int fromLine, int fromColumn, bool onlyCurrentLine=false) const
Definition: katevimodebase.cpp:562
Definition: katerenderer.h:71
OperationMode getRegisterFlag(const QChar ®) const
Definition: katevimodebase.cpp:963
virtual KTextEditor::MovingRange * newMovingRange(const KTextEditor::Range &range, KTextEditor::MovingRange::InsertBehaviors insertBehaviors=KTextEditor::MovingRange::DoNotExpand, KTextEditor::MovingRange::EmptyBehavior emptyBehavior=KTextEditor::MovingRange::AllowEmpty)
Create a new moving range for this document.
Definition: katedocument.cpp:4742
void reformatLines(unsigned int from, unsigned int to) const
Definition: katevinormalmode.cpp:3649
Definition: katevimodebase.h:50
KateViRange findSurroundingQuotes(const QChar &c, bool inner=false) const
Definition: katevimodebase.cpp:702
bool m_commandShouldKeepSelection
Definition: katevinormalmode.h:318
bool commandPrintCharacterCode()
Definition: katevinormalmode.cpp:1609
KateViRange motionToEndOfWORD()
Definition: katevinormalmode.cpp:2095
KateViRange motionToNextBraceBlockEnd()
Definition: katevinormalmode.cpp:2705
const QString getWordUnderCursor() const
Definition: katevimodebase.cpp:146
KateViRange motionToIncrementalSearchMatch()
Definition: katevinormalmode.cpp:2915
const QChar getCharUnderCursor() const
Definition: katevimodebase.cpp:133
KateViRange motionToNextBraceBlockStart()
Definition: katevinormalmode.cpp:2649
void addMark(KateDocument *doc, const QChar &mark, const KTextEditor::Cursor &pos, const bool moveoninsert=true, const bool showmark=true)
Add a mark to the document.
Definition: kateviinputmodemanager.cpp:725
Cursor m_positionWhenIncrementalSearchBegan
Definition: katevinormalmode.h:347
bool commandMakeUppercase()
Definition: katevinormalmode.cpp:863
KTextEditor::MovingRange *& highlightedYankForDocument()
Definition: katevinormalmode.cpp:3781
bool m_currentMotionWasVisualLineUpOrDown
Definition: katevimodebase.h:170
QVector< int > m_matchingCommands
Definition: katevinormalmode.h:303
bool commandEnterVisualLineMode()
Definition: katevinormalmode.cpp:638
void setCaretStyle(KateRenderer::caretStyles style, bool repaint=false)
Set the caret's style.
Definition: kateview.cpp:2388
bool commandScrollHalfPageDown()
Definition: katevinormalmode.cpp:1583
bool commandEnterVisualMode()
Definition: katevinormalmode.cpp:693
void setText(const QString &text, bool selected=true)
Definition: kateviewhelpers.cpp:839
bool waitingForRegisterOrCharToSearch()
Definition: katevinormalmode.cpp:3788
KateViRange motionWORDForward()
Definition: katevinormalmode.cpp:2034
QRegExp generateMatchingItemRegex()
Definition: katevinormalmode.cpp:3473
int visibleLineToLine(int visibleLine) const
Convert a visible line number to a line number in the text buffer.
Definition: katetextfolding.cpp:422
KateViRange motionToMarkLine()
Definition: katevinormalmode.cpp:2515
Definition: katevimodebase.h:64
Definition: kateviinputmodemanager.h:51
void setLastSearchBackwards(bool b)
set search direction of last search.
Definition: kateviinputmodemanager.h:219
void pageUp(bool sel=false, bool half=false)
Definition: kateviewinternal.cpp:1513
void executeCommand(const KateViCommand *cmd)
Definition: katevinormalmode.cpp:510
KateViRange motionToBeforeParagraph()
Definition: katevinormalmode.cpp:2856
void showViModeEmulatedCommandBar()
Definition: kateview.cpp:1540
bool commandEnterReplaceMode()
Definition: katevinormalmode.cpp:715
KateViRange textObjectAComma()
Definition: katevinormalmode.cpp:3276
void startRecordingMacro(QChar macroRegister)
Definition: kateviinputmodemanager.cpp:322
KateViRange textObjectInnerWORD()
Definition: katevinormalmode.cpp:3115
void setDoNotMapNextKeypress()
Definition: katevikeymapper.cpp:130
bool m_pendingResetIsDueToExit
Definition: katevinormalmode.h:335
Definition: kateviinputmodemanager.h:49
const QChar KeyEventToQChar(const QKeyEvent &keyEvent)
Definition: katevikeyparser.cpp:661
virtual void setRange(const Range &range)
bool setCursorPosition(KTextEditor::Cursor position)
Definition: kateview.cpp:2393
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
KateViRange motionToLineFirst()
Definition: katevinormalmode.cpp:2442
bool commandgPasteBefore()
Definition: katevinormalmode.cpp:1309
KateViRange motionToPrevVisualLine()
Definition: katevinormalmode.cpp:2852
void indent(KTextEditor::Range range, int change)
Definition: katedocument.cpp:2898
const QString getRange(KateViRange &r, OperationMode mode=LineWise) const
Definition: katevimodebase.cpp:91
KateViRange motionToFirstCharacterOfLine()
Definition: katevinormalmode.cpp:2195
bool commandReplaceCharacter()
Definition: katevinormalmode.cpp:1375
KateViInputModeManager * getViInputModeManager()
Definition: kateview.cpp:1567
bool commandOpenNewLineOver()
Definition: katevinormalmode.cpp:1024
bool commandCollapseLocal()
Definition: katevinormalmode.cpp:1839
Cursor cursorPosAtEndOfPaste(const Cursor &pasteLocation, const QString &pastedText)
Definition: katevinormalmode.cpp:3620
KateViRange textObjectAInequalitySign()
Definition: katevinormalmode.cpp:3264
virtual void setAttributeOnlyForViews(bool onlyForViews)=0
Definition: kateviinsertmode.h:42
KateViRange goLineUpDown(int lines)
method for moving up or down one or more lines note: the sticky column is always a virtual column ...
Definition: katevimodebase.cpp:1003
virtual const KTextEditor::Range & selectionRange() const
Definition: kateview.cpp:2760
bool commandChangeCaseRange()
Definition: katevinormalmode.cpp:984
void addJump(KTextEditor::Cursor cursor)
Definition: kateviinputmodemanager.cpp:656
KateViRange goVisualLineUpDown(int lines)
Definition: katevimodebase.cpp:1057
bool commandIndentedPaste()
Definition: katevinormalmode.cpp:1314
void setBlockPrependMode(KateViRange blockRange)
Definition: kateviinsertmode.cpp:550
virtual bool replaceText(const KTextEditor::Range &range, const QString &s, bool block=false)
Definition: katedocument.cpp:4687
Cursor findPrevWORDEnd(int fromLine, int fromColumn, bool onlyCurrentLine=false) const
Definition: katevimodebase.cpp:461
virtual bool insertText(const KTextEditor::Cursor &position, const QString &s, bool block=false)
Definition: katedocument.cpp:530
KateViRange motionToScreenColumn()
Definition: katevinormalmode.cpp:2473
KateViRange motionDownToFirstNonBlank()
Definition: katevinormalmode.cpp:1949
KateViRange motionToNextVisualLine()
Definition: katevinormalmode.cpp:2848
const QString getLastSearchPattern() const
The current search pattern.
Definition: kateviinputmodemanager.cpp:421
bool commandSwitchToRightView()
Definition: katevinormalmode.cpp:1750
bool commandScrollPageDown()
Definition: katevinormalmode.cpp:1553
void fillRegister(const QChar ®, const QString &text, OperationMode flag=CharWise)
Definition: katevimodebase.cpp:968
bool commandCollapseToplevelNodes()
Definition: katevinormalmode.cpp:1805
bool commandEnterInsertModeLast()
enter insert mode at the last insert position
Definition: katevinormalmode.cpp:627
virtual bool isValid() const
bool commandSwitchToPrevTab()
Definition: katevinormalmode.cpp:1780
Definition: katerenderer.h:72
virtual QChar character(const KTextEditor::Cursor &position) const
Definition: katedocument.cpp:388
Definition: katevirange.h:33
Definition: katevimodebase.h:56
QString pattern(Mode mode=Reading)
Definition: katerenderer.h:73
void beginMonitoringDocumentChanges()
Definition: katevinormalmode.cpp:485
void highlightYank(const KateViRange &range)
Definition: katevinormalmode.cpp:3753
KateViRange motionToPreviousBraceBlockEnd()
Definition: katevinormalmode.cpp:2736
KateViRange textObjectInnerQuoteSingle()
Definition: katevinormalmode.cpp:3165
KateViRange textObjectComma(bool inner)
Definition: katevinormalmode.cpp:3720
KateViRange textObjectInnerQuoteDouble()
Definition: katevinormalmode.cpp:3155
KTextEditor::MovingRange * m_highlightedYank
Definition: katevinormalmode.h:338
KTextEditor::Cursor getNextJump(KTextEditor::Cursor)
Definition: katevimodebase.cpp:979
KateViRange motionToEndOfPrevWORD()
Definition: katevinormalmode.cpp:2144
bool commandEnterInsertModeBeforeFirstNonBlankInLine()
Definition: katevinormalmode.cpp:607
bool m_lastMotionWasLinewiseInnerBlock
Definition: katevinormalmode.h:315
Definition: kateviewinternal.h:57
KateViKeyMapper * keyMapper()
Definition: kateviinputmodemanager.cpp:893
virtual void goToPos(const KateViRange &r)
Definition: katevinormalmode.cpp:493
void updateCursor(const Cursor &c) const
Definition: katevimodebase.cpp:937
KTextEditor::Cursor getMarkPosition(const QChar &mark) const
Definition: kateviinputmodemanager.cpp:769
KateViNormalMode * getViNormalMode()
Definition: kateviinputmodemanager.cpp:534
virtual KTextEditor::Cursor documentEnd() const
Definition: katedocument.cpp:4682
void setLastSearchPlacesCursorAtEndOfMatch(bool b)
Definition: kateviinputmodemanager.h:223
Definition: katevivisualmode.h:34
void switchView(Direction direction=Next)
Definition: katevimodebase.cpp:1426
bool commandUnindentLines()
Definition: katevinormalmode.cpp:1539
void init(Mode mode, const QString &initialText=QString())
Definition: kateviemulatedcommandbar.cpp:401
virtual void setAttribute(Attribute::Ptr attribute)=0
bool commandScrollPageUp()
Definition: katevinormalmode.cpp:1563
void joinLines(unsigned int from, unsigned int to) const
Definition: katevinormalmode.cpp:3636
KateViRange motionToEndOfPrevWord()
Definition: katevinormalmode.cpp:2117
Definition: katevimodebase.h:60
KateViRange motionRepeatlastTFBackward()
Definition: katevinormalmode.cpp:2379
const QString getLine(int lineNumber=-1) const
Definition: katevimodebase.cpp:119
bool handleKeypress(const QKeyEvent *e)
parses a key stroke to check if it's a valid (part of) a command
Definition: katevinormalmode.cpp:109
Cursor findWordEnd(int fromLine, int fromColumn, bool onlyCurrentLine=false) const
Definition: katevimodebase.cpp:609
bool commandIndentedPasteBefore()
Definition: katevinormalmode.cpp:1319
Definition: kateview.h:78
Definition: kateviinputmodemanager.h:53
Cursor findNextWordStart(int fromLine, int fromColumn, bool onlyCurrentLine=false) const
Definition: katevimodebase.cpp:317
int lineToVisibleLine(int line) const
Convert a text buffer line to a visible line number.
Definition: katetextfolding.cpp:366
Definition: katevimodebase.h:51
QVector< int > m_matchingMotions
Definition: katevinormalmode.h:304
KateViRange motionWordForward()
Definition: katevinormalmode.cpp:1977
bool commandSwitchToUpView()
Definition: katevinormalmode.cpp:1745
KateViRange motionToNextOccurrence()
Definition: katevinormalmode.cpp:2760
virtual void setView(View *view)=0
KateViRange motionWORDBackward()
Definition: katevinormalmode.cpp:2056
void setUndoMergeAllEdits(bool merge)
Definition: katedocument.cpp:4723
void pageDown(bool sel=false, bool half=false)
Definition: kateviewinternal.cpp:1555
Definition: katevimodebase.h:57
bool commandSwitchToCmdLine()
Definition: katevinormalmode.cpp:1416
Definition: kateviinputmodemanager.h:52
KateViRange motionToAfterParagraph()
Definition: katevinormalmode.cpp:2884
KateViRange motionToCharBackward()
Definition: katevinormalmode.cpp:2315
KateViRange motionToLastLineOfWindow()
Definition: katevinormalmode.cpp:2829
bool commandPrependToBlock()
Definition: katevinormalmode.cpp:1682
KateViNormalMode(KateViInputModeManager *viInputModeManager, KateView *view, KateViewInternal *viewInternal)
Definition: katevinormalmode.cpp:53
bool commandSwitchToNextView()
Definition: katevinormalmode.cpp:1755
bool lastSearchBackwards() const
get search direction of last search.
Definition: kateviinputmodemanager.h:214
int findLineStartingWitchChar(const QChar &c, unsigned int count, bool forward=true) const
Definition: katevimodebase.cpp:904
Definition: kateviinsertmode.h:41
QStack< int > m_awaitingMotionOrTextObject
Definition: katevinormalmode.h:305
Definition: katevirange.h:29
bool commandReselectVisual()
Definition: katevinormalmode.cpp:658
virtual int line() const
bool commandSearchForward()
Definition: katevinormalmode.cpp:1465
KateViRange textObjectABracket()
Definition: katevinormalmode.cpp:3193
void storeLastChangeCommand()
copy the contents of the key events log to m_lastChange so that it can be repeated ...
Definition: kateviinputmodemanager.cpp:278
bool commandSwitchToNextTab()
Definition: katevinormalmode.cpp:1770
KateViRange motionToMiddleLineOfWindow()
Definition: katevinormalmode.cpp:2811
bool motionWillBeUsedWithCommand()
Definition: katevinormalmode.h:306
bool commandMakeUppercaseLine()
Definition: katevinormalmode.cpp:892
QChar getChosenRegister(const QChar &defaultReg) const
Definition: katevimodebase.cpp:945
virtual void setLine(int line)
Cursor m_currentChangeEndMarker
Definition: katevinormalmode.h:343
void yankToClipBoard(QChar chosen_register, QString text)
Definition: katevimodebase.cpp:54
bool commandScrollHalfPageUp()
Definition: katevinormalmode.cpp:1573
bool lastSearchCaseSensitive()
Definition: kateviinputmodemanager.h:225
KateViEmulatedCommandBar * viModeEmulatedCommandBar()
Definition: kateview.cpp:2989
bool deleteRange(KateViRange &r, OperationMode mode=LineWise, bool addToRegister=true)
Definition: katevimodebase.cpp:61
KTextEditor::Cursor getPrevJump(KTextEditor::Cursor)
Definition: katevimodebase.cpp:984
Cursor & end()
bool commandSwitchToDownView()
Definition: katevinormalmode.cpp:1740
KateViInputModeManager * m_viInputModeManager
Definition: katevimodebase.h:177
const QColor & savedLineColor() const
Definition: kateconfig.cpp:2517
KateViRange textObjectInnerInequalitySign()
Definition: katevinormalmode.cpp:3270
KateViRange textObjectAQuoteDouble()
Definition: katevinormalmode.cpp:3150
void setCountedRepeatsBeginOnNewLine(bool countedRepeatsBeginOnNewLine)
Definition: kateviinsertmode.h:80
OperationMode getOperationMode() const
Definition: katevinormalmode.cpp:3505
KateViRange textObjectInnerComma()
Definition: katevinormalmode.cpp:3281
KateViRange textObjectAParen()
Definition: katevinormalmode.cpp:3181
virtual void setZDepth(qreal zDepth)=0
bool commandSubtractFromNumber()
Definition: katevinormalmode.cpp:1675
bool isReplayingLastChange() const
Definition: kateviinputmodemanager.h:153
bool isRecordingMacro()
Definition: kateviinputmodemanager.cpp:340
bool m_motionCanChangeWholeVisualModeSelection
Definition: katevinormalmode.h:316
KateViRange textObjectInnerParen()
Definition: katevinormalmode.cpp:3187
bool commandEnterInsertMode()
enter insert mode at the cursor position
Definition: katevinormalmode.cpp:559
void setLastSearchPattern(const QString &p)
Set the current search pattern.
Definition: kateviinputmodemanager.cpp:433
virtual QString text(const KTextEditor::Range &range, bool blockwise=false) const
Definition: katedocument.cpp:337
bool m_lastMotionWasVisualLineUpOrDown
Definition: katevimodebase.h:169
bool commandGoToNextJump()
Definition: katevinormalmode.cpp:1721
KateViRange motionToEndOfWord()
Definition: katevinormalmode.cpp:2078
bool commandRepeatLastChange()
Definition: katevinormalmode.cpp:1630
bool commandDeleteCharBackward()
Definition: katevinormalmode.cpp:1349
bool commandGoToPrevJump()
Definition: katevinormalmode.cpp:1728
KateViRange motionToPreviousBraceBlockStart()
Definition: katevinormalmode.cpp:2680
QString getRegisterContent(const QChar ®)
Definition: katevimodebase.cpp:952
bool commandUnindentLine()
Definition: katevinormalmode.cpp:1513
KateViRange findSurroundingBrackets(const QChar &c1, const QChar &c2, bool inner, const QChar &nested1, const QChar &nested2) const
Definition: katevimodebase.cpp:769
KateViRange motionToMatchingItem()
Definition: katevinormalmode.cpp:2527
bool commandOpenNewLineUnder()
Definition: katevinormalmode.cpp:1004
Cursor findPrevWordEnd(int fromLine, int fromColumn, bool onlyCurrentLine=false) const
Definition: katevimodebase.cpp:421
KateViInsertMode * getViInsertMode()
Definition: kateviinputmodemanager.cpp:539
ViMode getLastVisualMode() const
Definition: katevivisualmode.h:57
void repeatLastChange()
repeat last change by feeding the contents of m_lastChange to feedKeys()
Definition: kateviinputmodemanager.cpp:314
bool commandToggleRegionVisibility()
Definition: katevinormalmode.cpp:1867
Definition: katevimodebase.h:52
KateViRange textObjectInnerCurlyBracket()
Definition: katevinormalmode.cpp:3211
const Range getWordRangeUnderCursor() const
Definition: katevimodebase.cpp:152
bool commandEnterVisualBlockMode()
Definition: katevinormalmode.cpp:648
KateViVisualMode * getViVisualMode()
Definition: kateviinputmodemanager.cpp:544
bool commandSubstituteLine()
Definition: katevinormalmode.cpp:1198
void shrinkRangeAroundCursor(KateViRange &toShrink, const KateViRange &rangeToShrinkTo)
Definition: katevinormalmode.cpp:3656
KateViRange textObjectInnerWord()
Definition: katevinormalmode.cpp:3003
bool commandCentreViewOnCursor()
Definition: katevinormalmode.cpp:1592
void editStart()
Enclose editor actions with editStart() and editEnd() to group them.
Definition: katedocument.cpp:776
QHash< QString, QString > m_matchingItems
Definition: katevinormalmode.h:329
KTextEditor::Attribute::Ptr m_highlightYankAttribute
Definition: katevinormalmode.h:337
ViMode getCurrentViMode() const
Definition: kateviinputmodemanager.cpp:449
KateViRange textObjectACurlyBracket()
Definition: katevinormalmode.cpp:3205
void appendSearchHistoryItem(const QString &searchHistoryItem)
Definition: kateviglobal.cpp:257
KateViRange motionUpToFirstNonBlank()
Definition: katevinormalmode.cpp:1963
bool commandMakeLowercaseLine()
Definition: katevinormalmode.cpp:845
KateViRange textObjectInnerBracket()
Definition: katevinormalmode.cpp:3199
bool lastSearchPlacesCursorAtEndOfMatch()
Definition: kateviinputmodemanager.h:227
Cursor findPrevWordStart(int fromLine, int fromColumn, bool onlyCurrentLine=false) const
Definition: katevimodebase.cpp:498
bool commandStartRecordingMacro()
Definition: katevinormalmode.cpp:1814
const KShortcut & end()
KateViRange textObjectABackQuote()
Definition: katevinormalmode.cpp:3170
virtual void setColumn(int column)
int column() const
Definition: katevirange.h:29
bool commandAppendToBlock()
Definition: katevinormalmode.cpp:1697
void setTemporaryNormalMode(bool b)
Definition: kateviinputmodemanager.h:231
KateViRange motionRepeatlastTF()
Definition: katevinormalmode.cpp:2356
bool commandSearchBackward()
Definition: katevinormalmode.cpp:1450
KateViRange motionWordBackward()
Definition: katevinormalmode.cpp:2011
virtual bool removeText(const KTextEditor::Range &range, bool block=false)
Definition: katedocument.cpp:633
bool commandSwitchToLeftView()
Definition: katevinormalmode.cpp:1735
bool commandMakeLowercase()
Definition: katevinormalmode.cpp:820
KateViRange textObjectAQuoteSingle()
Definition: katevinormalmode.cpp:3160
void addCurrentPositionToJumpList()
Definition: katevinormalmode.cpp:547
Cursor findNextWORDStart(int fromLine, int fromColumn, bool onlyCurrentLine=false) const
Definition: katevimodebase.cpp:379
KateViRange motionToPrevOccurrence()
Definition: katevinormalmode.cpp:2775
KateViRange motionToFirstLineOfWindow()
Definition: katevinormalmode.cpp:2792
void addToNumberUnderCursor(int count)
Definition: katevimodebase.cpp:1325
KateViRange findPatternForMotion(const QString &pattern, bool backwards, bool caseSensitive, const Cursor &startFrom, int count=1) const
Definition: katevimodebase.cpp:304
void setLastSearchCaseSensitive(bool caseSensitive)
Definition: kateviinputmodemanager.h:221
KateViRange textObjectInnerBackQuote()
Definition: katevinormalmode.cpp:3175
void setBlockAppendMode(KateViRange blockRange, BlockInsert b)
Definition: kateviinsertmode.cpp:559
KTextEditor::Cursor findMatchingBracket()
Definition: kateviewinternal.cpp:742
KateViRange motionFindCharBackward()
Definition: katevinormalmode.cpp:2239
bool commandSubstituteChar()
Definition: katevinormalmode.cpp:1188
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.