The new version of the text desktop environment vtm v0.9.69 has added an experimental mode for continuous synchronization of the current working directory between running text consoles.
To implement synchronization, tracking of OSC 9;9 terminal notifications containing information about the current directory was used, followed by the generation of keyboard input for the entire group of consoles with the Sync synchronization mode switch active. By default, the keyboard input string pattern is represented by the command <space>cd <current_directory>n, indicating the current directory received via OSC notification, with a leading space to prevent this automatic command from entering the shell command history. If necessary, this keyboard input pattern can be changed in the environment settings. It is not recommended to add text consoles to a synchronization group with sessions of various operating system subsystems or with sessions of remote connections.
The implemented approach is compatible with popular command shells and console file managers, such as bash, zsh, cmd.exe, pwsh, Midnight Commander and Far Manager (starting from Far Manager version 3.0.6274.3708).
The vtm text-based desktop environment is a cross-platform environment designed to run console applications in floating windows in an unlimited workspace with mouse and keyboard input routing, allowing shared access by an arbitrary number of users, both locally and via SSH.
Source: linux.org.ru
