@@ -152,30 +152,62 @@ export class TodoistContextBridgeSettingTab extends PluginSettingTab {
152152 // Dataview Cleanup Keys
153153 new Setting ( this . containerEl )
154154 . setName ( "Dataview cleanup keys" )
155- . setDesc ( "Comma-separated list of dataview keys to remove from task text (e.g., created, c)" )
156- . addText ( ( text ) =>
157- text
158- . setPlaceholder ( "created, c" )
155+ . setDesc (
156+ createFragment ( ( frag ) => {
157+ frag . appendText (
158+ "Remove dataview metadata fields from task text. Separate keys with commas. "
159+ ) ;
160+ frag . createEl ( "br" ) ;
161+ frag . createEl ( "br" ) ;
162+ frag . appendText (
163+ "Example: To remove fields like [created::2024-01-01] and [c::#tag], use: "
164+ ) ;
165+ frag . createEl ( "code" , {
166+ text : "created, c" ,
167+ } ) ;
168+ } ) ,
169+ )
170+ . addTextArea ( ( text ) => {
171+ text . setPlaceholder ( "Enter dataview keys, separated by commas" )
159172 . setValue ( this . plugin . settings . dataviewCleanupKeys )
160173 . onChange ( async ( value ) => {
161174 this . plugin . settings . dataviewCleanupKeys = value ;
162175 await this . plugin . saveSettings ( ) ;
163- } ) ,
164- ) ;
176+ } ) ;
177+ text . inputEl . rows = 4 ;
178+ text . inputEl . cols = 50 ;
179+ return text ;
180+ } ) ;
165181
166182 // Moment.js Format Cleanup Patterns
167183 new Setting ( this . containerEl )
168184 . setName ( "Moment.js format cleanup patterns" )
169- . setDesc ( "Comma-separated list of Moment.js format patterns to remove. Use [prefix] for text/emoji before the date (e.g., [📝 ]YYYY-MM-DDTHH:mm)" )
170- . addText ( ( text ) =>
171- text
172- . setPlaceholder ( "[📝 ]YYYY-MM-DDTHH:mm, [❎ ]YYYY-MM-DDTHH:mm" )
185+ . setDesc (
186+ createFragment ( ( frag ) => {
187+ frag . appendText (
188+ "Remove timestamps with optional prefixes from task text. Separate patterns with commas. "
189+ ) ;
190+ frag . createEl ( "br" ) ;
191+ frag . createEl ( "br" ) ;
192+ frag . appendText (
193+ "Example: To remove timestamps like '📝 2024-01-01T10:30' and '❎ 2024-01-01T10:30', use: "
194+ ) ;
195+ frag . createEl ( "code" , {
196+ text : "[📝 ]YYYY-MM-DDTHH:mm, [❎ ]YYYY-MM-DDTHH:mm" ,
197+ } ) ;
198+ } ) ,
199+ )
200+ . addTextArea ( ( text ) => {
201+ text . setPlaceholder ( "Enter Moment.js patterns, separated by commas" )
173202 . setValue ( this . plugin . settings . momentFormatCleanupPatterns )
174203 . onChange ( async ( value ) => {
175204 this . plugin . settings . momentFormatCleanupPatterns = value ;
176205 await this . plugin . saveSettings ( ) ;
177- } ) ,
178- ) ;
206+ } ) ;
207+ text . inputEl . rows = 4 ;
208+ text . inputEl . cols = 50 ;
209+ return text ;
210+ } ) ;
179211
180212 // Default Cleanup Patterns
181213 new Setting ( this . containerEl )
@@ -265,6 +297,7 @@ export class TodoistContextBridgeSettingTab extends PluginSettingTab {
265297 } ) ;
266298 text . inputEl . rows = 4 ;
267299 text . inputEl . cols = 50 ;
300+ return text ;
268301 } ) ;
269302
270303 // ID section
0 commit comments