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

Auto run at start? #115

Open
Aphexus opened this issue Nov 14, 2022 · 2 comments
Open

Auto run at start? #115

Aphexus opened this issue Nov 14, 2022 · 2 comments

Comments

@Aphexus
Copy link

Aphexus commented Nov 14, 2022

There doesn't seem to be a way to autorun scripts at load time. E.g., to automatically add a menu item and code when starting npp.

What would be cool, say, if jn could integrate with the favorites plugin so one could keep a list of js scripts and set them to run at load. Of course I think having win api x64 support would be nice.

@sieukrem
Copy link
Owner

sieukrem commented Nov 14, 2022

@Aphexus I can not follow the request! What I understand is, you want to execute code at the start of npp, to insert new additional menu items. This is the way it works today! There is includes folder. All scripts from it will be executed at start.
Just add your script there!

@Aphexus
Copy link
Author

Aphexus commented Nov 18, 2022

Ok, Thanks, I didn't find this info. ""jN\includes" Folder contains several JavaScript Files. They implement some functionality."

You could add some more info about startup scripts there.

Would it be possible to make it easier to disable scripts without having to comment out everything or move the file out of includes?

E.g.,
// ##jNDisableScript
at the top

The point with the explorer/favorites plugin is that it could be easier to enable and disable scripts by providing a file manager interface to the scripts and making it easy to disable and enable(RMB say). That is, it already provides an a way to manage files in notepad. Maybe you could talk to the maintainer about it.

https://github.com/funap/npp-explorer-plugin

[old stuff:
https://sourceforge.net/projects/npp-explorer/
https://sourceforge.net/p/npp-plugins/discussion/670933/]

Basically what I'm thinking is that one can use the explorer to "Add script to Startup" "Run Script" when RMB on js files.

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

No branches or pull requests

2 participants