I just found some time to work on a potential extension for ImageJ which may be useful for everyone. I took a prototype implementation for a search bar within ImageJ by @ctrueden and extended it. That’s how it looks so far:
In fact, it’s a remake of the good old CommandFinder but with additional support for the ImageJ wiki and the forum. The web search works OPT-IN, so it will not search the internet unless you ask for it by clicking the tab.
I would be happy for feedback, firstly from developers, as there is no release yet. You can try the search bar, by cloning the search-bar branch from my imagej-legacy fork:
Afterwards, you can start ImageJ with the search-bar by running this main function, e.g. from your IDE:
Furthermore, I would be super happy about feedback regarding the implementation. I tried to use ImageJ2/SciJava best practices whenever possible:
- There is now a SearchService
- The service looks out for classes implementing SearchPlugin such as CommandSearchPlugin, WikiSearchPlugin and ForumSearchPlugin
- Thus, it is extensible and we could for example think about refactoring the OpFinder to make it a plugin as well.
- SearchService and SearchResultDisplay are strongly separated. I could imagine to move the SearchService and SearchPlugin parts to another repository. But I’m not sure where to.
Happy searching and thanks for any support!