@@ -26,6 +26,7 @@ export enum ButtonActionType {
2626 INPUT = 'input' ,
2727 SLEEP = 'sleep' ,
2828 TEMPLATER_CREATE_NOTE = 'templaterCreateNote' ,
29+ RUN_TEMPLATER_FILE = 'runTemplaterFile' ,
2930 UPDATE_METADATA = 'updateMetadata' ,
3031 CREATE_NOTE = 'createNote' ,
3132 REPLACE_IN_NOTE = 'replaceInNote' ,
@@ -71,6 +72,11 @@ export interface TemplaterCreateNoteButtonAction {
7172 openIfAlreadyExists ?: boolean ;
7273}
7374
75+ export interface RunTemplaterFileButtonAction {
76+ type : ButtonActionType . RUN_TEMPLATER_FILE ;
77+ templateFile : string ;
78+ }
79+
7480export interface UpdateMetadataButtonAction {
7581 type : ButtonActionType . UPDATE_METADATA ;
7682 bindTarget : string ;
@@ -132,7 +138,8 @@ export type ButtonAction =
132138 | ReplaceSelfButtonAction
133139 | RegexpReplaceInNoteButtonAction
134140 | InsertIntoNoteButtonAction
135- | InlineJSButtonAction ;
141+ | InlineJSButtonAction
142+ | RunTemplaterFileButtonAction ;
136143
137144export interface ButtonConfig {
138145 /**
@@ -228,4 +235,5 @@ export interface ButtonActionMap {
228235 [ ButtonActionType . REGEXP_REPLACE_IN_NOTE ] : RegexpReplaceInNoteButtonAction ;
229236 [ ButtonActionType . INSERT_INTO_NOTE ] : InsertIntoNoteButtonAction ;
230237 [ ButtonActionType . INLINE_JS ] : InlineJSButtonAction ;
238+ [ ButtonActionType . RUN_TEMPLATER_FILE ] : RunTemplaterFileButtonAction ;
231239}
0 commit comments