Skip to content

Commit

Permalink
feat: properly omit tags
Browse files Browse the repository at this point in the history
  • Loading branch information
linonetwo committed Jun 9, 2024
1 parent 7f38fdd commit 6676846
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ tags: $:/tags/ITKG/ProjectsOverview
<$basic-table
height="800px"
filter=<<get-non-completed-leaf-projects input:"all[]">>
omitTags="[{$:/plugins/linonetwo/intention-tower-knowledge-graph/Config/project-tag}] [{$:/plugins/linonetwo/intention-tower-knowledge-graph/Config/task-tag}]"
columns="""
[
{
Expand All @@ -36,7 +37,6 @@ tags: $:/tags/ITKG/ProjectsOverview
{
field: 'tags',
width: 200,
fieldFormat: (record) => record.tags.filter(tag => !([$tw.wiki.getTiddlerText('$:/plugins/linonetwo/intention-tower-knowledge-graph/Config/project-tag', ''), $tw.wiki.getTiddlerText('$:/plugins/linonetwo/intention-tower-knowledge-graph/Config/task-tag', '')].includes(tag))).join(', '),
},
...$tw.wiki.getTiddlerText('$:/plugins/linonetwo/intention-tower-knowledge-graph/Config/defaultFields-PriorityTaskDynamicTable', '')
.split(' ').filter(field => !(['title', 'tags'].includes(field)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ tags: $:/tags/ITKG/ProjectsOverview
<$basic-table
height="800px"
filter=<<get-all-non-completed-leaf-tasks entertainment:"">>
omitTags="[{$:/plugins/linonetwo/intention-tower-knowledge-graph/Config/project-tag}] [{$:/plugins/linonetwo/intention-tower-knowledge-graph/Config/task-tag}]"
columns="""
[
{
Expand All @@ -19,7 +20,6 @@ tags: $:/tags/ITKG/ProjectsOverview
{
field: 'tags',
width: 200,
fieldFormat: (record) => record.tags.filter(tag => !([$tw.wiki.getTiddlerText('$:/plugins/linonetwo/intention-tower-knowledge-graph/Config/task-tag', '')].includes(tag))).join(', '),
},
...$tw.wiki.getTiddlerText('$:/plugins/linonetwo/intention-tower-knowledge-graph/Config/defaultFields-PriorityTaskDynamicTable', '')
.split(' ').filter(field => !(['title', 'tags'].includes(field)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ tags: $:/tags/ITKG/ProjectsOverview
<$basic-table
height="800px"
filter="[all[tiddlers]tag{$:/plugins/linonetwo/intention-tower-knowledge-graph/Config/intention-tag}]"
omitTags="[{$:/plugins/linonetwo/intention-tower-knowledge-graph/Config/intention-tag}]"
columns="""
[
{
Expand All @@ -14,7 +15,6 @@ tags: $:/tags/ITKG/ProjectsOverview
{
field: 'tags',
width: 200,
fieldFormat: (record) => record.tags.filter(tag => !([$tw.wiki.getTiddlerText('$:/plugins/linonetwo/intention-tower-knowledge-graph/Config/intention-tag', '')].includes(tag))).join(', '),
},
...$tw.wiki.getTiddlerText('$:/plugins/linonetwo/intention-tower-knowledge-graph/Config/defaultFields-IntentionDynamicTable', '')
.split(' ').filter(field => !(['title', 'tags'].includes(field)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ tags: $:/tags/ITKG/ProjectsOverview
<$basic-table
height="800px"
filter=<<get-all-non-completed-leaf-tasks entertainment:"!">>
omitTags="[{$:/plugins/linonetwo/intention-tower-knowledge-graph/Config/task-tag}]"
columns="""
[
{
Expand All @@ -19,7 +20,6 @@ tags: $:/tags/ITKG/ProjectsOverview
{
field: 'tags',
width: 200,
fieldFormat: (record) => record.tags.filter(tag => !([$tw.wiki.getTiddlerText('$:/plugins/linonetwo/intention-tower-knowledge-graph/Config/task-tag', '')].includes(tag))).join(', '),
},
...$tw.wiki.getTiddlerText('$:/plugins/linonetwo/intention-tower-knowledge-graph/Config/defaultFields-PriorityTaskDynamicTable', '')
.split(' ').filter(field => !(['title', 'tags'].includes(field)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ tags: $:/tags/ITKG/ProjectsOverview
<$basic-table
height="800px"
filter=<<get-non-completed-leaf-projects input:"all[]">>
omitTags="[{$:/plugins/linonetwo/intention-tower-knowledge-graph/Config/project-tag}] [{$:/plugins/linonetwo/intention-tower-knowledge-graph/Config/task-tag}]"
columns="""
[
{
Expand All @@ -19,7 +20,6 @@ tags: $:/tags/ITKG/ProjectsOverview
{
field: 'tags',
width: 200,
fieldFormat: (record) => record.tags.filter(tag => !([$tw.wiki.getTiddlerText('$:/plugins/linonetwo/intention-tower-knowledge-graph/Config/task-tag', '')].includes(tag))).join(', '),
},
...$tw.wiki.getTiddlerText('$:/plugins/linonetwo/intention-tower-knowledge-graph/Config/defaultFields-PriorityTaskDynamicTable', '')
.split(' ').filter(field => !(['title', 'tags'].includes(field)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ tags: $:/tags/ITKG/ProjectsOverview
<$basic-table
height="800px"
filter=<<filter-taskCompleted>>
omitTags="[{$:/plugins/linonetwo/intention-tower-knowledge-graph/Config/project-tag}] [{$:/plugins/linonetwo/intention-tower-knowledge-graph/Config/task-tag}]"
columns="""
[
{
Expand All @@ -19,7 +20,6 @@ tags: $:/tags/ITKG/ProjectsOverview
{
field: 'tags',
width: 200,
fieldFormat: (record) => record.tags.filter(tag => !([$tw.wiki.getTiddlerText('$:/plugins/linonetwo/intention-tower-knowledge-graph/Config/task-tag', '')].includes(tag))).join(', '),
},
...$tw.wiki.getTiddlerText('$:/plugins/linonetwo/intention-tower-knowledge-graph/Config/defaultFields-TaskCompletedDynamicTable', '')
.split(' ').filter(field => !(['title', 'tags'].includes(field)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ tags: $:/tags/ITKG/UnderIntention
<$basic-table
height="800px"
filter=<<get-non-completed-leaf-projects>>
omitTags="[{$:/plugins/linonetwo/intention-tower-knowledge-graph/Config/project-tag}] [{$:/plugins/linonetwo/intention-tower-knowledge-graph/Config/task-tag}]"
columns="""
[
{
Expand All @@ -16,7 +17,6 @@ tags: $:/tags/ITKG/UnderIntention
{
field: 'tags',
width: 200,
fieldFormat: (record) => record.tags.filter(tag => !([$tw.wiki.getTiddlerText('$:/plugins/linonetwo/intention-tower-knowledge-graph/Config/task-tag', '')].includes(tag))).join(', '),
},
...$tw.wiki.getTiddlerText('$:/plugins/linonetwo/intention-tower-knowledge-graph/Config/defaultFields-ProjectDynamicTable', '')
.split(' ').filter(field => !(['title', 'tags'].includes(field)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ tags: $:/tags/ITKG/UnderProject

<$basic-table
filter=<<filter-projectTaskCompleted>>
omitTags="[{$:/plugins/linonetwo/intention-tower-knowledge-graph/Config/project-tag}] [{$:/plugins/linonetwo/intention-tower-knowledge-graph/Config/task-tag}]"
columns="""
[
{
Expand All @@ -18,7 +19,6 @@ tags: $:/tags/ITKG/UnderProject
{
field: 'tags',
width: 200,
fieldFormat: (record) => record.tags.filter(tag => !([$tw.wiki.getTiddlerText('$:/plugins/linonetwo/intention-tower-knowledge-graph/Config/task-tag', '')].includes(tag))).join(', '),
},
...$tw.wiki.getTiddlerText('$:/plugins/linonetwo/intention-tower-knowledge-graph/Config/defaultFields-ProjectTaskCompletedDynamicTable', '')
.split(' ').filter(field => !(['title', 'tags'].includes(field)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ tags: $:/tags/ITKG/UnderProject

<$basic-table
filter=<<get-non-completed-leaf-tasks>>
omitTags="[{$:/plugins/linonetwo/intention-tower-knowledge-graph/Config/project-tag}] [{$:/plugins/linonetwo/intention-tower-knowledge-graph/Config/task-tag}]"
columns="""
[
{
Expand All @@ -17,7 +18,6 @@ tags: $:/tags/ITKG/UnderProject
{
field: 'tags',
width: 200,
fieldFormat: (record) => record.tags.filter(tag => !([$tw.wiki.getTiddlerText('$:/plugins/linonetwo/intention-tower-knowledge-graph/Config/task-tag', '')].includes(tag))).join(', '),
},
...$tw.wiki.getTiddlerText('$:/plugins/linonetwo/intention-tower-knowledge-graph/Config/defaultFields-TaskDynamicTable', '')
.split(' ').filter(field => !(['title', 'tags'].includes(field)))
Expand Down

Large diffs are not rendered by default.

0 comments on commit 6676846

Please sign in to comment.