Proposal for NPM scripts naming: use 'namespaces' #1019
Replies: 2 comments 2 replies
-
Yes please. I personally prefer shorter prefixes. I also wonder about namespaces for note scripts as opposed to file-system scripts, e.g. |
Beta Was this translation helpful? Give feedback.
-
@maphew thanks for the reply, glad to see you supporting this – regarding the second half of your comment: I cannot comment on these, I have not looked at all into scripting with Trilium, so I am clueless about it currently. @eliandoran do you have any opinions on this? |
Beta Was this translation helpful? Give feedback.
-
Hi,
just a quick request for comments, what do you think about renaming the scripts a tiny bit and introducing the idea of some sort of namespaces for them, to have them a bite more cleanly named.
E.g. here I just group these scripts by creating some sort of namespace for them, e.g. everything "server" related get's prepended with "server:", everything "electron" related -> "electron:" etc.
Essentially this way you can easily group scripts that belong to the same group and I feel like this makes organize them a bit better.
Before
After
(ignore the errors in the actual commands: I only played aroudn with the script names so far)
Of course we would need to agree on the prefixes still.
what are your thoughts?
Beta Was this translation helpful? Give feedback.
All reactions