()
| 181 | } |
| 182 | |
| 183 | private inputGroup(): SettingDefinitionGroup<SettingsKey> { |
| 184 | return { |
| 185 | type: "group", |
| 186 | heading: "Input", |
| 187 | items: [ |
| 188 | { |
| 189 | name: "Use Multi-line Input Prompt", |
| 190 | desc: "Use multi-line input prompt instead of single-line input prompt", |
| 191 | control: { type: "toggle", key: "inputPrompt" }, |
| 192 | }, |
| 193 | { |
| 194 | name: "Persist Input Prompt Drafts", |
| 195 | desc: "Keep drafts when closing input prompts so they can be restored on reopen. Drafts are stored only for this session.", |
| 196 | control: { type: "toggle", key: "persistInputPromptDrafts" }, |
| 197 | }, |
| 198 | { |
| 199 | name: "Use editor selection as default Capture value", |
| 200 | desc: "When enabled, Capture uses the current editor selection as {{VALUE}} and may skip the prompt. When disabled, Capture always prompts for {{VALUE}}.", |
| 201 | control: { type: "toggle", key: "useSelectionAsCaptureValue" }, |
| 202 | }, |
| 203 | { |
| 204 | name: "One-page input for choices (Beta)", |
| 205 | desc: "Experimental. Resolve variables up front and show a single dynamic form before executing Template/Capture choices. See Advanced → One-page Inputs in docs.", |
| 206 | control: { type: "toggle", key: "onePageInputEnabled" }, |
| 207 | }, |
| 208 | { |
| 209 | name: "Date aliases", |
| 210 | desc: |
| 211 | "Shortcodes for natural language date parsing. " + |
| 212 | "One per line: alias = phrase. Example: tm = tomorrow.", |
| 213 | render: (setting) => this.renderDateAliases(setting), |
| 214 | }, |
| 215 | ], |
| 216 | }; |
| 217 | } |
| 218 | |
| 219 | private templatesGroup(): SettingDefinitionGroup<SettingsKey> { |
| 220 | return { |
no test coverage detected