@dunkinfrunkin/mdcat 0.1.6 → 0.1.7

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/src/tui.js +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dunkinfrunkin/mdcat",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "View markdown files beautifully in your terminal",
5
5
  "type": "module",
6
6
  "bin": {
package/src/tui.js CHANGED
@@ -122,7 +122,7 @@ export function launch(title, lines) {
122
122
  let matchIdx = 0;
123
123
 
124
124
  // Mouse / clipboard state
125
- let mouseEnabled = true;
125
+ let mouseEnabled = false;
126
126
  let toast = ""; // brief status message
127
127
  let toastTimer = null;
128
128
 
@@ -248,9 +248,9 @@ export function launch(title, lines) {
248
248
 
249
249
  const mouseHint = mouseEnabled ? "" : `${C.matchFg} [select mode]${RESET}`;
250
250
  const mouseW = mouseEnabled ? 0 : " [select mode]".length;
251
- const hints = `${C.dim} q y / j k ↑↓ space g G${RESET}`;
251
+ const hints = `${C.dim} q y / j k ↑↓ space g G M${RESET}`;
252
252
  const right = `${C.dimFg} ${pct} ${RESET}`;
253
- const hintsW = " q y / j k ↑↓ space g G".length;
253
+ const hintsW = " q y / j k ↑↓ space g G M".length;
254
254
  const rightW = ` ${pct} `.length;
255
255
  const gap = Math.max(0, w - hintsW - mouseW - rightW);
256
256
  return `${C.chromeBg}${hints}${mouseHint}${" ".repeat(gap)}${right}${RESET}`;
@@ -373,7 +373,7 @@ export function launch(title, lines) {
373
373
 
374
374
  // ─── Boot ──────────────────────────────────────────────────────────────────
375
375
 
376
- process.stdout.write(ALT_ON + HIDE_CUR + MOUSE_ON);
376
+ process.stdout.write(ALT_ON + HIDE_CUR);
377
377
  if (process.stdin.setRawMode) {
378
378
  process.stdin.setRawMode(true);
379
379
  process.stdin.resume();