aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/fakevim
Commit message (Collapse)AuthorAgeFilesLines
* FakeVim: Fix case insensitivity handling for forward searchinghjk2020-07-171-19/+38
| | | | | | Change-Id: I1f5b13022f3ae06916434b48cf3c6ba6d4722746 Reviewed-by: Lukas Holecek <hluk@email.cz> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Core/Utils: Migrate further to Utils::Idhjk2020-07-061-1/+0
| | | | | | | | The coreplugin/id.h header is kept for downstream for now. Change-Id: I8c44590f7b988b3770ecdc177c40783e12353e66 (cherry picked from commit 430a33dcd9ac80ddb848e41f8f059102857c88aa) Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* More Qt 6 fixeshjk2020-06-231-2/+2
| | | | | | Task-number: QTCREATORBUG-24098 Change-Id: I1e30b49218b18f426aea6e4cd3680be513894746 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* FakeVim: Finish port to QRegularExpressionhjk2020-06-231-27/+36
| | | | | | Change-Id: Id4eaab8f41be3b724ddf22f74384a60995cf4aa5 Reviewed-by: Lukas Holecek <hluk@email.cz> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* FakeVim: Port more from QRegExp to QRegularExpressionhjk2020-06-231-18/+23
| | | | | | | | | QRegExp will not be available in Qt 6. Task-number: QTCREATORBUG-24098 Change-Id: Ia1aec515615ecaf8e92ae1a3a1dad92cb999bfb1 Reviewed-by: Lukas Holecek <hluk@email.cz> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* FakeVim: Use QStringView instead of QStringRefhjk2020-06-181-5/+6
| | | | | | | QStringRef will not exist in Qt 6. Change-Id: I439240fbb4c87fbe71c9fa42596c9aaadb75a05e Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* FakeVim: Replace QRegExp use in handleExSubstituteCommand()hjk2020-06-171-4/+4
| | | | | | Task-number: QTCREATORBUG-24098 Change-Id: I4176b614a7de73a675d5252344b68ce61dc340c2 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* FakeVim: Start porting QRegExp uses to QRegularExpressionhjk2020-06-111-14/+16
| | | | | | | | QRegExp will not exist in Qt 6. Task-number: QTCREATORBUG-24098 Change-Id: Iaf239fd110b2294ad1fe20a598d416a4f43a3abf Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* FakeVim: Use QRegularExpression in C-A/C-X handlinghjk2020-06-111-1/+2
| | | | | | Task-number: QTCREATORBUG-24098 Change-Id: If2cff3b9059856afa8793f4df9acc0cde27e2e1e Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* FakeVim: Modernize a bithjk2020-05-282-12/+12
| | | | | | | | Some ranged-for and const. Change-Id: I6ff521393166aa4c61289de88e8c31320887b1b4 Reviewed-by: Lukas Holecek <hluk@email.cz> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* FakeVim: Treat C-S-something as "not normal" in Input::is()hjk2020-05-141-1/+6
| | | | | | | | | | | The problem triggering this change is that recently, C-S-s was not handled (as "Save all") anymore when there was nothing to change, and the keypress ended up in FakeVim. Now FakeVim filter for _exact_ C- modifier in Input::is(), letting C-S- pass as 'S-s' i.e. starting replacement of the rest of the line. Change-Id: I13499f5606c28fee148e410355bec7ffd6ed116a Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Fix deprecation against QProcess::start splitting overloadThiago Macieira2020-04-281-0/+6
| | | | | Change-Id: I9709abb1c3734e10a7defffd1607e6d198bbf964 Reviewed-by: hjk <hjk@qt.io>
* Make TextEditor setup more flexibleEike Ziller2020-02-121-3/+7
| | | | | | | | | | | | | | | | | | | | So far it was only possible to combine TextEditorFactory, BaseTextEditor and TextEditorWidget directly. That TextEditorWidget is also directly a QPlainTextEdit made it impossible to "decorate" the text editor widget with something else without a lot of effort. Make it possible to create a text editor factory that returns an arbitrary widget, as long as it can be "cast" to a TextEditorWidget with either qobject_cast or Aggregation::query. That way the TextEditorWidget instance can be attached to the editor widget via Aggregation. Adapt other code that accesses TextEditorWidget from editors accordingly. Introduce a common method how to do that. Change-Id: I72b8721f3a8a8d8281c39af75253e9c80cbe1250 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: David Schulz <david.schulz@qt.io>
* Use isEmpty() instead of count() or size()Alessandro Portale2020-01-201-1/+1
| | | | | Change-Id: I0a89d2808c6d041da0dc41ea5aea58e6e8759bb4 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Core: Introduce a IOptionsPage::setCategoryIconPathhjk2020-01-161-2/+1
| | | | | | | Less noise on the user side. Change-Id: I34dea09e8a3c8639f5a7db89b22f8b825b946395 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* fakevim: fix indenting of continuation linesAndrzej Ostruszka2020-01-071-0/+2
| | | | | | | | | Use tab settings for indenting of continuation lines from current document instead of using default value. Task-number: QTCREATORBUG-20876 Change-Id: Ied15226166483dc11672c930145564cf897def19 Reviewed-by: David Schulz <david.schulz@qt.io>
* FakeVim: Fix goto next/previous splithjk2019-12-161-2/+2
| | | | | | Fixes: QTCREATORBUG-22397 Change-Id: Ibdae1d53d9d77dd982b871aa22585bdf0354d84f Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Remove usages of deprecated APIsSona Kurazyan2019-09-031-1/+1
| | | | | | | | | | | | Replaced: QPalette::ColorRole::Background -> QPalette::ColorRole::Window QPalette::ColorRole::Foreground -> QPalette::ColorRole::WindowText Qt::ItemDataRole::TextColorRole -> Qt::ItemDataRole::ForegroundRole QFontMetrics::width() -> QFontMetrics::horizontalAdvance() Task-number: QTBUG-76491 Change-Id: I1302e6b569e725daa6f7be1428ffe055657fc644 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Compile fix with recent Qt devhjk2019-07-291-9/+3
| | | | | | | | | The reasoning in 1b4766e26c6b did not take into account that the scope of QT_NO_JAVA_STYLE_ITERATORS may change over time, as done with f70905448f6 in Qt base. Change-Id: Ib1966ff26c4d36d5f62e149d6b45baa4aecf825d Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Avoid warning on empty expressionshjk2019-07-232-2/+2
| | | | | | | | For some reason, Q_UNUSED includes already a semicolon, adding one on the user side creates an additional empty statement. Change-Id: I9c5e8fac381345a60792cb75e2938fd53958d3b0 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* VCS: FakeVim: Ensure log editor is handled as readonlyChristian Stenger2019-07-021-0/+2
| | | | | | Fixes: QTCREATORBUG-22595 Change-Id: Iab51eda5e55d36e98cf0ba5116853d6bee1dbd10 Reviewed-by: hjk <hjk@qt.io>
* connect() to ambiguous signals/slots: Replace static_cast with QOverloadAlessandro Portale2019-05-281-1/+1
| | | | | Change-Id: I473d7a2a16509cee944a2a21b022a3f6f02cfd8d Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* CMake build: Add ability to disable building of individual pluginsEike Ziller2019-05-231-3/+4
| | | | | | | | | | | | | | Adds a cache entry "BUILD_PLUGIN_${NAME}", defaulting to ON which can be set to OFF to disable building of a plugin. Adds a extend_qtc_plugin function that should be used to add properties to a plugin after add_qtc_plugin, instead of the standard CMake functions target_... . The new function results in a no-op if the plugin was disabled. Change-Id: I57f6799620aea0aaa8b56acead4815ccced95911 Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Qt Creator CMake portCristian Adam2019-05-171-0/+18
| | | | | | | | | | | | | | Based on Tobias Hunger's work from a few months ago. The CMake configuration needs libclang and Qt paths specified as CMAKE_PREFIX_PATH. Auto tests are run with "ctest". At the moment the pass rate is 87%. Change-Id: Iba98e39bf22077d52706dce6c85986be67a6eab0 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Merge remote-tracking branch 'origin/4.9'Eike Ziller2019-04-021-1/+1
|\ | | | | | | | | | | | | | | | | Conflicts: qbs/modules/qtc/qtc.qbs qtcreator.pri src/plugins/pythoneditor/pythoneditorplugin.cpp Change-Id: I9a95df5e16b34538539ced7dfc5d326b700794e6
| * FakeVim: Change "cb" options name to "bc" for blinking cursorhjk2019-03-281-1/+1
| | | | | | | | | | | | | | | | "cb" conflicts with the Clipboard name. Both are fakevim "inventions", so there's no Right Way precedence set by true vim. Change-Id: If458ffcb437d0fd22b565396168af5c2b9a04e71 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* | FakeVim: Fix pasting over VisualMode-selectionshjk2019-03-251-4/+7
| | | | | | | | | | | | | | | | Task-number: QTCREATORBUG-22186 Change-Id: I218c70aaca1fc49df8e474065746688243cf9c61 Reviewed-by: Lukas Holecek <hluk@email.cz> Reviewed-by: Mitja Schmakeit <mitja.schmakeit@aucos.de> Reviewed-by: hjk <hjk@qt.io>
* | FakeVim: Fix a deprecation warninghjk2019-03-041-4/+10
| | | | | | | | | | | | | | ... and re-organize surrounding code a bit. Change-Id: I0c3af5b2a434c5088ed165fed97d562f468d16fc Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Fix Qt 5.13 deprecation warning about QFontMetrics::width()Friedemann Kleint2019-02-151-2/+2
|/ | | | | | | | | Replace by QFontMetrics::horizontalAdvance(), fixing: warning: ‘int QFontMetrics::width(const QString&, int) const’ is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations] Change-Id: I9991ffefe6e87e872dc35ba291d562e06b28ca64 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* ClangFormat: Refactor indenter to allow ClangFormat unit-testsIvan Donchevskii2019-01-221-1/+1
| | | | | | | | | | We do not build texteditor files in unit-tests so some tricks were required to make ClangFormatIndenter available. First simple unit-test proofs it builds and runs. Change-Id: I81d5ea099bd27fd1c1ed8b5b7877299dcc62a67f Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* Fix warning: "Missing emit keyword on signal call"Alessandro Portale2019-01-171-2/+2
| | | | | | | [-Wclazy-incorrect-emit] Change-Id: I93bdc6e23cdaccf35c9899ae16870ccc65a54f80 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Fix warning: "Use midRef() instead of mid()"Alessandro Portale2019-01-171-1/+1
| | | | | | | [-Wclazy-qstring-ref] Change-Id: If8a0844b39377feb3772542559655854a92b93cd Reviewed-by: hjk <hjk@qt.io>
* FakeVim: Disable cursor blinking by defaulthjk2018-12-044-1/+31
| | | | | | | | Add an option to enable Task-number: QTCREATORBUG-21613 Change-Id: Ia0553f0b89b22c1d5b47487cd6e5b3c3a523cd6d Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* FakeVim: ModernizeAlessandro Portale2018-11-087-73/+72
| | | | | | | | | | | modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using modernize-use-equals-default Change-Id: I320a08a99a1d18ab87aec207ec1e03190009b592 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* FakeVim: Fix clang complaining about register storage typeTobias Hunger2018-10-051-1/+1
| | | | | Change-Id: I9bbc2835c3311f46fdb3df83d56a8ab1ddd41f5a Reviewed-by: hjk <hjk@qt.io>
* FakeVim: Alias C-w C-h/j/k/l to C-w h/j/k/lhjk2018-08-151-4/+4
| | | | | | | | In Vim land do as Vim does. Change-Id: I4172039804fbee2c596f02587028943ac9845164 Task-number: QTCREATORBUG-20923 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Fix: member initializer for 'm_fooBar' is redundantAlessandro Portale2018-07-121-1/+1
| | | | | | | | warning: member initializer for 'm_isValid' is redundant [modernize-use-default-member-init] Change-Id: Icd521e7d77054512bc0ed6b95cf08440320b0ce0 Reviewed-by: hjk <hjk@qt.io>
* FakeVim: Add support for :wqahjk2018-07-022-3/+4
| | | | | | | Task-number: QTCREATORBUG-20699 Change-Id: I01e5e69abe9a7192f19d604847443f550a20ef0f Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Lukas Holecek <hluk@email.cz>
* Update Options dialog iconsAlessandro Portale2018-04-245-2/+4
| | | | | | | | | A new set of scalable and themable icons with unified look as provided by Diana. Task-number: QTCREATORBUG-20325 Change-Id: I68498b034e9e43fbb61511a38d9c7fc0003ab076 Reviewed-by: hjk <hjk@qt.io>
* Clean up options page category display name and icon set upEike Ziller2018-04-231-6/+1
| | | | | | | | | | | | | | In cases where plugins extend an existing settings category of a plugin that they depend on anyhow, they do not need to specify the translated display name and icon for that category. Some options pages were already not setting the icon, but still the translated name, which makes even less sense. Clean up this mess, only setting display name and icon if that is necessary. Change-Id: I8bc9d0c51b11d48f1d847337838704d663e70b45 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* FakeVim: Remove Utils dependencies from fakevimhandler.cpphjk2018-04-121-27/+47
| | | | | | | | | There have been requests to easily re-use FakeVim in other projects. To make that easy, cut the few explicit ties to libUtils in fakevimhandler.cpp. Change-Id: I090d50fb1fd4e62d97e9430e94a84d1f267773a4 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Utils: Purge qtcfallthrough.hOrgad Shaneh2018-04-091-1/+0
| | | | | | | No longer needed. Change-Id: I9b0bee014df89d4c567f1d2431b5ff9404f5f925 Reviewed-by: hjk <hjk@qt.io>
* FakeVim: Implement :<range>sor[t][!]hjk2018-03-131-0/+35
| | | | | | | | | None of the other options yet. Change-Id: Iabf18c1be4d228c97d2de9cb17e71c307e9ec5a2 Task-number: QTCREATORBUG-20022 Reviewed-by: Lukas Holecek <hluk@email.cz> Reviewed-by: André Hartmann <aha_1980@gmx.de>
* FakeVim: Quieten warningsTobias Hunger2018-03-061-7/+7
| | | | | | | | Quieten warnings about inconsistent use of override and unused lambda captures. Change-Id: I576937dfb86343c3e99d18348966093d5a2c3471 Reviewed-by: hjk <hjk@qt.io>
* FakeVim: Experiment with hand-written signalshjk2018-03-023-421/+353
| | | | | | Change-Id: If76c68d3abb42240a279c15cf4b3d4b9e04460bd Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: hjk <hjk@qt.io>
* CodeAssist: use shared pointer to pass around proposal modelsDavid Schulz2018-02-271-1/+2
| | | | | | Task-number: QTCREATORBUG-17752 Change-Id: Ia41f169b86ead209830e6f15764062389ced2b67 Reviewed-by: hjk <hjk@qt.io>
* Merge remote-tracking branch 'origin/4.6'Eike Ziller2018-02-231-3/+7
|\ | | | | | | | | | | | | Conflicts: src/plugins/coreplugin/helpmanager.cpp Change-Id: I2feb60ec0afb2f22f75dc137a01c3fa217b299d8
| * Document model: Use optional for "indexOf" kind of methodsEike Ziller2018-02-161-3/+7
| | | | | | | | | | Change-Id: Iaffbb0b695f96b5b44c9fd0df63891c2797181b7 Reviewed-by: David Schulz <david.schulz@qt.io>
* | FakeVim: Squash MSVC warning about supposedly non-captured 'this'hjk2018-02-151-1/+1
| | | | | | | | | | Change-Id: Ibb81d15209d0c71a67f4707aa981b21fae1e3950 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* | Core: make useMacShortcut constexprDavid Schulz2018-02-021-2/+2
| | | | | | | | | | Change-Id: I293b96428784b6efecac6dae4f2f9690af0027da Reviewed-by: Eike Ziller <eike.ziller@qt.io>