Sample Header Ad - 728x90

What is the format req'd for file paths in the terminal s.t. CMD + mouse click opens the file?

2 votes
1 answer
111 views
I have configured this in the past, and sometimes it works...or not with various linting tool printouts. For example, some file output might be:
foobar/thisorthat/thing.py:123
And if it prints out on the command line, a [CMD] + [MOUSE_CLICK] will open that file as if it is a hyperlink in the configured text editor default for that filetype. Other times, the OS will interpret the string as a hyperlink and try to open it in the browser window (this is not the goal). My question amounts to: how would I modify the output string:
# full question
foobar/thisorthat/thing.py:123

# simplification that still gets it done
foobar/thisorthat/thing.py
So that the [CMD]+[MOUSE_CLICK] mechanic opens the file with the text editor rather than the browser?
Asked by Chris (123 rep)
Mar 24, 2023, 07:39 PM
Last activity: May 18, 2023, 11:24 AM