Skip to content

VimExCommandParams

Unofficial

The parsed form of an Ex command line, handed to the function registered for that command.

Import:

import type { VimExCommandParams } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface VimExCommandParams

Properties

PropertyTypeDescription
args?string[]The whitespace-separated arguments that followed the command name.
argStringstringEverything that followed the command name, unsplit.
commandNamestringThe name the command was invoked under, which may be an abbreviation of its full name.
inputstringThe whole command line as the user typed it, including the leading :.
linenumberThe first line of the range the command applies to.
lineEnd?numberThe last line of the range the command applies to, when a range was given.
selectionLinenumberThe first line of the range, as derived from the current selection.
selectionLineEnd?numberThe last line of the range, as derived from the current selection.
setCfg?objectThe option-setting configuration parsed out of a :set command.

Links to this page: