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] Make 'Workspace as folder' available for plugins through NPPM_ message #6157

Open
webketje opened this issue Sep 17, 2019 · 1 comment

Comments

@webketje
Copy link

Description of the feature request

It would be great to be able to access the path of the currently opened 'folder as workspace' (e.g. NPPM_GETFOLDERASWORKSPACE) for plugins like pythonscript and NppExec, similar to NPPM_GETPLUGINSCONFIGDIR defined in Notepad_plus_msgs.h

Motivation

In many other editors, folder as workspace sets the default current directory. This can be an important path marker for scripts like npm run <task> (JS) or php artisan <cmd> (PHP Laravel) or other build scripts/ tasks that require to be executed from a project root path to work as intended.

@webketje
Copy link
Author

And it would be even cooler if the 'folder as workspace' saved the folder to session.xml when Save session is clicked, and automatically setFolderAsWorkspace with the path value from session.xml.

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

1 participant