Skip to content

TemplaterEditorHandler

The editor_handler of the Templater plugin instance, narrowed to the members callers use.

Its members are snake_case because Templater’s are.

Import:

import type { TemplaterEditorHandler } from '@mnaoumov/obsidian-lib/templater';

Signature:

export interface TemplaterEditorHandler

Properties

PropertyTypeDescription
jump_to_next_cursor_location(file?: null | TFile, auto_jump?: boolean) => Promise<void>Consumes the next tp.file.cursor() marker in the ACTIVE editor and puts the caret there. Given a file, it does nothing unless that file is the active one; with auto_jump set, it does nothing while Templater's own Automatic jump to cursor setting is off, which is the pair Templater itself passes after rendering a note.

Links to this page: