GNU bug report logs -
#76165
[PATCH] ansi-osc-directory-tracker respects Tramp remote files
Previous Next
Reported by: Ship Mints <shipmints <at> gmail.com>
Date: Sun, 9 Feb 2025 19:06:01 UTC
Severity: normal
Tags: patch
Fixed in version 31.1
Done: Michael Albinus <michael.albinus <at> gmx.de>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
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 <michael.albinus <at> gmx.de>
wrote:
> Visuwesh <visuweshm <at> gmail.com> 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.
>
[Message part 2 (text/html, inline)]
This bug report was last modified 102 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.