aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/fakevim/fakevimactions.cpp
Commit message (Collapse)AuthorAgeFilesLines
* TextEditor: Move access to smaller settings chunkshjk2024-02-011-1/+1
| | | | | Change-Id: Id827edbd19dde54b66cb4349d9c832bc23110adc Reviewed-by: David Schulz <david.schulz@qt.io>
* Fix setEnabler / readSettings orderMarcus Tillmanns2023-11-071-2/+2
| | | | | | | | | BaseAspect::setEnabler requires the settings to be read already. This is because readSettings() does not emit "valueChanged", and so the connections from the enabler to the target are not triggered. Change-Id: I0c95e2b516cd03c1dbad653288b44510ec7ea800 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Utils: Use a proper class as Keyhjk2023-09-271-4/+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 etc: Even more Key and Storehjk2023-08-251-5/+5
| | | | | Change-Id: Id2405d8a89c47ea766439eec91db36ed7313eb92 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* Utils etc: More use of Key and Storehjk2023-08-241-2/+2
| | | | | Change-Id: Idd2d70617f775d783aee93a2fe82544ad335a739 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* Core: Add some sanity check that settings containers don't auto-applyhjk2023-07-131-0/+2
| | | | | | | | | | We use manual 'Apply' in the dialog. Also, mark a few pages as non-autoapply that were recently changed away from PagedSettings again which did that autmatically. Change-Id: Id78cac2770658b18c420813802a0e77443329f39 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* FakeVim: Delay settings creation until actual usehjk2023-07-101-16/+25
| | | | | | 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-1/+3
| | | | | | | | ... 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-1/+0
| | | | | | | 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-26/+2
| | | | | | | | | | 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-6/+4
| | | | | Change-Id: I6ab2c1643a5236525515ded296cd854933584603 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* FakeVim: Use PagedSettings for main settingshjk2023-06-011-7/+141
| | | | | Change-Id: I5029ae42ca5c3ec426d37a818150677186dd55ea Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Utils: Remove LabelPlacement::AtCheckBoxWithoutDummyLabelhjk2023-05-241-1/+1
| | | | | | | | | | This is identical in remaining functionality to AtCheckBox after the recent layout builder changes (or rather, can be adjusted on the layouting side by having appropriate empty cells) Task-number: QTCREATORBUG-29167 Change-Id: Ic357de6fb756acb5926afe1fd361ee4b18b17afd Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* FakeVim: Tr::trAlessandro Portale2023-01-231-37/+38
| | | | | 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>
* Utils: More forward declarations / drop unused headers [D-G]Jarek Kobus2022-05-251-0/+1
| | | | | | | | | | | Round 1 - focus on headers. For classes with initial in range [D-G]. Try to keep the same separators between different kind of headers. Change-Id: Id42cd7b3743a816f75cecb6b576c0e37cb057473 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
* FakeVim: Fix GUI text for "Smart indentation" settinghjk2021-11-241-1/+1
| | | | | | Change-Id: Ib347a36dd10a6474aae4da7285f4374593d372f6 Fixes: QTCREATORBUG-26607 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Tests: Fix compileChristian Stenger2021-03-191-0/+3
| | | | | | | Amends 0f6d04ce34e2d683. Change-Id: Iee83ad5244bf1fa1ba47735ffab2154933d30460 Reviewed-by: hjk <hjk@qt.io>
* FakeVim: Set settings page to manual applyhjk2021-03-171-0/+2
| | | | | | | | | | | The default is badly chosen, but it's what it is for now. Tested best with the "Show line numbers relative to cursor" option, which should have immediate effect on "Apply" - and only then. Change-Id: I78864457b44032810b78fdef9e4a5ac4c287dd50 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* FakeVim: Fix backspace optionLukas Holecek2021-03-031-1/+1
| | | | | Change-Id: I908ea8db7da0711de24c87b484893e1bbe3ced93 Reviewed-by: hjk <hjk@qt.io>
* FakeVim: Fix default options in standalone libraryLukas Holecek2021-03-031-0/+1
| | | | | Change-Id: I49eb9a4b05f155c986e514edf30bf01bacf83d05 Reviewed-by: hjk <hjk@qt.io>
* FakeVim: Aspectify settingshjk2021-03-031-100/+103
| | | | | 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: 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: Disable cursor blinking by defaulthjk2018-12-041-0/+1
| | | | | | | | 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>
* FakeVim: Modernizehjk2016-04-211-29/+27
| | | | | | | Take advantage of QT_RESTRICTED_CAST_TO_ASCII, auto, etc. Change-Id: I4602fd6ef5f24b12cb9fe09ce39ad907e76fe259 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* FakeVim: Simplify FakeVimSettings objecthjk2016-03-031-90/+63
| | | | | 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>
* Merge remote-tracking branch 'origin/3.2'Eike Ziller2014-10-141-7/+8
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/libs/utils/ipaddresslineedit.cpp src/libs/utils/logging.h src/plugins/analyzerbase/AnalyzerBase.pluginspec.in src/plugins/android/Android.pluginspec.in src/plugins/android/androiddeploystep.cpp src/plugins/android/androiddeploystep.h src/plugins/android/androiddeploystepfactory.cpp src/plugins/android/androiddeploystepwidget.cpp src/plugins/android/androidpackagecreationfactory.cpp src/plugins/android/androidpackagecreationstep.cpp src/plugins/android/androidpackagecreationstep.h src/plugins/android/androidpackagecreationwidget.cpp src/plugins/android/androidpackagecreationwidget.h src/plugins/android/javafilewizard.cpp src/plugins/autotoolsprojectmanager/AutotoolsProjectManager.pluginspec.in src/plugins/baremetal/BareMetal.pluginspec.in src/plugins/bazaar/Bazaar.pluginspec.in src/plugins/beautifier/Beautifier.pluginspec.in src/plugins/bineditor/BinEditor.pluginspec.in src/plugins/bookmarks/Bookmarks.pluginspec.in src/plugins/clangcodemodel/ClangCodeModel.pluginspec.in src/plugins/clangcodemodel/clanghighlightingsupport.cpp src/plugins/clangcodemodel/clangsymbolsearcher.cpp src/plugins/classview/ClassView.pluginspec.in src/plugins/clearcase/ClearCase.pluginspec.in src/plugins/cmakeprojectmanager/CMakeProjectManager.pluginspec.in src/plugins/cmakeprojectmanager/cmakeeditorfactory.cpp src/plugins/cmakeprojectmanager/cmakehighlighter.cpp src/plugins/coreplugin/Core.pluginspec.in src/plugins/cpaster/CodePaster.pluginspec.in src/plugins/cppeditor/CppEditor.pluginspec.in src/plugins/cppeditor/cppfilewizard.cpp src/plugins/cpptools/CppTools.pluginspec.in src/plugins/cpptools/cpphighlightingsupportinternal.cpp src/plugins/cpptools/cppmodelmanagerinterface.cpp src/plugins/cpptools/cppmodelmanagerinterface.h src/plugins/cvs/CVS.pluginspec.in src/plugins/debugger/Debugger.pluginspec.in src/plugins/designer/Designer.pluginspec.in src/plugins/diffeditor/DiffEditor.pluginspec.in src/plugins/emacskeys/EmacsKeys.pluginspec.in src/plugins/fakevim/FakeVim.pluginspec.in src/plugins/genericprojectmanager/GenericProjectManager.pluginspec.in src/plugins/git/Git.pluginspec.in src/plugins/git/gitorious/gitorious.cpp src/plugins/git/gitorious/gitorious.h src/plugins/git/gitorious/gitoriousclonewizard.cpp src/plugins/git/gitorious/gitorioushostwidget.cpp src/plugins/git/gitorious/gitorioushostwidget.h src/plugins/git/gitorious/gitorioushostwizardpage.cpp src/plugins/git/gitorious/gitoriousprojectwidget.cpp src/plugins/git/gitorious/gitoriousprojectwidget.h src/plugins/git/gitorious/gitoriousprojectwizardpage.cpp src/plugins/git/gitorious/gitoriousprojectwizardpage.h src/plugins/git/gitorious/gitoriousrepositorywizardpage.cpp src/plugins/git/gitorious/gitoriousrepositorywizardpage.h src/plugins/glsleditor/GLSLEditor.pluginspec.in src/plugins/glsleditor/glsleditorfactory.cpp src/plugins/glsleditor/glslfilewizard.cpp src/plugins/helloworld/HelloWorld.pluginspec.in src/plugins/help/Help.pluginspec.in src/plugins/imageviewer/ImageViewer.pluginspec.in src/plugins/ios/Ios.pluginspec.in src/plugins/macros/Macros.pluginspec.in src/plugins/mercurial/Mercurial.pluginspec.in src/plugins/perforce/Perforce.pluginspec.in src/plugins/projectexplorer/ProjectExplorer.pluginspec.in src/plugins/pythoneditor/PythonEditor.pluginspec.in src/plugins/pythoneditor/pythoneditorwidget.cpp src/plugins/pythoneditor/wizard/pythonfilewizard.cpp src/plugins/qbsprojectmanager/QbsProjectManager.pluginspec.in src/plugins/qbsprojectmanager/defaultpropertyprovider.cpp src/plugins/qmakeprojectmanager/QmakeProjectManager.pluginspec.in src/plugins/qmakeprojectmanager/profileeditorfactory.cpp src/plugins/qmldesigner/QmlDesigner.pluginspec.in src/plugins/qmljseditor/QmlJSEditor.pluginspec.in src/plugins/qmljseditor/qmljseditorfactory.cpp src/plugins/qmljstools/QmlJSTools.pluginspec.in src/plugins/qmlprofiler/QmlProfiler.pluginspec.in src/plugins/qmlprojectmanager/QmlProjectManager.pluginspec.in src/plugins/qnx/Qnx.pluginspec.in src/plugins/qtsupport/QtSupport.pluginspec.in src/plugins/remotelinux/RemoteLinux.pluginspec.in src/plugins/resourceeditor/ResourceEditor.pluginspec.in src/plugins/resourceeditor/resourcewizard.h src/plugins/subversion/Subversion.pluginspec.in src/plugins/tasklist/TaskList.pluginspec.in src/plugins/texteditor/TextEditor.pluginspec.in src/plugins/texteditor/basetexteditor_p.h src/plugins/texteditor/basetextmark.cpp src/plugins/texteditor/codeassist/basicproposalitemlistmodel.h src/plugins/texteditor/codeassist/defaultassistinterface.h src/plugins/texteditor/codeassist/iassistproposalitem.cpp src/plugins/texteditor/itexteditor.cpp src/plugins/texteditor/itexteditor.h src/plugins/texteditor/itextmark.cpp src/plugins/texteditor/plaintexteditor.cpp src/plugins/texteditor/plaintexteditor.h src/plugins/texteditor/texteditoractionhandler.cpp src/plugins/todo/Todo.pluginspec.in src/plugins/updateinfo/UpdateInfo.pluginspec.in src/plugins/valgrind/Valgrind.pluginspec.in src/plugins/vcsbase/VcsBase.pluginspec.in src/plugins/welcome/Welcome.pluginspec.in src/plugins/winrt/WinRt.pluginspec.in tests/auto/debugger/temporarydir.h Change-Id: I254af8be8119fe9855287909e17d4b8ca9d2fc2f
| * License updateEike Ziller2014-10-091-7/+8
| | | | | | | | | | Change-Id: I3c22ef2685d7aa589f5d0ab74d693653a4c32082 Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
* | FakeVim: Use a single "FakeVim" translation contexthjk2014-08-261-11/+7
|/ | | | | | Change-Id: I624dedddf88a017af107670794034282f0aafdcc Reviewed-by: Eike Ziller <eike.ziller@digia.com> Reviewed-by: hjk <hjk121@nokiamail.com>
* Fix FakeVim tests compilationOrgad Shaneh2014-01-221-0/+20
| | | | | Change-Id: I23cfa9a2ac2ae78d8faf2021d90680ac85dba341 Reviewed-by: hjk <hjk121@nokiamail.com>
* FakeVim: Support for relative line numberinghluk2014-01-221-0/+1
| | | | | | | 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: 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: Don't check for "UseFakeVim" in standalone modehluk2013-04-031-1/+1
| | | | | Change-Id: Iad82bcdce429764f3ceef07d9894ab817b844336 Reviewed-by: hjk <hjk121@nokiamail.com>
* FakeVim: Do not enable FakeVim by defaultDaniel Teske2013-03-211-1/+1
| | | | | | Task-number: QTCREATORBUG-9009 Change-Id: I947adc6a6dbccf676112ac77e186134fb660efd1 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/+1
| | | | | 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-0/+1
| | | | | Change-Id: Ied0a85ec834232a040b447d70f113daca9e4c035 Reviewed-by: hjk <hjk121@nokiamail.com>
* FakeVim: Make plugin standalone if necessaryhjk2013-03-081-152/+82
| | | | | | | | | 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>