mterm-io / mterm

An electron terminal written with TypeScript, and rendered with React. Extend your terminal with themes, plugins and commands written in typescript. Scripting for the modern age.
https://mterm.io
9 stars 0 forks source link

extensions make this better: add hooks and docs #126

Open daretodave opened 5 months ago

daretodave commented 5 months ago

right now the only hook is RUNNER_THEME_CSS

add a bunch more and inject them throughout lifecycle

some ideas:

current syntax - https://github.com/mterm-io/mterm-ext-red/blob/main/mterm.js

module.exports = {
    RUNNER_THEME_CSS: `
        .runner-container.runner-container__normal_mode, .runner-container.runner-container__commander_mode {
          background: rgba(199, 0, 20, 0.89);
          color: white;
        }
    `,
}

add more [HOOK_NAME]: RESOLVER

daretodave commented 5 months ago

middleware for commands

daretodave commented 5 months ago

add post install note hook

daretodave commented 4 months ago

still missing: