Skip to content

Commit

Permalink
settings legend for date includes explonation.
Browse files Browse the repository at this point in the history
  • Loading branch information
zsviczian committed Apr 10, 2021
1 parent 258790d commit c08c4af
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion data.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"personRegexpString":"\\[{2}People\\/(.*?)\\]{2}","projectRegexpString":"\\[{2}Projects\\/(.*?)\\]{2}","dateRegexpString":"#(\\d{4})\\/(\\d{2})\\/(\\d{2})","discussWithRegexpString":"#(discussWith)","waitingForRegexpString":"#(waitingFor)","promisedToRegexpString":"#(promisedTo)","somedayMaybeRegexpString":"#(someday)"}
{"personRegexpString":"\\[{2}People\\/(.*?)\\]{2}","projectRegexpString":"\\[{2}Projects\\/(.*?)\\]{2}","dateRegexpString":"","discussWithRegexpString":"#(discussWith)","waitingForRegexpString":"#(waitingFor)","promisedToRegexpString":"#(promisedTo)","somedayMaybeRegexpString":"#(someday)"}
6 changes: 3 additions & 3 deletions main.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ export class ActionTrackerSettingTab extends PluginSettingTab {

new Setting(containerEl)
.setName('Date regexp pattern')
.setDesc('This is the regular expression to get the date for an action.')
.setDesc('This is the regular expression to get the date for an action. The RegExp needs to capture 3 values. The first one should be the year (yyyy), the sceond the month (mm), the third the day (dd).')
.addText(text => text
.setPlaceholder('#(\\d{4}\\/\\d{2}\\/\\d{2})')
.setPlaceholder('#(\\d{4})\\/(\\d{2})\\/(\\d{2})')
.setValue(this.plugin.settings.dateRegexpString)
.onChange(async (value) => {
this.plugin.settings.dateRegexpString = value;
Expand Down

0 comments on commit c08c4af

Please sign in to comment.