Other configurations
Manage multiple config files
For some cases, you may want to have multiple config files for different purposes.
You can do this by editting config.lua
file.
In Xournal++, from the top menu, click Plugins
> Edit config.lua
.
For example, edit config.lua
to:
settings_all = {
-- {shortcut to start exporting, config file name, shortcut to edit this config file}
{"g", "config.json", "i"},
{"", "config-2.json", ""},
}
edit_config_lua_shortcut = ""
Then you would have two config files, config.json
and config-2.json
.
After editting config.lua
, you need to restart xournal++ to make the changes take effect.
Then, In xournal++, from the top menu, click Plugins
-> Advanced Export
-> Edit config-2.json
to edit config-2.json
Shortcuts
The shortcut for executing plugin and editing config file can also be set in config.lua
.
settings_all = {
-- {shortcut to start exporting, config file name, shortcut to edit this config file}
{"g", "config.json", "i"},
{"h", "config-2.json", ""},
}
edit_config_lua_shortcut = ""
In this example,
the shortcut for exporting using config.json
is G, and the shortcut for editing the config.json
is I.
the shortcut for exporting using config-2.json
is H, and the shortcut for editing the config-2.json
is "empty", meaning you doesn't set a shortcut for editing config-2.json
.
Use <Ctrl>
to represent the Ctrl key, <Alt>
to represent the Alt key, <Shift>
to represent the Shift key, and <Super>
to represent the Super key.
Eg: <Alt><Shift>j
represents Alt+Shift+J
Note
If your shortcut conflict with default Xournal++ shortcuts, default shortcuts would have higher priority. For exapmle, Ctrl+S is the default shortcut for saving the file, so you could not set Ctrl+S as a shortcut for this plugin.