* lisp/ansi-osc.el (ansi-osc-directory-tracker): Don't check host name.
This commit is contained in:
parent
55ffbeaab1
commit
0c7214dc97
1 changed files with 7 additions and 10 deletions
|
@ -116,19 +116,16 @@ such as with the following command:
|
|||
|
||||
printf \"\\e]7;file://%s%s\\e\\\\\" \"$HOSTNAME\" \"$PWD\"
|
||||
|
||||
`default-directory' remote file name forms are maintained.
|
||||
A remote `default-directory' is maintained.
|
||||
|
||||
This functionality serves as an alternative to `dirtrack-mode'
|
||||
and `shell-dirtrack-mode'."
|
||||
(let ((url (url-generic-parse-url text)))
|
||||
(when (and (string= (url-type url) "file")
|
||||
(or (null (url-host url))
|
||||
;; Use `downcase' to match `url-generic-parse-url' behavior
|
||||
(string= (url-host url) (downcase (system-name)))))
|
||||
(ignore-errors
|
||||
(cd-absolute
|
||||
(concat (file-remote-p default-directory
|
||||
(url-unhex-string (url-filename url)))))))))
|
||||
(when-let* ((url (url-generic-parse-url text))
|
||||
((string= (url-type url) "file")))
|
||||
(ignore-errors
|
||||
(cd-absolute
|
||||
(concat (file-remote-p default-directory)
|
||||
(url-unhex-string (url-filename url)))))))
|
||||
|
||||
;; Hyperlink handling (OSC 8)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue