notepad-plus-plus / notepad-plus-plus/notepad-plus-plus

Feature request: command line to select config[nn].xml

Open
#10,767 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

command line
Dominant language
C++
Stars
29.4k
Forks
5.4k
PR merge metrics
No merged PRs in 30d

Description

v7.9.2 introduced command line parameter -settingsDir.

One benefit is that this settingsDir can hold a different version of config.xml which then allows me to run with a different set of global canvas colors (DEFAULT in the config.xml).
Unfortunately I must duplicate my shortcuts and PythonScript macros to this 2nd settingsDir.

Feature request: add command line parameter for just the config[nn].xml?

For example:
notepad++ -configXML=config2.xml MyFile.txt

The config2.xml would reside next to config.xml.

No more need to duplicate macros, shortcuts and python scripts to the 2nd settingsDir.
And in config2.xml I can point to a different stylers2.xml containing a different definition for (rest of canvas) DEFAULT.
As I see it, I could start running different themes for different filetypes just by specifying the right config[nn].xml to use.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the existing -settingsDir command-line handling and where config.xml and related settings are loaded. Define the interaction with a selected config[nn].xml, including its stylers reference, and verify that shortcuts, macros, and PythonScript files remain in the existing settings directory.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.