mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-25 18:16:32 +00:00
feat(terminal): continue Directory Picker with OSC 7 and reconnect fixes (#4113)
* feat(terminal): add Directory Picker context chip * fix(terminal): bind directory reads to the exact SSH session * fix(terminal): follow manually changed working directories * fix(terminal): isolate cwd updates and gate local platform support * docs(terminal): research Directory Picker cross-platform follow-up * fix(terminal): confirm OSC 7 navigation and reset picker loading * fix(terminal): preserve active shell OSC 7 during directory refresh * test(terminal): retain cross-session OSC 7 submission guard --------- Co-authored-by: Joseph Hau <hexart@gmail.com>
This commit is contained in:
1 parent
2e3dc687cb
commit
efe012e0c8
45 files changed
+2064
-9
No files matched your search
@@ -35,6 +35,17 @@ test("terminal behavior settings expose disabled auto-close", () => {
|
||||
);
|
||||
});
|
||||
|
||||
test('Context Chips default on for old settings and preserve an explicit off preference', () => {
|
||||
assert.equal(normalizeTerminalSettings({ scrollback: 5000 }).contextChipsEnabled, true);
|
||||
const disabled = normalizeTerminalSettings({ contextChipsEnabled: false });
|
||||
assert.equal(normalizeTerminalSettings(JSON.parse(JSON.stringify(disabled))).contextChipsEnabled, false);
|
||||
const markup = renderToStaticMarkup(React.createElement(TerminalBehaviorSettings, {
|
||||
t: (key: string) => key, terminalSettings: disabled, updateTerminalSetting: () => {},
|
||||
}));
|
||||
assert.match(markup, /settings-anchor-terminal-context-chips/);
|
||||
assert.match(markup, /settings\.terminal\.behavior\.contextChips[\s\S]*?role="switch" aria-checked="false"/);
|
||||
});
|
||||
|
||||
test("terminal behavior settings expose OSC desktop notification mode", () => {
|
||||
const markup = renderSettings(true);
|
||||
assert.match(markup, /settings-anchor-terminal-osc-notifications/);
|
||||
|
||||
@@ -48,6 +48,14 @@ export const TerminalBehaviorSettings: React.FC<TerminalBehaviorSettingsProps> =
|
||||
<>
|
||||
<SectionHeader title={t("settings.terminal.section.behavior")} />
|
||||
<div className="space-y-0 divide-y divide-border rounded-lg border bg-card px-4">
|
||||
<SettingRow
|
||||
anchorId="terminal-context-chips"
|
||||
label={t("settings.terminal.behavior.contextChips")}
|
||||
description={t("settings.terminal.behavior.contextChips.desc")}
|
||||
>
|
||||
<Toggle checked={terminalSettings.contextChipsEnabled !== false} onChange={(v) => updateTerminalSetting("contextChipsEnabled", v)} />
|
||||
</SettingRow>
|
||||
|
||||
<SettingRow
|
||||
anchorId="terminal-auto-close-on-exit"
|
||||
label={t("settings.terminal.behavior.autoCloseOnExit")}
|
||||
|
||||
Reference in new issue
Block a user