Note
This document is machine-translated.
It may incorrect.
Note
The documentation is still being improved
If you want to contribute to the improvement, please follow the instructions in this document to submit a PR
See README for startup methods
The configuration is stored in config.json
.
You can modify this file to change the configuration.
- (Object) Root object
rules
(Array) Rule group- (Object) A rule
path
(String) Path to traverse (must be an absolute path)matches
(Array) Matching rule list- (Object) A matching rule
type
(String) Match type (see below Supported Matches)value
(String) Match valuefull
(Boolean) Full matchrename
(String) Renamed name (without.lnk
)
- ...
- (Object) A matching rule
- ...
- (Object) A rule
Parameters provided by the windows-shortcuts package, see the documentation of this package for details
target
: Target of the shortcutargs
: Command line argumentsworkingDir
: Working directoryrunStyle
: Running style (specific data is not clear yet)icon
: Icon pathiconIndex
: Icon index in the file (for DLL and files with multiple icons)hotKey
: Startup hotkey (specific data is not clear yet)
Click to expand
{
"rules": [
{
"path": "Path1",
"matches": [
{
"type": "target",
"value": "Target Address1",
"full": false,
"rename": "Rename1"
},
{
"type": "workingDir",
"value": "Working Directory1 (Exact Match)",
"full": true,
"rename": "Rename2"
}
]
},
{
"path": "Path2",
"matches": [
{
"type": "icon",
"value": "Icon Path1",
"full": false,
"rename": "Rename3"
}
]
}
]
}
Additionally, this repository's config.json
also comes with several examples.