Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extensions make this better: add hooks and docs #126

Open
daretodave opened this issue May 27, 2024 · 3 comments
Open

extensions make this better: add hooks and docs #126

daretodave opened this issue May 27, 2024 · 3 comments
Labels
back-end backend work front-end front end work needs-code-owner this is an important addition that requires knowledge of the stack ready
Milestone

Comments

@daretodave
Copy link
Contributor

daretodave commented May 27, 2024

right now the only hook is RUNNER_THEME_CSS

add a bunch more and inject them throughout lifecycle

some ideas:

  • add commands
  • add layout flow
    • override symatic layout
  • add hotkeys
  • add transformers

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 daretodave added front-end front end work back-end backend work needs-code-owner this is an important addition that requires knowledge of the stack ready labels May 27, 2024
@daretodave
Copy link
Contributor Author

middleware for commands

  • hault execution possible
  • use express format
  • EXECUTION_MIDDLEWARE: [{ when: BEFORE|AFTER|RESPONSE, task (next)}]
    change hook format
  • make everything hard defined. not a loose scaffolding
  • this makes per hook tap in a bit annoying. but will add abstractions around this for runtime

@daretodave
Copy link
Contributor Author

add post install note hook

  • for sending messages to the user after install!

@daretodave
Copy link
Contributor Author

still missing:

  • command hooks
  • layout hooks
  • hotkeys
  • transformers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back-end backend work front-end front end work needs-code-owner this is an important addition that requires knowledge of the stack ready
Projects
None yet
Development

No branches or pull requests

1 participant