Opening kotlin files

13 views
Skip to first unread message

Jeff Yoshimi

unread,
Nov 1, 2025, 5:37:57 PM (4 days ago) Nov 1
to iterm2-discuss
Hi there. Amazing program. When I command-click on kotlin .kt files, it interprets this as a web page, I think because of the Kenya country extension. But the strings are clearly not URLs. Is this a bug? And either way, is there a workaround? Thanks!

George Nachman

unread,
7:37 PM (3 hours ago) 7:37 PM
to iterm2-...@googlegroups.com
URL-like strings are checked for after the test for “does this file exist” which suggests the inferred directory was incorrect. You can confirm this for sure by cmd-clicking on an absolute path.

For example, clicking the output of ls tmp|fgrep .kt will treat file.kt as a URL since it looked for /file.kt, while the second one will open it since it looked for /tmp/file.kt.



If you can’t tell why the directory is inferred incorrectly, well, it can be complicated. Generally installing shell integration makes everything just work. If you can send me a debug log that includes everything from cding into the directory, listing the file, and clicking on it and opening a URL I’d be happy to look at it and see what went wrong.

On Nov 1, 2025 at 10:38:45 AM, Jeff Yoshimi <jeffy...@gmail.com> wrote:
Hi there. Amazing program. When I command-click on kotlin .kt files, it interprets this as a web page, I think because of the Kenya country extension. But the strings are clearly not URLs. Is this a bug? And either way, is there a workaround? Thanks!

--
You received this message because you are subscribed to the Google Groups "iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discus...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/iterm2-discuss/aaa9c873-2282-482e-90a0-55d9ce00d5d9n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages