Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About """ #47

Open
linonetwo opened this issue Jun 2, 2024 · 0 comments
Open

About """ #47

linonetwo opened this issue Jun 2, 2024 · 0 comments

Comments

@linonetwo
Copy link

linonetwo commented Jun 2, 2024

Seems '' syntax in multipline text is not ignored.

title: $:/plugins/linonetwo/intention-tower-knowledge-graph/ViewTemplate/ArrangeNextWeek
caption: {{$:/core/images/edit-button}} <<lingo Tabs/ArrangeNextWeek $:/plugins/linonetwo/intention-tower-knowledge-graph/language/>>
tags: $:/tags/ITKG/ProjectsOverview

\whitespace trim
\import [[$:/plugins/linonetwo/intention-tower-knowledge-graph/ViewTemplate/WeekJournalSelect]]

{{$:/plugins/linonetwo/intention-tower-knowledge-graph/ViewTemplate/WeekJournalSelect}}

<% if [<journal-title-this-week>!is[missing]] %>
  <<tabs "[all[shadows]tag[$:/tags/ITKG/ArrangeNextWeek]nsort[order]]" "$:/plugins/linonetwo/intention-tower-knowledge-graph/ViewTemplate/ArrangeNextWeek/Monday" "$:/temp/ITKG/ArrangeNextWeek" "tc-vertical">>

  <$basic-table
    height="800px"
    filter="[all[tiddlers]tag{$:/plugins/linonetwo/intention-tower-knowledge-graph/Config/project-tag}]"
    columns="""
      [
        {
          field: 'title',
          title: 'Caption',
          width: 'auto',
        },
        {
          field: 'tags',
          title: '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-IntentionDynamicTable', '')
          .split(' ').filter(field => !(['title', 'tags'].includes(field)))
          .map(field => ({
            field,
            title: field,
            width: 'auto',
          })),
      ]
    """
  />
<% else %>
  <<lingo Tabs/ArrangeNextWeek/Description>>
<% endif %>

图片

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant