GNU bug report logs - #76165
[PATCH] ansi-osc-directory-tracker respects Tramp remote files

Previous Next

Package: emacs;

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


Message #55 received at 76165 <at> debbugs.gnu.org (full text, mbox):

From: Ship Mints <shipmints <at> gmail.com>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 76165 <at> debbugs.gnu.org, Visuwesh <visuweshm <at> gmail.com>
Subject: Re: bug#76165: [PATCH] ansi-osc-directory-tracker respects Tramp
 remote files
Date: Mon, 10 Feb 2025 08:51:08 -0500
[Message part 1 (text/plain, inline)]
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 <shipmints <at> gmail.com> 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 <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.