Enable shell_integration.osc9_9 by default on Windows (#15914)

# Description

This sets the value to true by default only on Windows. This is not a
legacy code and is used by the Windows Terminal to detect the current
directory (explicitly enabling osc7 did not work). Here are the official
docs:
https://learn.microsoft.com/en-us/windows/terminal/tutorials/new-tab-same-directory

# User-Facing Changes

Windows users will by default have their terminals properly detect the
current working directory without extra configuration/troubleshooting.
This commit is contained in:
Ofek Lev
2025-06-08 08:29:49 -04:00
committed by GitHub
parent 3bf96523a4
commit f92f11c0cf
2 changed files with 4 additions and 2 deletions

View File

@ -17,9 +17,9 @@ impl Default for ShellIntegrationConfig {
fn default() -> Self {
Self {
osc2: true,
osc7: true,
osc7: !cfg!(windows),
osc8: true,
osc9_9: false,
osc9_9: cfg!(windows),
osc133: true,
osc633: true,
reset_application_mode: true,