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: Plugin should support environment variables and relative paths for use in the configuration file #21

Open
dinkumoil opened this issue Mar 10, 2024 · 0 comments · May be fixed by #22

Comments

@dinkumoil
Copy link
Contributor

dinkumoil commented Mar 10, 2024

Description

It is not possible to use environment variables or relative paths for the keys progPath and workDir in the configuration file. This is a problem especially when one wants to use a portable version of Notepad++. Moreover, to be able to use environment variables could be helpful when it comes to creating configurations that can be used for 32 bit and 64 bit versions of Notepad++.

Proposed Solution

Both issues can be solved easily by doing appropriate Win32 API calls. As the base path for relative paths used in the configuration file the plugins config dir could be used. This would be a reasonable solution and there already exists the NPPM_GETPLUGINSCONFIGDIR message in the Notepad++ plugin API to retrieve this path.

@dinkumoil dinkumoil linked a pull request Mar 10, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant