1/*
2 SPDX-FileCopyrightText: KDE Developers
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#ifndef KATEVI_DEFINITIONS_H
8#define KATEVI_DEFINITIONS_H
9
10#ifdef Q_OS_MACOS
11// From the Qt docs: On macOS, the ControlModifier value corresponds to the Command keys on the
12// keyboard, and the MetaModifier value corresponds to the Control keys.
13#define CONTROL_MODIFIER Qt::MetaModifier
14#define META_MODIFIER Qt::ControlModifier
15#else
16#define CONTROL_MODIFIER Qt::ControlModifier
17#define META_MODIFIER Qt::MetaModifier
18#endif
19
20namespace KateVi
21{
22/**
23 * The four vi modes supported by Kate's vi input mode
24 */
25enum ViMode { NormalMode, InsertMode, VisualMode, VisualLineMode, VisualBlockMode, ReplaceMode };
26
27enum OperationMode { CharWise = 0, LineWise, Block };
28
29const unsigned int EOL = 99999;
30}
31
32#endif // KATEVI_DEFINITIONS_H
33

source code of ktexteditor/src/vimode/definitions.h