numux 2.3.1 → 2.4.0

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/dist/numux.js +18 -2
  2. package/package.json +1 -1
package/dist/numux.js CHANGED
@@ -36,7 +36,7 @@ var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports,
36
36
  var require_package = __commonJS((exports, module) => {
37
37
  module.exports = {
38
38
  name: "numux",
39
- version: "2.3.1",
39
+ version: "2.4.0",
40
40
  description: "Terminal multiplexer with dependency orchestration",
41
41
  type: "module",
42
42
  license: "MIT",
@@ -2159,7 +2159,8 @@ var SHORTCUTS = {
2159
2159
  clear: { key: "l", label: "L", description: "clear" },
2160
2160
  timestamps: { key: "t", label: "T", description: "timestamps" },
2161
2161
  scrollToTop: { key: "g", label: "G", description: "top" },
2162
- scrollToBottom: { key: "g", label: "Shift+G", description: "bottom", shift: true }
2162
+ scrollToBottom: { key: "g", label: "Shift+G", description: "bottom", shift: true },
2163
+ openLogs: { key: "o", label: "O", description: "open logs" }
2163
2164
  };
2164
2165
  var STATUS_HINTS = [
2165
2166
  ["\u2190\u2192/1-9", "tabs"],
@@ -2170,6 +2171,7 @@ var STATUS_HINTS = [
2170
2171
  [SHORTCUTS.copy.label, SHORTCUTS.copy.description],
2171
2172
  [SHORTCUTS.clear.label, SHORTCUTS.clear.description],
2172
2173
  [SHORTCUTS.timestamps.label, SHORTCUTS.timestamps.description],
2174
+ [SHORTCUTS.openLogs.label, SHORTCUTS.openLogs.description],
2173
2175
  ["Ctrl+Click", "open link"],
2174
2176
  ["Ctrl+C", "quit"]
2175
2177
  ];
@@ -3193,6 +3195,10 @@ class App {
3193
3195
  }
3194
3196
  return;
3195
3197
  }
3198
+ if (name === SHORTCUTS.openLogs.key) {
3199
+ this.openLogDirectory();
3200
+ return;
3201
+ }
3196
3202
  const num = Number.parseInt(name, 10);
3197
3203
  if (num >= 1 && num <= 9 && num <= this.tabBar.count) {
3198
3204
  this.tabBar.setSelectedIndex(num - 1);
@@ -3292,6 +3298,16 @@ class App {
3292
3298
  } catch {}
3293
3299
  }
3294
3300
  }
3301
+ openLogDirectory() {
3302
+ const dir = this.logWriter.getDirectory();
3303
+ const cmd = process.platform === "darwin" ? "open" : "xdg-open";
3304
+ try {
3305
+ Bun.spawn([cmd, dir], { stdout: "ignore", stderr: "ignore" });
3306
+ this.statusBar.showTemporaryMessage(`Opening ${dir}`);
3307
+ } catch {
3308
+ this.statusBar.showTemporaryMessage("Could not open log directory");
3309
+ }
3310
+ }
3295
3311
  copyAllText() {
3296
3312
  if (!this.activePane)
3297
3313
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "numux",
3
- "version": "2.3.1",
3
+ "version": "2.4.0",
4
4
  "description": "Terminal multiplexer with dependency orchestration",
5
5
  "type": "module",
6
6
  "license": "MIT",