Revised shell mode hook...I missed one detail excerpting from my own. (defun my/shell-mode-hook () ;; ansi-osc-directory-tracker is on by default in Emacs 28+ in ansi-osc-handlers (add-hook 'comint-output-filter-functions #'comint-osc-process-output nil 'local) (shell-dirtrack-mode -1)) ; make sure you do this On Mon, Feb 10, 2025 at 8:19 AM Ship Mints wrote: > I sent the revised patch in my last email. > > (defun my/shell-mode-hook () > ;; ansi-osc-directory-tracker is on by default in Emacs 28+ > (shell-dirtrack-mode -1)) ; make sure you do this > > In your bashrc: > > # ansi osc 7 pwd change support > function myprompt () { > printf "\e]7;file://%s%s\e\\" "$HOSTNAME" "$PWD" > } > export PROMPT_COMMAND=myprompt > > On Mon, Feb 10, 2025 at 8:15 AM Michael Albinus > wrote: > >> Visuwesh writes: >> >> Hi, >> >> > The concat form is ill-formed in the patch you pushed, no? >> > >> > (concat (file-remote-p default-directory >> > (url-unhex-string (url-filename url)))) >> > >> > should be >> > >> > (concat (file-remote-p default-directory) >> > (url-unhex-string (url-filename url))) >> >> Looks like, yes :-( >> >> Since I don't know how to activate ansi-osc-directory-tracker in a shell >> (where is it documented?), I couldn't test it. Could you pls advice me? >> >> I'll fix it then. >> >> Best regards, Michael. >> >