tycono 0.3.14-beta.19 → 0.3.14-beta.20
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/package.json
CHANGED
package/src/tui/app.tsx
CHANGED
|
@@ -10,6 +10,7 @@ import React, { useState, useEffect, useMemo } from 'react';
|
|
|
10
10
|
import { Box, Text, useInput } from 'ink';
|
|
11
11
|
import fs from 'node:fs';
|
|
12
12
|
import path from 'node:path';
|
|
13
|
+
import { execSync } from 'node:child_process';
|
|
13
14
|
import type { OrgNode } from '../store';
|
|
14
15
|
import type { SSEEvent, ActiveSessionInfo, SessionInfo } from '../api';
|
|
15
16
|
import type { WaveInfo } from '../hooks/useCommand';
|
|
@@ -137,9 +138,7 @@ const PanelModeInner: React.FC<PanelModeProps> = ({
|
|
|
137
138
|
}
|
|
138
139
|
if (key.return) {
|
|
139
140
|
if (rightTab === 'docs' && selectedDocPath) {
|
|
140
|
-
// Open in vim
|
|
141
141
|
try {
|
|
142
|
-
const { execSync } = require('child_process');
|
|
143
142
|
const editor = process.env.EDITOR || 'vim';
|
|
144
143
|
execSync(`${editor} "${selectedDocPath}"`, { stdio: 'inherit' });
|
|
145
144
|
} catch { /* ignore */ }
|