Played around with the setup for a plugin for a couple more hours. I now have:

  • A standard Joplin plugin development setup
  • Using RSPack instead of Webpack for much faster builds
  • A webview in a panel
  • A second entry point containing the code for that webview
  • the webview's UI is being rendered with React
  • I've got a TS-typed RPC wrapper around postMessage that lets me send async requests between the webview and the plugin
  • and I've proven I can send a request from the panel to the plugin, get a response back, and update the React UI

I think that's everything I need to be able to build out a reasonable VS Code-style search UI at this point.

This is still not the highest priority thing I'm dealing with, but I'm going to keep working on it when I can find time.

4 Likes