You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
implement search while typing, with cached tab tree (#5); auto apply panel options; add clear button (#5); introduce active result with next/prev scrolling, counter, and focus; add custom style option
tabs: Array.from(tabs.byId.keys()),// Explicitly pass the IDs, to ensure consistent runtime with the other calls. The IDs have either just been queried, or wrer the ones that the classes were applied to.
Copy file name to clipboardexpand all lines: src/common/options.js
+47-28
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,6 @@ const model = {
16
16
panel: {
17
17
title: 'Search Box Options',
18
18
expanded: true,
19
-
description: `<small>These are only applied when the search box is newly loaded in TST's sidebar. Click <code>(re-)register</code> above to force that.</small>`,
20
19
default: true,children: {
21
20
matchCase: {
22
21
default: false,
@@ -30,21 +29,29 @@ const model = {
30
29
default: false,
31
30
input: {type: 'boolean',suffix: `<details><summary>Regular Expression:</summary>Search by (JavaScript) regular expression instead of plain string. If you don't know what this is, then you probably don't want it.</details>`,},
32
31
},
33
-
hideOptions: {
32
+
hideFlags: {
34
33
default: false,
35
-
input: {type: 'boolean',suffix: `<details><summary>Hide Search Options:</summary>Don't show the buttons for the three search options above in the search box. Note that what is selected on this page will still apply to the search.`,},
34
+
input: {type: 'boolean',suffix: `<details><summary>Hide Search Option Buttons:</summary>Don't show the buttons for the three search options above in the search box. Note that what is selected on this page will still apply to the search.`,},
description: String.raw`Custom CSS to apply to the TST sidebar.<br>
129
+
${manifest.name} sets the CSS classes <code>tst-search:matching</code>, <code>tst-search:active</code>, <code>tst-search:child-matching</code>, and <code>tst-search:not-matching</code> on tabs in the four result categories above, respectively.<br>
130
+
For example: <code>.tab:not(.pinned).tst-search\:active .label { color: red; }</code> `,
0 commit comments