https://bugs.kde.org/show_bug.cgi?id=486582
Carlo Wood <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |NOT A BUG Status|REPORTED |RESOLVED --- Comment #10 from Carlo Wood <[email protected]> --- Turns out this is not a bug. konsole is already supporting this and well in the only way possible: in order to get the current logical path you need the cooperation of the shell, see https://unix.stackexchange.com/questions/659464/get-the-unresolved-pwd-of-a-shell-from-another-process If the shell has the right support and sends updates about its logical path in the form of a terminal escape sequence then konsole already records AND uses that! Hence, there is no bug. What is required it make bash issue an OSC7 terminal escape sequence every time it changes directory. See for example https://michaelrommel.com/create/2024-11-19-osc7-and-why-you-might-need-it on what osc7 is. One can use the following bash function: ``` __konsole_cwd_osc7 () { printf '\e]7;file://%s%s\a' "$HOSTNAME" "$PWD" } ``` and have your shell call that, for example, as part of the `PROMPT_COMMAND`. Works as a charm. -- You are receiving this mail because: You are watching all bug changes.
