Opening kotlin files

20 views
Skip to first unread message

Jeff Yoshimi

unread,
Nov 1, 2025, 5:37:57 PMNov 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,
Nov 5, 2025, 7:37:15 PMNov 5
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.

Jeff Yoshimi

unread,
Nov 6, 2025, 9:02:00 PMNov 6
to iterm2-discuss
I appreciate the detailed reply.  You are right, it works just fine when the absolute path is available.  The issue arises when using cursor from the command line, which does not always show the whole path.  So I think I have a handle now on what's going on and why. Again, thanks
Reply all
Reply to author
Forward
0 new messages