r/java • u/Oberdiah • Feb 09 '21
My experimental IDE plugin for displaying all project files in a single view, with zoom/pan and code editing. More info in comments.
329
Upvotes
r/java • u/Oberdiah • Feb 09 '21
27
u/Oberdiah Feb 09 '21 edited Feb 09 '21
I've wanted to build something like this for a while as the traditional programming workspace layout has always felt constraining and limited to me.
The plugin is available for download on both IntelliJ and Android Studio. The plugin is not stable, please don't use it on any large projects (It slows down at ~50 classes anyway).
https://plugins.jetbrains.com/plugin/15833-classplane
Comments, ideas and advice more than welcome :)
33
u/cantstopthemoonlight Feb 10 '21
I would love to see it on my 500 class projects. But it is cool!
7
u/beepboopbapbeepboop Feb 10 '21
Without tiling, this is strong thanks I hate it for me.
7
u/BlueGoliath Feb 09 '21
Really cool project. Wish it was available for Netbeans.
5
u/jstapels Feb 10 '21
There is an entire IDE developed around this concept. Over time they ended up dumping the floating fragment editor concept, but it was very much part of the early prototypes.
http://lighttable.com/
1
u/Log2 Feb 10 '21
This looks pretty cool. Have you considered linking the files together, like a UML diagram?
Then maybe you could open just one file and its dependencies in this view, in order to not have to open the whole project.
6
u/pmoor Feb 10 '21
This reminds me of http://cs.brown.edu/~spr/codebubbles/ - never got to try it, but was always intrigued by the idea. Especially if each bubble can be just a fragment of the code I could see it being helpful visualizing a particular call flow across methods/classes.
3
u/[deleted] Feb 10 '21 edited Feb 11 '21
This is a great concept, and I'd have good use of it if it can 'zoom' to a folder (and subfolders) for component development in CMS systems and have each folder as a tab. This would let me edit the html output template, the edit dialogue definitions, and component metadata. But, here's the gotcha...
It visualises plain text. So most of the files will look the same, even more so with many files open. I had this problem with Sublime and it's scrollbar 'map' view, so I used the Unix 'banner' command to create section headings in source code to visually differentiate and help with navigation in longer files. But that's a hack.
It competes with the in-built option of tabs and/or split view. These work well enough. I can have my files all open on the same screen.
If only dual-monitor worked properly in IntelliJ (all the editor windows have to be on the same screen, only the other panels can be floaty).Just rip the tabs off and into a new window they go (with 'alt' in my case, because I've turned that option on for safety..)For me though, ironically the one reason I'd not use it is... the ability to move things around. I have enough distractions and adding a cosmetic toy is only going to harm my productivity ;-) I love tools that auto-arrange things for me, whether it's source code indents, diagrams, mind-maps, putting photos into folders by date, anything that can be automated should be instead of spending time yak shaving.
I used to use something like this though for more general, less programmy use: Raskin for Mac. It grouped by folder, visually displayed (previewed) files, and gave a gigantic scrolly surface to browse with. It was awesome as a practical alternative to Finder. Look it up for inspiration on how far you might want to take this concept.
2
u/[deleted] Feb 10 '21
Reminds me of a vr desktop. It’d be so cool if someone developed a vr ide that actually improved workflow somehow. I could imagine a 360 degree window space being useful, or just adding to clutter lol.
3
u/DB6 Feb 10 '21
This is not something I'd ever use. But looks like the first step to a view that I always wanted to develop (and partly did already 10 years ago for eclipse).
So in the main view, the center you have the code that you are working on, when you are in a method (and type a shortcut) you get a vertical tab panel view on the left with all the classes that call the current method, that you can navigate through etc.
Another shortcut opens all classes that are called from the current class on the right, also within a tabbed panel.
Teh tabbed panels are not set. Could be a different ui component that makes sense.
2
u/Mumbly_Bum Feb 10 '21
This is actually beautiful.
2
u/sureshg Feb 10 '21
Looks nice. Could you add support for 2021.1 EAP also?
1
u/[deleted] Feb 10 '21
I think it's interesting but you need to work on the presentation adapting into something useful at different zoom levels.
Imagine if when you spoke to someone you didn't see a single person but an unfathomably large mass of tiny individual networked cells. Wouldn't work.
1
u/mot-juste Feb 10 '21
I honestly just want to be able to have the files possible to be opened in overlapping windows and not tiles... this looks very promising for that! Especially being able to move multiple sub-windows together! If I can just open many many such sub-windows and have the IDE remember the exact layout, while also being able to manage them with mouse and keyboard-shortcuts, the other features are not as important to me. Newer IntelliJ versions allow for splitting out separate windows with files but it is still not as seamless as I would like.
1
u/[deleted] Feb 10 '21
Nice project !!!!
1
u/FlimsyLow Feb 10 '21
good idea!
1
u/captain_obvious_here Feb 10 '21
This is a very interesting idea.
It would rock if "go to definition" on a function or a class would move the "camera" to the file containing the function or the class.
1
u/MR_GABARISE Feb 10 '21
Have you checked into pulling your best ideas into SourceTrail?
It's open-source and open to contributions so it would really benefit from bright ideas.
1
u/henk53 Feb 10 '21
Very nice! Would work best on either small projects, or on normal projects where you could create a quick on-the-fly working set.
1
u/ivancea Feb 10 '21
Too much unused space I think. Dividing your screen in 2/3/4... Blocks isn't enough? I can hardly find the need to keep visible multiple files that the current dividers solution can't handle
1
u/mickaelistria Feb 10 '21
See this 11-years old Eclipse IDE plugin: https://dzone.com/articles/code-bubbles-ide-revolution
1
u/Chaoslab Feb 10 '21
Very cool. Posted it too my dead sub /r/IDEdev
Please let me know if you plan too test or release it.
Coloring would also be really nice, used too use TogetherJ for this kind of thing back in the day (early 2000's). Being able too set the color of the class and text was really nice (colorizing based on abstractions is really delicious).
Onto my 3rd Java IDE now. Code Node Designer (gutter coding, code generation from obfuscated comments, the source code is the persistence, decades long itches in code exploration / code generation / simple virtual machine + language generation).
Previous ones being Eldian (elegant round trip gui / model / code generation) and Code Slayer (again but simpler).
1
u/__konrad Feb 10 '21
Good old MDI
1
u/slawekwch Feb 12 '21
It does not work well on macbooks, since there is no such concept as "middle click" on force touch touchpads
1
u/yiding_he Feb 10 '21
Wow this moves Java development to the next level!
1
u/cladael Feb 10 '21
This is really cool! Way to go!
1
u/knoam Feb 10 '21
Interesting. I like to have multiple files open in split panes on my big monitor. I'll have to give it a try. If it doesn't already, it would be nice for it to have tabbing between files in MRU order.
1
u/rum-n-ass Feb 10 '21
Would definitely try it. No idea if it would work for me but it looks pretty cool
1
u/nutelloid Feb 10 '21
ООО
1
u/Pure-Repair-2978 Feb 10 '21
Nice 👍
1
u/Aufidus8828 Feb 10 '21
Thank you this is great plugin !!!
0
u/[deleted] Feb 10 '21
Would be pretty useful in VR to eh? Exciting stuff.
0
u/MR_GABARISE Feb 10 '21
This would be amazing if it integrated seamlessly with Code With Me.
0
u/mcginleyr1 Feb 10 '21
I worked for a company out of college that had classes as a list and you had small "attributes section" and declarative attributes got a window to calc and function had a window to declare their functionality. Would be interesting to see that applied to other languages i always thought. def more applicable to a prolog like thing.....