ZIm/crates/terminal/src
Thorben Kröger d253d46fdf
Make python's file, line output clickable in terminal (#26903)
Closes #16004.


![image](https://github.com/user-attachments/assets/73cfe9da-5575-4616-9ed0-99fcb3ab61f5)

Python formats file and line number references in the form `File
"file.py", line 8"`
I'm not a CPython expert, but from a quick look, they appear to come
from:
-
80e00ecc39/Python/traceback.c (L613)
-
80e00ecc39/Python/traceback.c (L927)
I am not aware of the possiblity to also encode the column information.

Release Notes:

- File, line references from Python, like 'File "file.py", line 8' are
now clickable in the terminal

---------

Co-authored-by: Kirill Bulatov <kirill@zed.dev>
2025-03-24 12:36:14 +00:00
..
mappings Terminal mouse improvements (#25104) 2025-02-18 13:10:10 -08:00
pty_info.rs Debugger implementation (#13433) 2025-03-18 12:55:25 -04:00
terminal.rs Make python's file, line output clickable in terminal (#26903) 2025-03-24 12:36:14 +00:00
terminal_settings.rs terminal: Make alternate_scroll on by default (#27302) 2025-03-22 17:56:19 +05:30