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

(Feature request) #run=... to be executed on inherited notes #3669

Closed
Fackelmann opened this issue Mar 4, 2023 · 1 comment
Closed

(Feature request) #run=... to be executed on inherited notes #3669

Fackelmann opened this issue Mar 4, 2023 · 1 comment

Comments

@Fackelmann
Copy link

Describe feature

I want to have a parent note (type text) with the inheritable attribute "#run=frontendStartup". Under this note I have several child notes with small JS frontend scripts (mostl shortcuts).

My expectation is that the "run" attribute will be inherited by the child notes (it is), and thus the notes will be executed automatically on startup (they are not). I have to set this attribute manually as an owned attribute for each of them if I want them to execute on startup.

Is this a known limitation? It would be useful to be able to set an "executable" parent note.

Additional Information

No response

@zadam
Copy link
Owner

zadam commented Mar 6, 2023

Hi, you're right, this wasn't respecting inheritance. On frontend this was apparently done intentionally as a (small) optimization, but reflecting on it, this trade-off was probably not worth it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants