- Kotlin 100%
Thumbnailer
A plugin I use with the OPENRNDR template. It exists because I have hundreds of programs (Sketches, if you're a Processing user) and there's no way I can remember what I called each program. That's why I wrote this plugin to set a thumbnail for each .kt file, so I can find them visually.
I wanted it to work even if I renamed or moved my files (which I very often do). That's why the plugin adds a comment to the top of the file with a unique ID. It also adds an empty description and tags which you can populate.
There is a filter box in the Thumbnailer pane which searches file names, descriptions, tags and source code and shows found thumbnails instantly.
The thumbnails have two parts: an image and the program name. Double-clicking the image opens the source code for editing / running.
Setting screenshots is simple: you can select a program in the Thumbnailer and paste an image from the clipboard, or drag and drop an image to the desired row.
Important note
The plug-in edits your .kt files automatically! Back-up your computer before use. Also, it's my first Idea plugin.
The current audience is OPENRNDR users who are interested in improving the plugin. Making it compatible with Processing or other frameworks should be quite simple.
Installation
-
(削除) Using IDE built-in plugin system (削除ここまで):Settings/Preferences > Plugins > Marketplace > Search for "idea-thumbnails" > Install Plugin
-
Manually:
- Download this source code.
- Build the plugin with
gradlew buildPlugin. - Open Idea's settings > plugins > install from disk.
- Choose the
build/distributions/OPENRNDR Thumbnails-0.x.x.zip. - Restart Idea.
- Click on the "landscape icon" on the right side of the window.
Plugin based on the IntelliJ Platform Plugin Template.
TO DO
- Add filter for with/missing/both thumbnail
- Add filter-by-age
- Add notifications. See https://github.com/korlibs/korge-intellij-plugin/pull/45/files Update: what do I need notifications for?
- Use global .thumbnails folder instead of per-project. That makes it easy to move programs from one project to another. The folder can be on git, or synced with a server to put the thumbnails online. But then we need a field to enter the URL of the thumbnails.
- Use WEBP instead of PNG. Smaller file size matters because in some projects I have 17 Mb of thumbnails. Use https://github.com/sejda-pdf/webp-imageio
- Update image shown in this readme. Too confusing. Split into several images.