Skip to content

VimJumpList.find method

VimJumpList › find

Unofficial

Look up the position the given number of steps away without moving the current position.

Signature:

find(cm: CodeMirrorEditor, offset: number): EditorPosition | null | undefined

Parameters:

ParameterTypeDescription
cmCodeMirrorEditorThe editor to resolve the position in.
offsetnumberHow many steps to look, negative towards older entries.

Returns: EditorPosition | null | undefinedThe position, or null or undefined when there is no entry that far away.