Skip to content

TemplaterEditorHandler.jump_to_next_cursor_location

TemplaterEditorHandler › jump_to_next_cursor_location

Type: (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.