Not sure if right channel, but related to MP and t...
# multiplatform
s
Not sure if right channel, but related to MP and the IDE. I really like when I got a file called Foo open from two different source-sets in the tab it is shown as “jvmMain/…/Foo.kt” and “commonMain/…/Foo.kt”. When I close one of the two source-sets it shows just “Foo.kt”. I personally would prefer that it’d show the sourcesSet/…/ prefix at all times, even if I only got one of them open, instead of me having to look at the breadcrumbs or somewhere else to figure out where I am. If this is not something that is currently available, I will make a feature request, but asking here first to see if someone else has thought of it or if this setting exists already and I haven’t found it.
1
🙏 1
l
One thing JB does that I’ve started doing is putting the platform in the name. They’d write Foo.android.kt, Foo.jvm.kt, Foo.ios.kt
Note that when you create the file, choose the ‘File’ option, since ‘class’ likes to create a Foo/android.kt file
m
I’ve found this issue https://youtrack.jetbrains.com/issue/IDEA-111624/Show-directory-on-editor-tabs and this plugin has been suggested in the chat https://plugins.jetbrains.com/plugin/5045-tabdir. It seems exactly what you are looking for.
s
Interesting with the file name, I guess that works since adding ‘.’ to a file name is not a problem, therefore it’s read as a valid name? Have never thought of doing it that way, but maybe that helps even when looking at the files outside of the context of the IDE, like on a git diff on GitHub. Kinda radical though to change every file name 😄 Just tested out the plugin and I guess yes, this is exactly what I had in mind! Removing the “Reduce dir names” in its settings produces what I hoped it would, that’s awesome thanks!
m
Glad it helped simple smile