KateVi::NormalViMode

Search for usage in LXR

#include <normalvimode.h>

Public Member Functions

 NormalViMode (InputModeManager *viInputModeManager, KTextEditor::ViewPrivate *view, KateViewInternal *viewInternal)
 
void beginMonitoringDocumentChanges ()
 
bool commandAbort ()
 
bool commandAddToNumber ()
 
bool commandAlignLine ()
 
bool commandAlignLines ()
 
bool commandAppendToBlock ()
 
bool commandBottomView (bool onFirst)
 
bool commandBottomViewOnCursor ()
 
bool commandBottomViewOnNonBlank ()
 
bool commandCenterView (bool onFirst)
 
bool commandCenterViewOnCursor ()
 
bool commandCenterViewOnNonBlank ()
 
bool commandChange ()
 
bool commandChangeCase ()
 
bool commandChangeCaseLine ()
 
bool commandChangeCaseRange ()
 
bool commandChangeLine ()
 
bool commandChangeToEOL ()
 
bool commandCloseNocheck ()
 
bool commandCloseView ()
 
bool commandCloseWrite ()
 
bool commandCollapseLocal ()
 
bool commandCollapseToplevelNodes ()
 
bool commandDelete ()
 
bool commandDeleteChar ()
 
bool commandDeleteCharBackward ()
 
bool commandDeleteLine ()
 
bool commandDeleteToEOL ()
 
bool commandEnterInsertMode ()
 
bool commandEnterInsertModeAppend ()
 
bool commandEnterInsertModeAppendEOL ()
 
bool commandEnterInsertModeBeforeFirstNonBlankInLine ()
 
bool commandEnterInsertModeLast ()
 
bool commandEnterReplaceMode ()
 
bool commandEnterVisualBlockMode ()
 
bool commandEnterVisualLineMode ()
 
bool commandEnterVisualMode ()
 
bool commandExpandAll ()
 
bool commandExpandLocal ()
 
bool commandFormatLine ()
 
bool commandFormatLines ()
 
bool commandGoToNextJump ()
 
bool commandGoToPrevJump ()
 
bool commandgPaste ()
 
bool commandgPasteBefore ()
 
bool commandIndentedPaste ()
 
bool commandIndentedPasteBefore ()
 
bool commandIndentLine ()
 
bool commandIndentLines ()
 
bool commandJoinLines ()
 
bool commandMakeLowercase ()
 
bool commandMakeLowercaseLine ()
 
bool commandMakeUppercase ()
 
bool commandMakeUppercaseLine ()
 
bool commandOpenNewLineOver ()
 
bool commandOpenNewLineUnder ()
 
bool commandPaste ()
 
bool commandPasteBefore ()
 
bool commandPrependToBlock ()
 
bool commandPrintCharacterCode ()
 
bool commandRedo ()
 
bool commandRepeatLastChange ()
 
bool commandReplaceCharacter ()
 
bool commandReplayMacro ()
 
bool commandReselectVisual ()
 
bool commandScrollHalfPageDown ()
 
bool commandScrollHalfPageUp ()
 
bool commandScrollPageDown ()
 
bool commandScrollPageUp ()
 
bool commandSearchBackward ()
 
bool commandSearchForward ()
 
bool commandSetMark ()
 
bool commandSplitHoriz ()
 
bool commandSplitVert ()
 
bool commandStartRecordingMacro ()
 
bool commandSubstituteChar ()
 
bool commandSubstituteLine ()
 
bool commandSubtractFromNumber ()
 
bool commandSwitchToCmdLine ()
 
bool commandSwitchToDownView ()
 
bool commandSwitchToLeftView ()
 
bool commandSwitchToNextTab ()
 
bool commandSwitchToNextView ()
 
bool commandSwitchToPrevTab ()
 
bool commandSwitchToRightView ()
 
bool commandSwitchToUpView ()
 
bool commandToggleComment ()
 
bool commandToggleRegionVisibility ()
 
bool commandToOtherEnd ()
 
bool commandTopView (bool onFirst)
 
bool commandTopViewOnCursor ()
 
bool commandTopViewOnNonBlank ()
 
bool commandUndo ()
 
bool commandUnindentLine ()
 
bool commandUnindentLines ()
 
bool commandYank ()
 
bool commandYankLine ()
 
bool commandYankToEOL ()
 
bool handleKeypress (const QKeyEvent *e) override
 
Range motionDown ()
 
Range motionDownToFirstNonBlank ()
 
Range motionFindChar ()
 
Range motionFindCharBackward ()
 
Range motionHalfPageDown ()
 
Range motionHalfPageUp ()
 
Range motionLeft ()
 
Range motionPageDown ()
 
Range motionPageUp ()
 
Range motionRepeatlastTF ()
 
Range motionRepeatlastTFBackward ()
 
Range motionRight ()
 
Range motionToAfterParagraph ()
 
Range motionToBeforeParagraph ()
 
Range motionToChar ()
 
Range motionToCharBackward ()
 
Range motionToColumn0 ()
 
Range motionToEndOfPrevWORD ()
 
Range motionToEndOfPrevWord ()
 
Range motionToEndOfWORD ()
 
Range motionToEndOfWord ()
 
Range motionToEOL ()
 
Range motionToFirstCharacterOfLine ()
 
Range motionToFirstLineOfWindow ()
 
Range motionToIncrementalSearchMatch ()
 
Range motionToLastLineOfWindow ()
 
Range motionToLastNonBlank ()
 
Range motionToLineFirst ()
 
Range motionToLineLast ()
 
Range motionToMark ()
 
Range motionToMarkLine ()
 
Range motionToMatchingItem ()
 
Range motionToMiddleLineOfWindow ()
 
Range motionToNextBraceBlockEnd ()
 
Range motionToNextBraceBlockStart ()
 
Range motionToNextOccurrence ()
 
Range motionToNextSentence ()
 
Range motionToNextVisualLine ()
 
Range motionToPreviousBraceBlockEnd ()
 
Range motionToPreviousBraceBlockStart ()
 
Range motionToPreviousSentence ()
 
Range motionToPrevOccurrence ()
 
Range motionToPrevVisualLine ()
 
Range motionToScreenColumn ()
 
Range motionUp ()
 
Range motionUpToFirstNonBlank ()
 
Range motionWORDBackward ()
 
Range motionWordBackward ()
 
Range motionWORDForward ()
 
Range motionWordForward ()
 
virtual void reset ()
 
Range textObjectABackQuote ()
 
Range textObjectABracket ()
 
Range textObjectAComma ()
 
Range textObjectACurlyBracket ()
 
Range textObjectAInequalitySign ()
 
Range textObjectAParagraph ()
 
Range textObjectAParen ()
 
Range textObjectAQuoteDouble ()
 
Range textObjectAQuoteSingle ()
 
Range textObjectASentence ()
 
Range textObjectAWORD ()
 
Range textObjectAWord ()
 
Range textObjectInnerBackQuote ()
 
Range textObjectInnerBracket ()
 
Range textObjectInnerComma ()
 
Range textObjectInnerCurlyBracket ()
 
Range textObjectInnerInequalitySign ()
 
Range textObjectInnerParagraph ()
 
Range textObjectInnerParen ()
 
Range textObjectInnerQuoteDouble ()
 
Range textObjectInnerQuoteSingle ()
 
Range textObjectInnerSentence ()
 
Range textObjectInnerWORD ()
 
Range textObjectInnerWord ()
 

Protected Types

enum  PasteLocation { AtCurrentPosition , AfterCurrentPosition }
 

Protected Member Functions

void addHighlightYank (KTextEditor::Range range)
 
virtual const std::vector< Command > & commands ()
 
void executeCommand (const Command *cmd)
 
bool executeKateCommand (const QString &command)
 
KTextEditor::Cursor findParagraphEnd ()
 
KTextEditor::Cursor findParagraphStart ()
 
KTextEditor::Cursor findSentenceEnd ()
 
KTextEditor::Cursor findSentenceStart ()
 
QRegularExpression generateMatchingItemRegex () const
 
int getFirstNonBlank (int line=-1) const
 
OperationMode getOperationMode () const
 
QSet< KTextEditor::MovingRange * > & highlightedYankForDocument ()
 
void highlightYank (const Range &range, const OperationMode mode=CharWise)
 
void joinLines (unsigned int from, unsigned int to) const
 
virtual const std::vector< Motion > & motions ()
 
bool motionWillBeUsedWithCommand () const
 
bool paste (NormalViMode::PasteLocation pasteLocation, bool isgPaste, bool isIndentedPaste)
 
void reformatLines (unsigned int from, unsigned int to) const
 
void resetParser ()
 
void shrinkRangeAroundCursor (Range &toShrink, const Range &rangeToShrinkTo) const
 
void stickStickyColumnToEOL ()
 
Range textObjectComma (bool inner) const
 
bool waitingForRegisterOrCharToSearch ()
 

Static Protected Member Functions

static KTextEditor::Cursor cursorPosAtEndOfPaste (const KTextEditor::Cursor pasteLocation, const QString &pastedText)
 

Protected Attributes

QStack< int > m_awaitingMotionOrTextObject
 
bool m_commandShouldKeepSelection
 
bool m_commandWithMotion
 
unsigned int m_countTemp
 
KTextEditor::Cursor m_currentChangeEndMarker
 
bool m_deleteCommand
 
bool m_findWaitingForChar
 
QSet< KTextEditor::MovingRange * > m_highlightedYanks
 
KTextEditor::Attribute::Ptr m_highlightYankAttribute
 
bool m_isRepeatedTFcommand
 
bool m_isUndo
 
KeyParserm_keyParser
 
QString m_keys
 
bool m_lastMotionWasLinewiseInnerBlock
 
QString m_lastTFcommand
 
bool m_linewiseCommand
 
QList< int > m_matchingCommands
 
QHash< QString, QStringm_matchingItems
 
QList< int > m_matchingMotions
 
QRegularExpression m_matchItemRegex
 
bool m_motionCanChangeWholeVisualModeSelection
 
int m_motionOperatorIndex
 
bool m_pendingResetIsDueToExit
 
KTextEditor::Cursor m_positionWhenIncrementalSearchBegan
 
int m_scroll_count_limit
 

Detailed Description

Commands for the vi normal mode.

Definition at line 38 of file normalvimode.h.

Member Enumeration Documentation

◆ PasteLocation

enum KateVi::NormalViMode::PasteLocation
protected

Definition at line 340 of file normalvimode.h.

Constructor & Destructor Documentation

◆ NormalViMode()

NormalViMode::NormalViMode ( InputModeManager * viInputModeManager,
KTextEditor::ViewPrivate * view,
KateViewInternal * viewInternal )
explicit

Definition at line 46 of file normalvimode.cpp.

◆ ~NormalViMode()

NormalViMode::~NormalViMode ( )
override

Definition at line 80 of file normalvimode.cpp.

Member Function Documentation

◆ addHighlightYank()

void NormalViMode::addHighlightYank ( KTextEditor::Range range)
protected

Definition at line 3809 of file normalvimode.cpp.

◆ beginMonitoringDocumentChanges()

void NormalViMode::beginMonitoringDocumentChanges ( )

Definition at line 446 of file normalvimode.cpp.

◆ commandAbort()

bool NormalViMode::commandAbort ( )

Definition at line 1665 of file normalvimode.cpp.

◆ commandAddToNumber()

bool NormalViMode::commandAddToNumber ( )

Definition at line 1732 of file normalvimode.cpp.

◆ commandAlignLine()

bool NormalViMode::commandAlignLine ( )

Definition at line 1710 of file normalvimode.cpp.

◆ commandAlignLines()

bool NormalViMode::commandAlignLines ( )

Definition at line 1720 of file normalvimode.cpp.

◆ commandAppendToBlock()

bool NormalViMode::commandAppendToBlock ( )

Definition at line 1761 of file normalvimode.cpp.

◆ commandBottomView()

bool NormalViMode::commandBottomView ( bool onFirst)

Definition at line 1641 of file normalvimode.cpp.

◆ commandBottomViewOnCursor()

bool NormalViMode::commandBottomViewOnCursor ( )

Definition at line 1660 of file normalvimode.cpp.

◆ commandBottomViewOnNonBlank()

bool NormalViMode::commandBottomViewOnNonBlank ( )

Definition at line 1655 of file normalvimode.cpp.

◆ commandCenterView()

bool NormalViMode::commandCenterView ( bool onFirst)

Definition at line 1593 of file normalvimode.cpp.

◆ commandCenterViewOnCursor()

bool NormalViMode::commandCenterViewOnCursor ( )

Definition at line 1612 of file normalvimode.cpp.

◆ commandCenterViewOnNonBlank()

bool NormalViMode::commandCenterViewOnNonBlank ( )

Definition at line 1607 of file normalvimode.cpp.

◆ commandChange()

bool NormalViMode::commandChange ( )

Definition at line 1071 of file normalvimode.cpp.

◆ commandChangeCase()

bool NormalViMode::commandChangeCase ( )

Definition at line 851 of file normalvimode.cpp.

◆ commandChangeCaseLine()

bool NormalViMode::commandChangeCaseLine ( )

Definition at line 944 of file normalvimode.cpp.

◆ commandChangeCaseRange()

bool NormalViMode::commandChangeCaseRange ( )

Definition at line 923 of file normalvimode.cpp.

◆ commandChangeLine()

bool NormalViMode::commandChangeLine ( )

Definition at line 1122 of file normalvimode.cpp.

◆ commandChangeToEOL()

bool NormalViMode::commandChangeToEOL ( )

Definition at line 1110 of file normalvimode.cpp.

◆ commandCloseNocheck()

bool NormalViMode::commandCloseNocheck ( )

Definition at line 1913 of file normalvimode.cpp.

◆ commandCloseView()

bool NormalViMode::commandCloseView ( )

Definition at line 1841 of file normalvimode.cpp.

◆ commandCloseWrite()

bool NormalViMode::commandCloseWrite ( )

Definition at line 1918 of file normalvimode.cpp.

◆ commandCollapseLocal()

bool NormalViMode::commandCollapseLocal ( )

Definition at line 1923 of file normalvimode.cpp.

◆ commandCollapseToplevelNodes()

bool NormalViMode::commandCollapseToplevelNodes ( )

Definition at line 1883 of file normalvimode.cpp.

◆ commandDelete()

bool NormalViMode::commandDelete ( )

Definition at line 695 of file normalvimode.cpp.

◆ commandDeleteChar()

bool NormalViMode::commandDeleteChar ( )

Definition at line 1294 of file normalvimode.cpp.

◆ commandDeleteCharBackward()

bool NormalViMode::commandDeleteCharBackward ( )

Definition at line 1319 of file normalvimode.cpp.

◆ commandDeleteLine()

bool NormalViMode::commandDeleteLine ( )

Definition at line 662 of file normalvimode.cpp.

◆ commandDeleteToEOL()

bool NormalViMode::commandDeleteToEOL ( )

Definition at line 701 of file normalvimode.cpp.

◆ commandEnterInsertMode()

bool NormalViMode::commandEnterInsertMode ( )

enter insert mode at the cursor position

Definition at line 504 of file normalvimode.cpp.

◆ commandEnterInsertModeAppend()

bool NormalViMode::commandEnterInsertModeAppend ( )

enter insert mode after the current character

Definition at line 515 of file normalvimode.cpp.

◆ commandEnterInsertModeAppendEOL()

bool NormalViMode::commandEnterInsertModeAppendEOL ( )

start insert mode after the last character of the line

Definition at line 541 of file normalvimode.cpp.

◆ commandEnterInsertModeBeforeFirstNonBlankInLine()

bool NormalViMode::commandEnterInsertModeBeforeFirstNonBlankInLine ( )

Definition at line 552 of file normalvimode.cpp.

◆ commandEnterInsertModeLast()

bool NormalViMode::commandEnterInsertModeLast ( )

enter insert mode at the last insert position

Definition at line 569 of file normalvimode.cpp.

◆ commandEnterReplaceMode()

bool NormalViMode::commandEnterReplaceMode ( )

Definition at line 655 of file normalvimode.cpp.

◆ commandEnterVisualBlockMode()

bool NormalViMode::commandEnterVisualBlockMode ( )

Definition at line 590 of file normalvimode.cpp.

◆ commandEnterVisualLineMode()

bool NormalViMode::commandEnterVisualLineMode ( )

Definition at line 580 of file normalvimode.cpp.

◆ commandEnterVisualMode()

bool NormalViMode::commandEnterVisualMode ( )

Definition at line 635 of file normalvimode.cpp.

◆ commandExpandAll()

bool NormalViMode::commandExpandAll ( )

Definition at line 1933 of file normalvimode.cpp.

◆ commandExpandLocal()

bool NormalViMode::commandExpandLocal ( )

Definition at line 1940 of file normalvimode.cpp.

◆ commandFormatLine()

bool NormalViMode::commandFormatLine ( )

Definition at line 1868 of file normalvimode.cpp.

◆ commandFormatLines()

bool NormalViMode::commandFormatLines ( )

Definition at line 1877 of file normalvimode.cpp.

◆ commandGoToNextJump()

bool NormalViMode::commandGoToNextJump ( )

Definition at line 1785 of file normalvimode.cpp.

◆ commandGoToPrevJump()

bool NormalViMode::commandGoToPrevJump ( )

Definition at line 1793 of file normalvimode.cpp.

◆ commandgPaste()

bool NormalViMode::commandgPaste ( )

Definition at line 1272 of file normalvimode.cpp.

◆ commandgPasteBefore()

bool NormalViMode::commandgPasteBefore ( )

Definition at line 1279 of file normalvimode.cpp.

◆ commandIndentedPaste()

bool NormalViMode::commandIndentedPaste ( )

Definition at line 1284 of file normalvimode.cpp.

◆ commandIndentedPasteBefore()

bool NormalViMode::commandIndentedPasteBefore ( )

Definition at line 1289 of file normalvimode.cpp.

◆ commandIndentLine()

bool NormalViMode::commandIndentLine ( )

Definition at line 1497 of file normalvimode.cpp.

◆ commandIndentLines()

bool NormalViMode::commandIndentLines ( )

Definition at line 1515 of file normalvimode.cpp.

◆ commandJoinLines()

bool NormalViMode::commandJoinLines ( )

Definition at line 1016 of file normalvimode.cpp.

◆ commandMakeLowercase()

bool NormalViMode::commandMakeLowercase ( )

Definition at line 762 of file normalvimode.cpp.

◆ commandMakeLowercaseLine()

bool NormalViMode::commandMakeLowercaseLine ( )

Definition at line 789 of file normalvimode.cpp.

◆ commandMakeUppercase()

bool NormalViMode::commandMakeUppercase ( )

Definition at line 806 of file normalvimode.cpp.

◆ commandMakeUppercaseLine()

bool NormalViMode::commandMakeUppercaseLine ( )

Definition at line 834 of file normalvimode.cpp.

◆ commandOpenNewLineOver()

bool NormalViMode::commandOpenNewLineOver ( )

Definition at line 990 of file normalvimode.cpp.

◆ commandOpenNewLineUnder()

bool NormalViMode::commandOpenNewLineUnder ( )

Definition at line 971 of file normalvimode.cpp.

◆ commandPaste()

bool NormalViMode::commandPaste ( )

Definition at line 1256 of file normalvimode.cpp.

◆ commandPasteBefore()

bool NormalViMode::commandPasteBefore ( )

Definition at line 1262 of file normalvimode.cpp.

◆ commandPrependToBlock()

bool NormalViMode::commandPrependToBlock ( )

Definition at line 1746 of file normalvimode.cpp.

◆ commandPrintCharacterCode()

bool NormalViMode::commandPrintCharacterCode ( )

Definition at line 1672 of file normalvimode.cpp.

◆ commandRedo()

bool NormalViMode::commandRedo ( )

Definition at line 1465 of file normalvimode.cpp.

◆ commandRepeatLastChange()

bool NormalViMode::commandRepeatLastChange ( )

Definition at line 1696 of file normalvimode.cpp.

◆ commandReplaceCharacter()

bool NormalViMode::commandReplaceCharacter ( )

Definition at line 1345 of file normalvimode.cpp.

◆ commandReplayMacro()

bool NormalViMode::commandReplayMacro ( )

Definition at line 1896 of file normalvimode.cpp.

◆ commandReselectVisual()

bool NormalViMode::commandReselectVisual ( )

Definition at line 600 of file normalvimode.cpp.

◆ commands()

const std::vector< Command > & NormalViMode::commands ( )
protectedvirtual

Return commands available for this mode.

Overwritten in sub classes to replace them, must be a stable reference!

Definition at line 3970 of file normalvimode.cpp.

◆ commandScrollHalfPageDown()

bool NormalViMode::commandScrollHalfPageDown ( )

Definition at line 1583 of file normalvimode.cpp.

◆ commandScrollHalfPageUp()

bool NormalViMode::commandScrollHalfPageUp ( )

Definition at line 1573 of file normalvimode.cpp.

◆ commandScrollPageDown()

bool NormalViMode::commandScrollPageDown ( )

Definition at line 1553 of file normalvimode.cpp.

◆ commandScrollPageUp()

bool NormalViMode::commandScrollPageUp ( )

Definition at line 1563 of file normalvimode.cpp.

◆ commandSearchBackward()

bool NormalViMode::commandSearchBackward ( )

Definition at line 1426 of file normalvimode.cpp.

◆ commandSearchForward()

bool NormalViMode::commandSearchForward ( )

Definition at line 1433 of file normalvimode.cpp.

◆ commandSetMark()

bool NormalViMode::commandSetMark ( )

Definition at line 1487 of file normalvimode.cpp.

◆ commandSplitHoriz()

bool NormalViMode::commandSplitHoriz ( )

Definition at line 1831 of file normalvimode.cpp.

◆ commandSplitVert()

bool NormalViMode::commandSplitVert ( )

Definition at line 1836 of file normalvimode.cpp.

◆ commandStartRecordingMacro()

bool NormalViMode::commandStartRecordingMacro ( )

Definition at line 1889 of file normalvimode.cpp.

◆ commandSubstituteChar()

bool NormalViMode::commandSubstituteChar ( )

Definition at line 1153 of file normalvimode.cpp.

◆ commandSubstituteLine()

bool NormalViMode::commandSubstituteLine ( )

Definition at line 1165 of file normalvimode.cpp.

◆ commandSubtractFromNumber()

bool NormalViMode::commandSubtractFromNumber ( )

Definition at line 1739 of file normalvimode.cpp.

◆ commandSwitchToCmdLine()

bool NormalViMode::commandSwitchToCmdLine ( )

Definition at line 1405 of file normalvimode.cpp.

◆ commandSwitchToDownView()

bool NormalViMode::commandSwitchToDownView ( )

Definition at line 1807 of file normalvimode.cpp.

◆ commandSwitchToLeftView()

bool NormalViMode::commandSwitchToLeftView ( )

Definition at line 1801 of file normalvimode.cpp.

◆ commandSwitchToNextTab()

bool NormalViMode::commandSwitchToNextTab ( )

Definition at line 1846 of file normalvimode.cpp.

◆ commandSwitchToNextView()

bool NormalViMode::commandSwitchToNextView ( )

Definition at line 1825 of file normalvimode.cpp.

◆ commandSwitchToPrevTab()

bool NormalViMode::commandSwitchToPrevTab ( )

Definition at line 1857 of file normalvimode.cpp.

◆ commandSwitchToRightView()

bool NormalViMode::commandSwitchToRightView ( )

Definition at line 1819 of file normalvimode.cpp.

◆ commandSwitchToUpView()

bool NormalViMode::commandSwitchToUpView ( )

Definition at line 1813 of file normalvimode.cpp.

◆ commandToggleComment()

bool NormalViMode::commandToggleComment ( )

Definition at line 1065 of file normalvimode.cpp.

◆ commandToggleRegionVisibility()

bool NormalViMode::commandToggleRegionVisibility ( )

Definition at line 1946 of file normalvimode.cpp.

◆ commandToOtherEnd()

bool NormalViMode::commandToOtherEnd ( )

Definition at line 645 of file normalvimode.cpp.

◆ commandTopView()

bool NormalViMode::commandTopView ( bool onFirst)

Definition at line 1617 of file normalvimode.cpp.

◆ commandTopViewOnCursor()

bool NormalViMode::commandTopViewOnCursor ( )

Definition at line 1636 of file normalvimode.cpp.

◆ commandTopViewOnNonBlank()

bool NormalViMode::commandTopViewOnNonBlank ( )

Definition at line 1631 of file normalvimode.cpp.

◆ commandUndo()

bool NormalViMode::commandUndo ( )

Definition at line 1440 of file normalvimode.cpp.

◆ commandUnindentLine()

bool NormalViMode::commandUnindentLine ( )

Definition at line 1506 of file normalvimode.cpp.

◆ commandUnindentLines()

bool NormalViMode::commandUnindentLines ( )

Definition at line 1534 of file normalvimode.cpp.

◆ commandYank()

bool NormalViMode::commandYank ( )

Definition at line 1171 of file normalvimode.cpp.

◆ commandYankLine()

bool NormalViMode::commandYankLine ( )

Definition at line 1188 of file normalvimode.cpp.

◆ commandYankToEOL()

bool NormalViMode::commandYankToEOL ( )

Definition at line 1208 of file normalvimode.cpp.

◆ cursorPosAtEndOfPaste()

KTextEditor::Cursor NormalViMode::cursorPosAtEndOfPaste ( const KTextEditor::Cursor pasteLocation,
const QString & pastedText )
staticprotected

Definition at line 3639 of file normalvimode.cpp.

◆ executeCommand()

void NormalViMode::executeCommand ( const Command * cmd)
protected

Definition at line 452 of file normalvimode.cpp.

◆ executeKateCommand()

bool NormalViMode::executeKateCommand ( const QString & command)
protected

Definition at line 3954 of file normalvimode.cpp.

◆ findParagraphEnd()

KTextEditor::Cursor NormalViMode::findParagraphEnd ( )
protected

Definition at line 3263 of file normalvimode.cpp.

◆ findParagraphStart()

KTextEditor::Cursor NormalViMode::findParagraphStart ( )
protected

Definition at line 3238 of file normalvimode.cpp.

◆ findSentenceEnd()

KTextEditor::Cursor NormalViMode::findSentenceEnd ( )
protected

Definition at line 3194 of file normalvimode.cpp.

◆ findSentenceStart()

KTextEditor::Cursor NormalViMode::findSentenceStart ( )
protected

Definition at line 3149 of file normalvimode.cpp.

◆ generateMatchingItemRegex()

QRegularExpression NormalViMode::generateMatchingItemRegex ( ) const
protected

Definition at line 3500 of file normalvimode.cpp.

◆ getFirstNonBlank()

int NormalViMode::getFirstNonBlank ( int line = -1) const
protected

Get the index of the first non-blank character from the given line.

Parameters
lineThe line to be picked. The current line will picked instead if this parameter is set to a negative value.
Returns
the index of the first non-blank character from the given line. If a non-space character cannot be found, the 0 is returned.

Definition at line 3698 of file normalvimode.cpp.

◆ getOperationMode()

OperationMode NormalViMode::getOperationMode ( ) const
protected

Definition at line 3531 of file normalvimode.cpp.

◆ handleKeypress()

bool NormalViMode::handleKeypress ( const QKeyEvent * e)
override

parses a key stroke to check if it's a valid (part of) a command

Returns
true if a command was completed and executed, false otherwise

Definition at line 89 of file normalvimode.cpp.

◆ highlightedYankForDocument()

QSet< KTextEditor::MovingRange * > & NormalViMode::highlightedYankForDocument ( )
protected

Definition at line 3828 of file normalvimode.cpp.

◆ highlightYank()

void NormalViMode::highlightYank ( const Range & range,
const OperationMode mode = CharWise )
protected

Definition at line 3794 of file normalvimode.cpp.

◆ joinLines()

void NormalViMode::joinLines ( unsigned int from,
unsigned int to ) const
protected

Definition at line 3653 of file normalvimode.cpp.

◆ motionDown()

Range NormalViMode::motionDown ( )

Definition at line 1957 of file normalvimode.cpp.

◆ motionDownToFirstNonBlank()

Range NormalViMode::motionDownToFirstNonBlank ( )

Definition at line 2042 of file normalvimode.cpp.

◆ motionFindChar()

Range NormalViMode::motionFindChar ( )

Definition at line 2295 of file normalvimode.cpp.

◆ motionFindCharBackward()

Range NormalViMode::motionFindCharBackward ( )

Definition at line 2324 of file normalvimode.cpp.

◆ motionHalfPageDown()

Range NormalViMode::motionHalfPageDown ( )

Definition at line 2020 of file normalvimode.cpp.

◆ motionHalfPageUp()

Range NormalViMode::motionHalfPageUp ( )

Definition at line 2031 of file normalvimode.cpp.

◆ motionLeft()

Range NormalViMode::motionLeft ( )

Definition at line 1967 of file normalvimode.cpp.

◆ motionPageDown()

Range NormalViMode::motionPageDown ( )

Definition at line 1996 of file normalvimode.cpp.

◆ motionPageUp()

Range NormalViMode::motionPageUp ( )

Definition at line 2008 of file normalvimode.cpp.

◆ motionRepeatlastTF()

Range NormalViMode::motionRepeatlastTF ( )

Definition at line 2434 of file normalvimode.cpp.

◆ motionRepeatlastTFBackward()

Range NormalViMode::motionRepeatlastTFBackward ( )

Definition at line 2454 of file normalvimode.cpp.

◆ motionRight()

Range NormalViMode::motionRight ( )

Definition at line 1981 of file normalvimode.cpp.

◆ motions()

const std::vector< Motion > & NormalViMode::motions ( )
protectedvirtual

Return motions available for this mode.

Overwritten in sub classes to replace them, must be a stable reference!

Definition at line 4089 of file normalvimode.cpp.

◆ motionToAfterParagraph()

Range NormalViMode::motionToAfterParagraph ( )

Definition at line 2948 of file normalvimode.cpp.

◆ motionToBeforeParagraph()

Range NormalViMode::motionToBeforeParagraph ( )

Definition at line 2920 of file normalvimode.cpp.

◆ motionToChar()

Range NormalViMode::motionToChar ( )

Definition at line 2361 of file normalvimode.cpp.

◆ motionToCharBackward()

Range NormalViMode::motionToCharBackward ( )

Definition at line 2394 of file normalvimode.cpp.

◆ motionToColumn0()

Range NormalViMode::motionToColumn0 ( )

Definition at line 2274 of file normalvimode.cpp.

◆ motionToEndOfPrevWORD()

Range NormalViMode::motionToEndOfPrevWORD ( )

Definition at line 2220 of file normalvimode.cpp.

◆ motionToEndOfPrevWord()

Range NormalViMode::motionToEndOfPrevWord ( )

Definition at line 2197 of file normalvimode.cpp.

◆ motionToEndOfWORD()

Range NormalViMode::motionToEndOfWORD ( )

Definition at line 2176 of file normalvimode.cpp.

◆ motionToEndOfWord()

Range NormalViMode::motionToEndOfWord ( )

Definition at line 2155 of file normalvimode.cpp.

◆ motionToEOL()

Range NormalViMode::motionToEOL ( )

Definition at line 2250 of file normalvimode.cpp.

◆ motionToFirstCharacterOfLine()

Range NormalViMode::motionToFirstCharacterOfLine ( )

Definition at line 2283 of file normalvimode.cpp.

◆ motionToFirstLineOfWindow()

Range NormalViMode::motionToFirstLineOfWindow ( )

Definition at line 2803 of file normalvimode.cpp.

◆ motionToIncrementalSearchMatch()

Range NormalViMode::motionToIncrementalSearchMatch ( )

Definition at line 2977 of file normalvimode.cpp.

◆ motionToLastLineOfWindow()

Range NormalViMode::motionToLastLineOfWindow ( )

Definition at line 2831 of file normalvimode.cpp.

◆ motionToLastNonBlank()

Range NormalViMode::motionToLastNonBlank ( )

Definition at line 2261 of file normalvimode.cpp.

◆ motionToLineFirst()

Range NormalViMode::motionToLineFirst ( )

Definition at line 2474 of file normalvimode.cpp.

◆ motionToLineLast()

Range NormalViMode::motionToLineLast ( )

Definition at line 2487 of file normalvimode.cpp.

◆ motionToMark()

Range NormalViMode::motionToMark ( )

Definition at line 2520 of file normalvimode.cpp.

◆ motionToMarkLine()

Range NormalViMode::motionToMarkLine ( )

Definition at line 2542 of file normalvimode.cpp.

◆ motionToMatchingItem()

Range NormalViMode::motionToMatchingItem ( )

Definition at line 2551 of file normalvimode.cpp.

◆ motionToMiddleLineOfWindow()

Range NormalViMode::motionToMiddleLineOfWindow ( )

Definition at line 2817 of file normalvimode.cpp.

◆ motionToNextBraceBlockEnd()

Range NormalViMode::motionToNextBraceBlockEnd ( )

Definition at line 2727 of file normalvimode.cpp.

◆ motionToNextBraceBlockStart()

Range NormalViMode::motionToNextBraceBlockStart ( )

Definition at line 2674 of file normalvimode.cpp.

◆ motionToNextOccurrence()

Range NormalViMode::motionToNextOccurrence ( )

Definition at line 2779 of file normalvimode.cpp.

◆ motionToNextSentence()

