tmux-fuzzy-motion 0.0.2 → 0.0.4
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.
- package/dist/cli.js +4 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -5588,9 +5588,9 @@ const createMatcher = (candidates, migemo) => {
|
|
|
5588
5588
|
//#endregion
|
|
5589
5589
|
//#region src/core/overlay.ts
|
|
5590
5590
|
const PRIMARY_HINT_STYLE = "\x1B[4;1;38;2;243;139;168m";
|
|
5591
|
-
const PRIMARY_HIGHLIGHT_STYLE = "\x1B[4;1;38;2;
|
|
5591
|
+
const PRIMARY_HIGHLIGHT_STYLE = "\x1B[4;1;38;2;137;220;235m";
|
|
5592
5592
|
const SECONDARY_HINT_STYLE = "\x1B[4;1;38;2;249;226;175m";
|
|
5593
|
-
const SECONDARY_HIGHLIGHT_STYLE = "\x1B[4;1;38;2;
|
|
5593
|
+
const SECONDARY_HIGHLIGHT_STYLE = "\x1B[4;1;38;2;116;199;236m";
|
|
5594
5594
|
const RESET$1 = "\x1B[0m";
|
|
5595
5595
|
const occupy = (occupied, start, width) => {
|
|
5596
5596
|
for (let index = start; index < start + width; index += 1) occupied[index] = true;
|
|
@@ -5634,7 +5634,8 @@ const createOverlayRenderer = (lines) => {
|
|
|
5634
5634
|
const baseWidth = measureCellWidth(cells, hintCol);
|
|
5635
5635
|
const paddedHint = hintCol < matchCol ? target.hint.padEnd(baseWidth, " ") : target.hint;
|
|
5636
5636
|
const hintWidth = displayWidth(paddedHint);
|
|
5637
|
-
const
|
|
5637
|
+
const shouldHighlightPrimary = hintCol < matchCol;
|
|
5638
|
+
const highlightCols = target.positions.filter((position) => position !== target.primary || shouldHighlightPrimary).map((position) => target.col + position);
|
|
5638
5639
|
const isEnterTarget = enterTarget?.line === target.line && enterTarget.col === target.col && enterTarget.text === target.text;
|
|
5639
5640
|
const hintStyle = isEnterTarget ? PRIMARY_HINT_STYLE : SECONDARY_HINT_STYLE;
|
|
5640
5641
|
const highlightStyle = isEnterTarget ? PRIMARY_HIGHLIGHT_STYLE : SECONDARY_HIGHLIGHT_STYLE;
|