dikt 1.0.2 → 1.0.3

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/cli.mjs +4 -2
  2. package/package.json +1 -1
package/cli.mjs CHANGED
@@ -36,7 +36,7 @@ const moveTo = (row, col = 1) => `${ESC}${row};${col}H`;
36
36
 
37
37
  // ── Constants ─────────────────────────────────────────────────────────────────
38
38
 
39
- const VERSION = '1.0.2';
39
+ const VERSION = '1.0.3';
40
40
  const CONFIG_BASE = process.env.XDG_CONFIG_HOME || path.join(os.homedir(), '.config');
41
41
  const CONFIG_DIR = path.join(CONFIG_BASE, 'dikt');
42
42
  const CONFIG_FILE = path.join(CONFIG_DIR, 'config.json');
@@ -270,7 +270,9 @@ function render() {
270
270
  const rows = process.stdout.rows || 24;
271
271
  const availableRows = rows - 9; // header(2) + blank + keybar + blank + status + blank + meta + cleardown
272
272
  if (availableRows > 0 && lines.length > availableRows) {
273
- lines = lines.slice(lines.length - availableRows);
273
+ const hidden = lines.length - availableRows + 1; // +1 to make room for the hint
274
+ lines = lines.slice(lines.length - availableRows + 1);
275
+ lines.unshift(` ${DIM}↑ ${hidden} more line${hidden === 1 ? '' : 's'} above${RESET}`);
274
276
  }
275
277
  for (const line of lines) {
276
278
  out += CLEAR_LINE + line + '\n';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dikt",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Voice dictation for the terminal.",
5
5
  "type": "module",
6
6
  "bin": {