Skip to content

Commit

Permalink
fix chords under nodejs
Browse files Browse the repository at this point in the history
  • Loading branch information
BurningTreeC committed Aug 22, 2021
1 parent d77dd91 commit 645217a
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 21 deletions.
7 changes: 4 additions & 3 deletions plugins/musicsheets/ui/Buttons/editor-button-A-dropdown.tid
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ title: $:/plugins/BTC/musicsheets/ui/EditorToolbar/dropdown/A

\define get-note-a()
\whitespace trim
<$list filter="[{!!category}!match[Chords]]" emptyMessage="""
<$text text={{$(note-a)$}}/>
""">
<$list filter="[{!!category}!match[Chords]]">
<$list filter="[[$:/state/musicsheets/note-values/]addsuffix<storyTiddler>get[prefix-suffix]] ~[[prefix]]" variable="prefix-suffix">
<$list filter="[<prefix-suffix>match[prefix]]" variable="ignore">
<$text text={{{ [[$:/state/musicsheets/note-values/]addsuffix<storyTiddler>get[text]] }}}/><$text text={{$(note-a)$}}/>
Expand All @@ -14,6 +12,9 @@ title: $:/plugins/BTC/musicsheets/ui/EditorToolbar/dropdown/A
</$list>
</$list>
</$list>
<$list filter="[{!!category}match[Chords]]">
<$text text={{$(note-a)$}}/>
</$list>
\end
\define toolbar-button-note-a-inner()
<$button tag="a">
Expand Down
7 changes: 4 additions & 3 deletions plugins/musicsheets/ui/Buttons/editor-button-B-dropdown.tid
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ title: $:/plugins/BTC/musicsheets/ui/EditorToolbar/dropdown/B

\define get-note-b()
\whitespace trim
<$list filter="[{!!category}!match[Chords]]" emptyMessage="""
<$text text={{$(note-b)$}}/>
""">
<$list filter="[{!!category}!match[Chords]]">
<$list filter="[[$:/state/musicsheets/note-values/]addsuffix<storyTiddler>get[prefix-suffix]] ~[[prefix]]" variable="prefix-suffix">
<$list filter="[<prefix-suffix>match[prefix]]" variable="ignore">
<$text text={{{ [[$:/state/musicsheets/note-values/]addsuffix<storyTiddler>get[text]] }}}/><$text text={{$(note-b)$}}/>
Expand All @@ -14,6 +12,9 @@ title: $:/plugins/BTC/musicsheets/ui/EditorToolbar/dropdown/B
</$list>
</$list>
</$list>
<$list filter="[{!!category}match[Chords]]">
<$text text={{$(note-b)$}}/>
</$list>
\end
\define toolbar-button-note-b-inner()
<$button tag="a">
Expand Down
7 changes: 4 additions & 3 deletions plugins/musicsheets/ui/Buttons/editor-button-C-dropdown.tid
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ title: $:/plugins/BTC/musicsheets/ui/EditorToolbar/dropdown/C

\define get-note-c()
\whitespace trim
<$list filter="[{!!category}!match[Chords]]" emptyMessage="""
<$text text={{$(note-c)$}}/>
""">
<$list filter="[{!!category}!match[Chords]]">
<$list filter="[[$:/state/musicsheets/note-values/]addsuffix<storyTiddler>get[prefix-suffix]] ~[[prefix]]" variable="prefix-suffix">
<$list filter="[<prefix-suffix>match[prefix]]" variable="ignore">
<$text text={{{ [[$:/state/musicsheets/note-values/]addsuffix<storyTiddler>get[text]] }}}/><$text text={{$(note-c)$}}/>
Expand All @@ -14,6 +12,9 @@ title: $:/plugins/BTC/musicsheets/ui/EditorToolbar/dropdown/C
</$list>
</$list>
</$list>
<$list filter="[{!!category}match[Chords]]">
<$text text={{$(note-c)$}}/>
</$list>
\end
\define toolbar-button-note-c-inner()
<$button tag="a">
Expand Down
7 changes: 4 additions & 3 deletions plugins/musicsheets/ui/Buttons/editor-button-D-dropdown.tid
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ title: $:/plugins/BTC/musicsheets/ui/EditorToolbar/dropdown/D

\define get-note-d()
\whitespace trim
<$list filter="[{!!category}!match[Chords]]" emptyMessage="""
<$text text={{$(note-d)$}}/>
""">
<$list filter="[{!!category}!match[Chords]]">
<$list filter="[[$:/state/musicsheets/note-values/]addsuffix<storyTiddler>get[prefix-suffix]] ~[[prefix]]" variable="prefix-suffix">
<$list filter="[<prefix-suffix>match[prefix]]" variable="ignore">
<$text text={{{ [[$:/state/musicsheets/note-values/]addsuffix<storyTiddler>get[text]] }}}/><$text text={{$(note-d)$}}/>
Expand All @@ -14,6 +12,9 @@ title: $:/plugins/BTC/musicsheets/ui/EditorToolbar/dropdown/D
</$list>
</$list>
</$list>
<$list filter="[{!!category}match[Chords]]">
<$text text={{$(note-d)$}}/>
</$list>
\end
\define toolbar-button-note-d-inner()
<$button tag="a">
Expand Down
7 changes: 4 additions & 3 deletions plugins/musicsheets/ui/Buttons/editor-button-E-dropdown.tid
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ title: $:/plugins/BTC/musicsheets/ui/EditorToolbar/dropdown/E

\define get-note-e()
\whitespace trim
<$list filter="[{!!category}!match[Chords]]" emptyMessage="""
<$text text={{$(note-e)$}}/>
""">
<$list filter="[{!!category}!match[Chords]]">
<$list filter="[[$:/state/musicsheets/note-values/]addsuffix<storyTiddler>get[prefix-suffix]] ~[[prefix]]" variable="prefix-suffix">
<$list filter="[<prefix-suffix>match[prefix]]" variable="ignore">
<$text text={{{ [[$:/state/musicsheets/note-values/]addsuffix<storyTiddler>get[text]] }}}/><$text text={{$(note-e)$}}/>
Expand All @@ -14,6 +12,9 @@ title: $:/plugins/BTC/musicsheets/ui/EditorToolbar/dropdown/E
</$list>
</$list>
</$list>
<$list filter="[{!!category}match[Chords]]">
<$text text={{$(note-e)$}}/>
</$list>
\end
\define toolbar-button-note-e-inner()
<$button tag="a">
Expand Down
7 changes: 4 additions & 3 deletions plugins/musicsheets/ui/Buttons/editor-button-F-dropdown.tid
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ title: $:/plugins/BTC/musicsheets/ui/EditorToolbar/dropdown/F

\define get-note-f()
\whitespace trim
<$list filter="[{!!category}!match[Chords]]" emptyMessage="""
<$text text={{$(note-f)$}}/>
""">
<$list filter="[{!!category}!match[Chords]]">
<$list filter="[[$:/state/musicsheets/note-values/]addsuffix<storyTiddler>get[prefix-suffix]] ~[[prefix]]" variable="prefix-suffix">
<$list filter="[<prefix-suffix>match[prefix]]" variable="ignore">
<$text text={{{ [[$:/state/musicsheets/note-values/]addsuffix<storyTiddler>get[text]] }}}/><$text text={{$(note-f)$}}/>
Expand All @@ -14,6 +12,9 @@ title: $:/plugins/BTC/musicsheets/ui/EditorToolbar/dropdown/F
</$list>
</$list>
</$list>
<$list filter="[{!!category}match[Chords]]">
<$text text={{$(note-f)$}}/>
</$list>
\end
\define toolbar-button-note-f-inner()
<$button tag="a">
Expand Down
7 changes: 4 additions & 3 deletions plugins/musicsheets/ui/Buttons/editor-button-G-dropdown.tid
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ title: $:/plugins/BTC/musicsheets/ui/EditorToolbar/dropdown/G

\define get-note-g()
\whitespace trim
<$list filter="[{!!category}!match[Chords]]" emptyMessage="""
<$text text={{$(note-g)$}}/>
""">
<$list filter="[{!!category}!match[Chords]]">
<$list filter="[[$:/state/musicsheets/note-values/]addsuffix<storyTiddler>get[prefix-suffix]] ~[[prefix]]" variable="prefix-suffix">
<$list filter="[<prefix-suffix>match[prefix]]" variable="ignore">
<$text text={{{ [[$:/state/musicsheets/note-values/]addsuffix<storyTiddler>get[text]] }}}/><$text text={{$(note-g)$}}/>
Expand All @@ -14,6 +12,9 @@ title: $:/plugins/BTC/musicsheets/ui/EditorToolbar/dropdown/G
</$list>
</$list>
</$list>
<$list filter="[{!!category}match[Chords]]">
<$text text={{$(note-g)$}}/>
</$list>
\end
\define toolbar-button-note-g-inner()
<$button tag="a">
Expand Down

0 comments on commit 645217a

Please sign in to comment.