Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hyperlinks in tracebacks in the shell #11889

Open
Lucidiot opened this issue Sep 17, 2019 · 0 comments
Open

Hyperlinks in tracebacks in the shell #11889

Lucidiot opened this issue Sep 17, 2019 · 0 comments
Labels

Comments

@Lucidiot
Copy link

During spring 2017, VTE-based terminal emulators started getting hyperlinks; not just detecting http:// links, but customizable links. See this Gist to learn more.

When IPython pretty-prints a traceback in the interactive shell, it could have a link to each file mentioned in the traceback. For example, in:

AssertionError                            Traceback (most recent call last)
~/somewhere/file.py in <module>
----> 1 assert False

~/somewhere/file.py could be printed as in printf '\e]8;;file://localhost/home/myself/somewhere/file.py\e\\~/somewhere/file.py\e]8;;\e\\', making it clickable to any compatible terminals, and easier to open in an editor or viewer. Note the use of localhost, to avoid issues in SSH as stated in this section of the gist. Since the URI is included as a parameter of the espace sequence, it would be ignored by incompatible terminals.

@MrMino MrMino added the UI label Jun 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants