use creator's indenter for smartindent mode
- this works like automatic indent w/o fakevim
perhaps this fixes QTCREATORBUG-139
Merge-request: 98
Reviewed-by: hjk <qtc-committer@nokia.com>
in order for automatic indenting to work, isElectricCharacter has to match the language of the document
Merge-request: 98
Reviewed-by: hjk <qtc-committer@nokia.com>
the fakevim plugin needs access to this method for automatic indenting as the implementation
differs across the different types of editors
Merge-request: 98
Reviewed-by: hjk <qtc-committer@nokia.com>
As it causes dashed lists to be formatted as
- i1
- i2
Just do paragraph formatting.
Task-number: QTCREATORBUG-538
Initial-patch-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
(cherry picked from commit 2986ccafd2)
Wasn't using a space to separate the closing angular brackets.
Task-number: QTCREATORBUG-547
Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
As it causes dashed lists to be formatted as
- i1
- i2
Just do paragraph formatting.
Task-number: QTCREATORBUG-538
Initial-patch-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
In this way all tr calls are done after translations are loaded.
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@trolltech.com>
Task-number: QTCREATORBUG-470
- the indented region has been off by one line as lineForPosition returns 1-based line numbers but QTextDocument::findBlockByNumber expects base 0
- all lines (including first and last line) have to be indented
- if text is collapsed, then findBlockByNumber has to be used instead of findBlockByLineNumber for getting the block containing a line
Merge-request: 96
Reviewed-by: hjk <qtc-committer@nokia.com>
make sure that when deleting line-wise, a complete line is deleted,
even at the end of the document
Merge-request: 96
Reviewed-by: hjk <qtc-committer@nokia.com>
previously, the insertion point would have stayed just in front of the last character instead of in
front of the last but first character
Merge-request: 96
Reviewed-by: hjk <qtc-committer@nokia.com>
atomically undo command that entered insert mode together with undoing the insertion of new characters
Merge-request: 96
Reviewed-by: hjk <qtc-committer@nokia.com>
- this is compatible with choosing completion items in vim
- especially when using FakeVim mode, this makes it unnecessary to move
the hands from the main row to the arrow keys
Merge-request: 2158
Reviewed-by: hjk <qtc-committer@nokia.com>