aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/fakevim/fakevimactions.h
Commit message (Collapse)AuthorAgeFilesLines
* Utils: Use a proper class as Keyhjk2023-09-271-6/+4
| | | | | | | | | | | | | | | | The Key encapsulates now a QByteArray. Plan is to use QByteArray::fromRawData on literals, but that's not active yet due to an unclear ASAN report, see the gerrit discussion. For now we also paddle back when interfacing QSettings, instead of mimicing writing a QVariantMap (and fail in some corners), always convert the Store. This is meant to go away in the future when code paths are better controled. Change-Id: Id1206a434d511f8003903d5322c7c9bd5f5fb859 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* Utils: Remove the non-QTC_USE_STORE casehjk2023-08-311-4/+0
| | | | | Change-Id: I857a38c80470d1b474ca0f291a93ed58fbcc0bf4 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* Utils etc: Even more Key and Storehjk2023-08-251-10/+13
| | | | | Change-Id: Id2405d8a89c47ea766439eec91db36ed7313eb92 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* Utils etc: More use of Key and Storehjk2023-08-241-9/+14
| | | | | Change-Id: Idd2d70617f775d783aee93a2fe82544ad335a739 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* FakeVim: Delay settings creation until actual usehjk2023-07-101-5/+5
| | | | | | Task-number: QTCREATORBUG-29167 Change-Id: I3a6f1330922f3840cb7e99d8adb60a728d36eb4b Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* FakeVim: Assume UTF-8 for source also on Windows by defaulthjk2023-07-041-0/+1
| | | | | | | | ... but make it configurable. Fixes: QTCREATORBUG-29320 Change-Id: Ib377c78e51afb7d06167c66306250a281aa9279c Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* FakeVim: Use a FilePathAspect for .vimrchjk2023-06-301-2/+10
| | | | | | | Even if it's not used as such, it would be the right thing to use. Change-Id: I7f8931b581af6a97231c49c20e7adc56ad2efff6 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Utils: Rework aspect implementationhjk2023-06-291-24/+34
| | | | | | | | | | This avoids some repetition and could be a step towards having type storage in (or rather accessible from) the base, so we can have aspects for more complex data (treemodels...) that are not easily converted to QVariant. Change-Id: I9797b3d5646195705212db1830d2b415291ac651 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* FakeVim: Streamline settings handling a bithjk2023-06-011-5/+3
| | | | | Change-Id: I6ab2c1643a5236525515ded296cd854933584603 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* FakeVim: Use PagedSettings for main settingshjk2023-06-011-2/+2
| | | | | Change-Id: I5029ae42ca5c3ec426d37a818150677186dd55ea Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* All: Use the shorter access to aspect values in a few placeshjk2023-05-121-0/+3
| | | | | Change-Id: Ie0ff0e4e1cf4c2750897ea733dfccb743f44fa93 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* FakeVim: Tr::trAlessandro Portale2023-01-231-2/+0
| | | | | Change-Id: Idca64705f2058d22480da6a624008971c8d8aab4 Reviewed-by: hjk <hjk@qt.io>
* Remove GPL-3.0+ from license identifiersKai Köhne2023-01-061-1/+1
| | | | | | | | | | | | | | | Since we also license under GPL-3.0 WITH Qt-GPL-exception-1.0, this applies only to a hypothetical newer version of GPL, that doesn't exist yet. If such a version emerges, we can still decide to relicense... While at it, replace (deprecated) GPL-3.0 with more explicit GPL-3.0-only Change was done by running find . -type f -exec perl -pi -e "s/LicenseRef-Qt-Commercial OR GPL-3.0\+ OR GPL-3.0 WITH Qt-GPL-exception-1.0/LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0/g" {} \; Change-Id: I5097e6ce8d10233993ee30d7e25120e2659eb10b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Use SPDX license identifiersLucie Gérard2022-08-261-24/+2
| | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Task-number: QTBUG-67283 Change-Id: I708fd1f9f2b73d60f57cc3568646929117825813 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* FakeVim: Aspectify settingshjk2021-03-031-73/+91
| | | | | Change-Id: Ic73edce82e192779ed3efe86a5cb747a52d94d36 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* FakeVim: Add emulation for vim-surround pluginTom Praschan2021-02-171-0/+1
| | | | | Change-Id: If450d04dd89a1707ab05806522fbf4cc987d454b Reviewed-by: hjk <hjk@qt.io>
* FakeVim: Add emulation for argtextobj.vim pluginTom Praschan2021-02-121-0/+1
| | | | | Change-Id: I319d2b9fe9f0d145c2560cf03fecc50629c99006 Reviewed-by: hjk <hjk@qt.io>
* FakeVim: Add emulation of vim-exchange pluginTom Praschan2021-02-101-0/+1
| | | | | Change-Id: I844c9bf11231ab842cee020a0e7a29af8ed209eb Reviewed-by: hjk <hjk@qt.io>
* FakeVim: Merge comments when joining lines with 'J'Tom Praschan2021-02-091-0/+1
| | | | | | | This is the default behavior in vim as well Change-Id: Ia4d56e3cfc7f91fc353078daefaabeada9a86bed Reviewed-by: hjk <hjk@qt.io>
* FakeVim: Add emulation for ReplaceWithRegister pluginTom Praschan2021-02-091-0/+1
| | | | | Change-Id: Iaaeef6ff51fe858b759c10adaac582f5858b6210 Reviewed-by: hjk <hjk@qt.io>
* FakeVim: Add emulation for vim-commentaryTom Praschan2021-02-031-0/+3
| | | | | Change-Id: I34f222182835ae160e6c4c66ad0bada79d8abeff Reviewed-by: hjk <hjk@qt.io>
* FakeVim: Disable cursor blinking by defaulthjk2018-12-041-1/+3
| | | | | | | | Add an option to enable Task-number: QTCREATORBUG-21613 Change-Id: Ia0553f0b89b22c1d5b47487cd6e5b3c3a523cd6d Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* FakeVim: ModernizeAlessandro Portale2018-11-081-2/+2
| | | | | | | | | | | 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>
* Wholesale conversion to #pragma oncehjk2016-03-301-4/+1
| | | | | | | Kudos to cgmb and https://github.com/cgmb/guardonce Change-Id: Ifa8970734b8d43fd08c9260c645bdb0228633791 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* FakeVim: Simplify FakeVimSettings objecthjk2016-03-031-19/+26
| | | | | Change-Id: Ic4f4d23af021ed779a500183ca4b145dd3bc3443 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* Update License according to agreement with Free Qt FoundationTobias Hunger2016-01-191-17/+12
| | | | | | | * Update files in src/plugins Change-Id: Ia5d77fad7d19d4bb3498e78661982f68729adb22 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* Update LicenseEike Ziller2015-01-161-6/+6
| | | | | Change-Id: I711d5fb475ef814a1dc9d2822740e827f3f67125 Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
* License updateEike Ziller2014-10-091-7/+8
| | | | | Change-Id: I3c22ef2685d7aa589f5d0ab74d693653a4c32082 Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
* Fix FakeVim tests compilationOrgad Shaneh2014-01-221-0/+7
| | | | | Change-Id: I23cfa9a2ac2ae78d8faf2021d90680ac85dba341 Reviewed-by: hjk <hjk121@nokiamail.com>
* FakeVim: Support for relative line numberinghluk2014-01-221-1/+2
| | | | | | | Settable using 'relativenumber' and 'rnu' options. Change-Id: Idb5aa9669bdfa157d6bb6b517a09d63e8f511b95 Reviewed-by: hjk <hjk121@nokiamail.com>
* Incremented year in copyright infoRobert Loehning2014-01-081-1/+1
| | | | | | Change-Id: Ib5423fdd064e4546f848c0b640b0ed0514c26d3a Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* Fakevim: Add missing Q_OBJECT macroTobias Hunger2013-09-041-0/+2
| | | | | Change-Id: I886861448ef704bde559bc847816da4c53f0fbde Reviewed-by: hjk <hjk121@nokiamail.com>
* FakeVim: Option 'passcharacters' (not in Vim)hluk2013-04-041-1/+1
| | | | | | | | | | | | Option to pass some key presses in insert mode to editor widget (replaces 'passnewline'). This allows to rename symbols in insert mode, complete parenthesis blocks, expand comments etc. Macro expansion and code-completion works with dot command. Task-number:QTCREATORBUG-4828 Change-Id: I5ff43818d4f7f183cd6f4ed8cc3a4586469ab65d Reviewed-by: hjk <hjk121@nokiamail.com>
* FakeVim: Option 'passnewline' (not in Vim)hluk2013-03-181-0/+1
| | | | | | | | | | Option 'passnewline' ('pnl') passes new line in insert mode and on 'o' and 'O' commands to editor widget. This way the editor widget can handle the indentation or insert characters (e.g. asterisk if in C block comment). Change-Id: I06afab6b20b49e1b4d31447826c847d36d32806f Reviewed-by: hjk <hjk121@nokiamail.com>
* FakeVim: Emulate Vim option "tildeop" ("top")hluk2013-03-141-0/+3
| | | | | Change-Id: I61a07f5edc0e2a062ca10cb17f489ac3ce113d9f Reviewed-by: hjk <hjk121@nokiamail.com>
* FakeVim: Emulate Vim option ignorecaseLukas Holecek2013-03-131-0/+1
| | | | | Change-Id: I0dc87f8a34fa458a9eab14440f7ad2ac2cfe0a98 Reviewed-by: hjk <hjk121@nokiamail.com>
* FakeVim: Emulate Vim option "scrolloff" ("so")Lukas Holecek2013-03-121-1/+2
| | | | | Change-Id: Ied0a85ec834232a040b447d70f113daca9e4c035 Reviewed-by: hjk <hjk121@nokiamail.com>
* FakeVim: Make plugin standalone if necessaryhjk2013-03-081-1/+21
| | | | | | | | | It's possible to use FakeVim as standalone plugin for a QTextEdit or QPlainTextEdit widget, so there should be minimum dependencies on Qt Creator code. Change-Id: I415ed87f5e4d97ea78d9d25a8f0c82701ef1f70d Reviewed-by: hjk <hjk121@nokiamail.com>
* FakeVim: User-settable path to .vimrc with saner default for WindowsLukas Holecek2013-02-181-0/+1
| | | | | | | | | | | | Path to .vimrc configuration file can be set in options if "Read .vimrc" option is enabled. Default path for .vimrc is %USERPROFILE%/_vimrc on Windows, ~/.vimrc otherwise. Task-number: QTCREATORBUG-8748 Change-Id: I61ff8484e7635ce7a9361e2ad5cd3943e15613c1 Reviewed-by: hjk <hjk121@nokiamail.com>
* Merge remote-tracking branch 'origin/2.6'Oswald Buddenhagen2013-01-311-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/plugins/autotoolsprojectmanager/AutotoolsProjectManager.pluginspec.in src/plugins/debugger/qtmessageloghandler.cpp src/plugins/debugger/qtmessagelogwindow.cpp src/plugins/madde/maemodeployconfigurationwidget.cpp src/plugins/qmldesigner/components/integration/designdocumentcontroller.cpp src/plugins/qmldesigner/designercore/include/widgetqueryview.h src/plugins/qmldesigner/designercore/metainfo/metainfoparser.cpp src/plugins/qmldesigner/designercore/model/modelnodecontextmenu.cpp src/plugins/qmldesigner/designercore/model/modelnodecontextmenu.h src/plugins/qmlprojectmanager/qmlprojectapplicationwizard.cpp src/plugins/qnx/bardescriptormagicmatcher.h src/plugins/qt4projectmanager/profilekeywords.cpp src/plugins/remotelinux/deployablefilesperprofile.cpp src/plugins/remotelinux/deployablefilesperprofile.h src/plugins/remotelinux/deploymentinfo.cpp src/plugins/remotelinux/deploymentsettingsassistant.cpp src/plugins/remotelinux/profilesupdatedialog.cpp tests/auto/icheckbuild/ichecklib.cpp tests/auto/icheckbuild/parsemanager.cpp tests/auto/icheckbuild/parsemanager.h Change-Id: Ie465a578446a089e1c502d1cb1096e84ca058104
| * Incremented year in copyright infov2.6.2Robert Loehning2013-01-291-1/+1
| | | | | | | | | | Change-Id: Ic6a9ff0359625021ebc061d22db6811814534205 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* | fakevim: Show current command in minibuffer (showcmd option)Lukas Holecek2012-11-201-1/+2
| | | | | | | | | | | | | | | | | | Use showcmd Vim option to show current partial command. Removed unneeded updateMiniBuffer() calls. Change-Id: Iddacd364b7c92882b6169a6894c89cdb202a32bf Reviewed-by: hjk <qthjk@ovi.com>
* | Merge remote-tracking branch 'origin/2.6'Eike Ziller2012-10-051-21/+20
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: share/qtcreator/qml/qmlpuppet/commands/endpuppetcommand.cpp share/qtcreator/qml/qmlpuppet/commands/endpuppetcommand.h src/plugins/debugger/qtmessageloghandler.cpp src/plugins/debugger/qtmessageloghandler.h src/plugins/debugger/qtmessagelogwindow.cpp src/plugins/madde/maemodeployconfigurationwidget.cpp src/plugins/madde/maemodeployconfigurationwidget.h src/plugins/remotelinux/deployablefilesperprofile.cpp src/plugins/remotelinux/deployablefilesperprofile.h src/plugins/remotelinux/deploymentinfo.cpp src/plugins/remotelinux/deploymentinfo.h src/plugins/remotelinux/deploymentsettingsassistant.cpp src/plugins/remotelinux/profilesupdatedialog.cpp src/plugins/remotelinux/remotelinuxdeploymentdatamodel.h tests/auto/icheckbuild/ichecklib.cpp tests/auto/icheckbuild/ichecklib_global.h tests/auto/icheckbuild/parsemanager.cpp tests/auto/icheckbuild/parsemanager.h tests/manual/ssh/tunnel/tunnel.h Change-Id: I04d7761df6bd936ad00e0547974284c967d39580
| * Adjust license headershjk2012-10-051-21/+20
| | | | | | | | | | Change-Id: Ice592c6de9951ee3b2c4cb52ed0bb3b6770e0825 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* | fakevim: Improved searchingLukas Holecek2012-09-041-0/+2
|/ | | | | | | | | | | | Reset cursor position if search is canceled and always search from initial cursor position if search expression changes. Implemented Vim's wrapscan (ws) option. Task-number: QTCREATORBUG-7251 Change-Id: Ic709cc4fb9dacdb94fbd17f85ac9b75738d5578c Reviewed-by: hjk <qthjk@ovi.com>
* fakevim: Added support for smartcase searchingLukas Holecek2012-08-011-0/+1
| | | | | Change-Id: I85a83aff0886282a6eac2dc9cc4662087c3b0b95 Reviewed-by: hjk <qthjk@ovi.com>
* fakevim: Implement special clipboard buffersLukas Holecek2012-08-011-1/+2
| | | | | | | | | | Introduces Vim's special registers "+ and "* and partial support for "clipboard" option - only values "unnamed" and "unnamedplus" and the behaviour is only similar. Task-number: QTCREATORBUG-6342 Change-Id: I1fa95b681edadacfe9690a2fd6eb2e98e7cc5dca Reviewed-by: hjk <qthjk@ovi.com>
* Contact -> qt-project.orgEike Ziller2012-07-191-3/+1
| | | | | Change-Id: I7134d7de30bcf9f9dcfad42520dd45ee083a852d Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* fakevim: don't allow non-positive numbers for tabstop and shiftwidthhjk2012-05-031-0/+1
| | | | | | | Task-number: QTCREATORBUG-7375 Change-Id: I947dd903a5e7d09e367afbc771582793e6c008f1 Reviewed-by: Eike Ziller <eike.ziller@nokia.com> Reviewed-by: Robert Löhning <robert.loehning@nokia.com>
* Removed module names from #include directives.Erik Verbruggen2012-02-151-3/+3
| | | | | | | | Getting the #include directives ready for Qt5. This includes the new-project wizards. Change-Id: Ia9261f1e8faec06b9285b694d2b7e9a095978d2b Reviewed-by: Eike Ziller <eike.ziller@nokia.com>