royqh1979 / RedPanda-CPP

A light-weight C/C++ IDE based on Qt
GNU General Public License v3.0
996 stars 108 forks source link

Lightweight plugin system #511

Open royqh1979 opened 1 month ago

royqh1979 commented 1 month ago

Just some basic ideas.

  1. Lua based.
  2. Possible usage (plugin types):
    • Modify contents ( e.g. reformat code, generate code comments using AI ). Triggered by menu item or short-cut
    • Before load? After save? What's the sale point?
  3. UI for plugin's own configurations.
  4. UI for configure common plugin configurations ( e.g. short cuts, add / remove / disable / enable plugins)
  5. Log (to help plugin authors debug)
  6. Lua api to generate http request
  7. Lua api to parse json
  8. Lua api to access settings
  9. Lua api to access editors
royqh1979 commented 1 month ago

Just some basic ideas.

  1. Lua based.
  2. Possible usage (plugin types):

    • Modify contents ( e.g. reformat code, generate code comments using AI ). Triggered by menu item or short-cut
    • Before load? After save? What's the sale point?
  3. UI for plugin's own configurations.
  4. UI for configure common plugin configurations ( e.g. short cuts, add / remove / disable / enable plugins)
  5. Provide some predefined obj / vars to be used in the plugin scripts?