Range NormalViMode::motionToNextSentence ( )

Definition at line 2894 of file normalvimode.cpp.

◆ motionToNextVisualLine()

Range NormalViMode::motionToNextVisualLine ( )

Definition at line 2845 of file normalvimode.cpp.

◆ motionToPreviousBraceBlockEnd()

Range NormalViMode::motionToPreviousBraceBlockEnd ( )

Definition at line 2756 of file normalvimode.cpp.

◆ motionToPreviousBraceBlockStart()

Range NormalViMode::motionToPreviousBraceBlockStart ( )

Definition at line 2703 of file normalvimode.cpp.

◆ motionToPreviousSentence()

Range NormalViMode::motionToPreviousSentence ( )

Definition at line 2855 of file normalvimode.cpp.

◆ motionToPrevOccurrence()

Range NormalViMode::motionToPrevOccurrence ( )

Definition at line 2791 of file normalvimode.cpp.

◆ motionToPrevVisualLine()

Range NormalViMode::motionToPrevVisualLine ( )

Definition at line 2850 of file normalvimode.cpp.

◆ motionToScreenColumn()

Range NormalViMode::motionToScreenColumn ( )

Definition at line 2505 of file normalvimode.cpp.

◆ motionUp()

Range NormalViMode::motionUp ( )

Definition at line 1962 of file normalvimode.cpp.

◆ motionUpToFirstNonBlank()

Range NormalViMode::motionUpToFirstNonBlank ( )

Definition at line 2049 of file normalvimode.cpp.

◆ motionWillBeUsedWithCommand()

bool KateVi::NormalViMode::motionWillBeUsedWithCommand ( ) const
inlineprotected

Definition at line 299 of file normalvimode.h.

◆ motionWORDBackward()

Range NormalViMode::motionWORDBackward ( )

Definition at line 2134 of file normalvimode.cpp.

◆ motionWordBackward()

Range NormalViMode::motionWordBackward ( )

Definition at line 2090 of file normalvimode.cpp.

◆ motionWORDForward()

Range NormalViMode::motionWORDForward ( )

Definition at line 2112 of file normalvimode.cpp.

◆ motionWordForward()

Range NormalViMode::motionWordForward ( )

Definition at line 2056 of file normalvimode.cpp.

◆ paste()

bool NormalViMode::paste ( NormalViMode::PasteLocation pasteLocation,
bool isgPaste,
bool isIndentedPaste )
protected

Definition at line 3553 of file normalvimode.cpp.

◆ reformatLines()

void NormalViMode::reformatLines ( unsigned int from,
unsigned int to ) const
protected

Definition at line 3668 of file normalvimode.cpp.

◆ reset()

void NormalViMode::reset ( )
virtual

Definition at line 439 of file normalvimode.cpp.

◆ resetParser()

void NormalViMode::resetParser ( )
protected

(re)set to start configuration.

This is done when a command is completed executed or when a command is aborted

Definition at line 410 of file normalvimode.cpp.

◆ shrinkRangeAroundCursor()

void NormalViMode::shrinkRangeAroundCursor ( Range & toShrink,
const Range & rangeToShrinkTo ) const
protected

Definition at line 3711 of file normalvimode.cpp.

◆ stickStickyColumnToEOL()

void NormalViMode::stickStickyColumnToEOL ( )
protected

Definition at line 2243 of file normalvimode.cpp.

◆ textObjectABackQuote()

Range NormalViMode::textObjectABackQuote ( )

Definition at line 3403 of file normalvimode.cpp.

◆ textObjectABracket()

Range NormalViMode::textObjectABracket ( )

Definition at line 3423 of file normalvimode.cpp.

◆ textObjectAComma()

Range NormalViMode::textObjectAComma ( )

Definition at line 3490 of file normalvimode.cpp.

◆ textObjectACurlyBracket()

Range NormalViMode::textObjectACurlyBracket ( )

Definition at line 3433 of file normalvimode.cpp.

◆ textObjectAInequalitySign()

Range NormalViMode::textObjectAInequalitySign ( )

Definition at line 3480 of file normalvimode.cpp.

◆ textObjectAParagraph()

Range NormalViMode::textObjectAParagraph ( )

Definition at line 3347 of file normalvimode.cpp.

◆ textObjectAParen()

Range NormalViMode::textObjectAParen ( )

Definition at line 3413 of file normalvimode.cpp.

◆ textObjectAQuoteDouble()

Range NormalViMode::textObjectAQuoteDouble ( )

Definition at line 3383 of file normalvimode.cpp.

◆ textObjectAQuoteSingle()

Range NormalViMode::textObjectAQuoteSingle ( )

Definition at line 3393 of file normalvimode.cpp.

◆ textObjectASentence()

Range NormalViMode::textObjectASentence ( )

Definition at line 3304 of file normalvimode.cpp.

◆ textObjectAWORD()

Range NormalViMode::textObjectAWORD ( )

Definition at line 3070 of file normalvimode.cpp.

◆ textObjectAWord()

Range NormalViMode::textObjectAWord ( )

Definition at line 2990 of file normalvimode.cpp.

◆ textObjectComma()

Range NormalViMode::textObjectComma ( bool inner) const
protected

Definition at line 3762 of file normalvimode.cpp.

◆ textObjectInnerBackQuote()

Range NormalViMode::textObjectInnerBackQuote ( )

Definition at line 3408 of file normalvimode.cpp.

◆ textObjectInnerBracket()

Range NormalViMode::textObjectInnerBracket ( )

Definition at line 3428 of file normalvimode.cpp.

◆ textObjectInnerComma()

Range NormalViMode::textObjectInnerComma ( )

Definition at line 3495 of file normalvimode.cpp.

◆ textObjectInnerCurlyBracket()

Range NormalViMode::textObjectInnerCurlyBracket ( )

Definition at line 3438 of file normalvimode.cpp.

◆ textObjectInnerInequalitySign()

Range NormalViMode::textObjectInnerInequalitySign ( )

Definition at line 3485 of file normalvimode.cpp.

◆ textObjectInnerParagraph()

Range NormalViMode::textObjectInnerParagraph ( )

Definition at line 3333 of file normalvimode.cpp.

◆ textObjectInnerParen()

Range NormalViMode::textObjectInnerParen ( )

Definition at line 3418 of file normalvimode.cpp.

◆ textObjectInnerQuoteDouble()

Range NormalViMode::textObjectInnerQuoteDouble ( )

Definition at line 3388 of file normalvimode.cpp.

◆ textObjectInnerQuoteSingle()

Range NormalViMode::textObjectInnerQuoteSingle ( )

Definition at line 3398 of file normalvimode.cpp.

◆ textObjectInnerSentence()

Range NormalViMode::textObjectInnerSentence ( )

Definition at line 3290 of file normalvimode.cpp.

◆ textObjectInnerWORD()

Range NormalViMode::textObjectInnerWORD ( )

Definition at line 3124 of file normalvimode.cpp.

◆ textObjectInnerWord()

Range NormalViMode::textObjectInnerWord ( )

Definition at line 3044 of file normalvimode.cpp.

◆ waitingForRegisterOrCharToSearch()

bool NormalViMode::waitingForRegisterOrCharToSearch ( )
protected

Definition at line 3835 of file normalvimode.cpp.

Member Data Documentation

◆ m_awaitingMotionOrTextObject

QStack<int> KateVi::NormalViMode::m_awaitingMotionOrTextObject
protected

Definition at line 361 of file normalvimode.h.

◆ m_commandShouldKeepSelection

bool KateVi::NormalViMode::m_commandShouldKeepSelection
protected

Definition at line 369 of file normalvimode.h.

◆ m_commandWithMotion

bool KateVi::NormalViMode::m_commandWithMotion
protected

Definition at line 366 of file normalvimode.h.

◆ m_countTemp

unsigned int KateVi::NormalViMode::m_countTemp
protected

Definition at line 355 of file normalvimode.h.

◆ m_currentChangeEndMarker

KTextEditor::Cursor KateVi::NormalViMode::m_currentChangeEndMarker
protected

Definition at line 386 of file normalvimode.h.

◆ m_deleteCommand

bool KateVi::NormalViMode::m_deleteCommand
protected

Definition at line 370 of file normalvimode.h.

◆ m_findWaitingForChar

bool KateVi::NormalViMode::m_findWaitingForChar
protected

Definition at line 363 of file normalvimode.h.

◆ m_highlightedYanks

QSet<KTextEditor::MovingRange *> KateVi::NormalViMode::m_highlightedYanks
protected

Definition at line 383 of file normalvimode.h.

◆ m_highlightYankAttribute

KTextEditor::Attribute::Ptr KateVi::NormalViMode::m_highlightYankAttribute
protected

Definition at line 382 of file normalvimode.h.

◆ m_isRepeatedTFcommand

bool KateVi::NormalViMode::m_isRepeatedTFcommand
protected

Definition at line 364 of file normalvimode.h.

◆ m_isUndo

bool KateVi::NormalViMode::m_isUndo
protected

Definition at line 373 of file normalvimode.h.

◆ m_keyParser

KeyParser* KateVi::NormalViMode::m_keyParser
protected

Definition at line 380 of file normalvimode.h.

◆ m_keys

QString KateVi::NormalViMode::m_keys
protected

Definition at line 352 of file normalvimode.h.

◆ m_lastMotionWasLinewiseInnerBlock

bool KateVi::NormalViMode::m_lastMotionWasLinewiseInnerBlock
protected

Definition at line 367 of file normalvimode.h.

◆ m_lastTFcommand

QString KateVi::NormalViMode::m_lastTFcommand
protected

Definition at line 353 of file normalvimode.h.

◆ m_linewiseCommand

bool KateVi::NormalViMode::m_linewiseCommand
protected

Definition at line 365 of file normalvimode.h.

◆ m_matchingCommands

QList<int> KateVi::NormalViMode::m_matchingCommands
protected

Definition at line 359 of file normalvimode.h.

◆ m_matchingItems

QHash<QString, QString> KateVi::NormalViMode::m_matchingItems
protected

Definition at line 377 of file normalvimode.h.

◆ m_matchingMotions

QList<int> KateVi::NormalViMode::m_matchingMotions
protected

Definition at line 360 of file normalvimode.h.

◆ m_matchItemRegex

QRegularExpression KateVi::NormalViMode::m_matchItemRegex
protected

Definition at line 378 of file normalvimode.h.

◆ m_motionCanChangeWholeVisualModeSelection

bool KateVi::NormalViMode::m_motionCanChangeWholeVisualModeSelection
protected

Definition at line 368 of file normalvimode.h.

◆ m_motionOperatorIndex

int KateVi::NormalViMode::m_motionOperatorIndex
protected

Definition at line 356 of file normalvimode.h.

◆ m_pendingResetIsDueToExit

bool KateVi::NormalViMode::m_pendingResetIsDueToExit
protected

Definition at line 372 of file normalvimode.h.

◆ m_positionWhenIncrementalSearchBegan

KTextEditor::Cursor KateVi::NormalViMode::m_positionWhenIncrementalSearchBegan
protected

Definition at line 387 of file normalvimode.h.

◆ m_scroll_count_limit

int KateVi::NormalViMode::m_scroll_count_limit
protected

Definition at line 357 of file normalvimode.h.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Mar 7 2025 11:54:05 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.