19 #define vimdo(N) for (int Intentionally_Long_Unlikely_Name = 0;\ 20 Intentionally_Long_Unlikely_Name < N; ++Intentionally_Long_Unlikely_Name) 92 explicit Action(
const QString &command,
int count = 0);
95 QString getCommand()
const;
97 Count getCount()
const;
100 bool operator==(
const QString &cmd)
const;
115 void addBinding(
const QString &sequence,
const QString &action);
120 void addBindings(
const QMap<QString, QString> &map);
152 std::function<
bool(
const Action &action)> callback,
153 bool allowCount =
true);
void registerKeyPress(QKeyEvent *event, std::function< bool(const Action &action)> callback, bool allowCount=true)
Process a key press in vim-mode.
Count(int count)
Construct a vim-count.
int raw() const
Get the raw count from this Count.
Count n()
The vim-count from the current key sequence.
An action in vim-mode.
Definition: vim.h:81
void addBindings(const QMap< QString, QString > &map)
Convenient alternative to multiple calls of Vim::addBinding.
void resetStroke()
Discard the current key sequence and reset vim status indicator.
void enable(bool enable)
Enable/Disable vim-mode throughout the application instance.
bool enabled()
Is vim-mode enabled?
void addBinding(const QString &sequence, const QString &action)
Register a keybinding with Vim-mode.
Everything related to vim-mode inside schim.
Definition: vim.h:25
QString getStatusText()
Get the vim status text for the current key sequence.
Count N
Convenience typedef.
Definition: vim.h:68
Representation of a vim-count.
Definition: vim.h:48