tabminal 1.3.8 → 1.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/public/app.js +19 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabminal",
3
- "version": "1.3.8",
3
+ "version": "1.3.9",
4
4
  "description": "A modern, persistent web terminal with multi-tab support and real-time system monitoring.",
5
5
  "type": "module",
6
6
  "bin": {
package/public/app.js CHANGED
@@ -3189,6 +3189,22 @@ let searchOptions = {
3189
3189
  wholeWord: false,
3190
3190
  regex: false
3191
3191
  };
3192
+ const searchDecorations = {
3193
+ matchBackground: '#ffffff',
3194
+ matchBorder: '#ffffff',
3195
+ matchOverviewRuler: '#ffffff',
3196
+ activeMatchBackground: '#ffffff',
3197
+ activeMatchBorder: '#ffffff',
3198
+ activeMatchColorOverviewRuler: '#ffffff'
3199
+ };
3200
+
3201
+ function buildSearchRunOptions(extra = {}) {
3202
+ return {
3203
+ ...searchOptions,
3204
+ ...extra,
3205
+ decorations: searchDecorations
3206
+ };
3207
+ }
3192
3208
 
3193
3209
  if (searchBar) {
3194
3210
  const updateUI = (found) => {
@@ -3209,8 +3225,8 @@ if (searchBar) {
3209
3225
  const term = searchInput.value;
3210
3226
 
3211
3227
  let found = false;
3212
- if (forward) found = addon.findNext(term, searchOptions);
3213
- else found = addon.findPrevious(term, searchOptions);
3228
+ if (forward) found = addon.findNext(term, buildSearchRunOptions());
3229
+ else found = addon.findPrevious(term, buildSearchRunOptions());
3214
3230
 
3215
3231
  updateUI(found);
3216
3232
  };
@@ -3243,7 +3259,7 @@ if (searchBar) {
3243
3259
  // Incremental search
3244
3260
  const found = state.sessions.get(state.activeSessionKey).searchAddon.findNext(term, {
3245
3261
  incremental: true,
3246
- ...searchOptions
3262
+ ...buildSearchRunOptions()
3247
3263
  });
3248
3264
 
3249
3265
  updateUI(found);