Closed weyfonk closed 7 years ago
Thank you very much for this contribution! A pity that this pull request is yet to be merged to master… I compiled tilda with your patch on my own and your feature works like a charm!
Maybe -C
instead of -g
the later doesn't seem all that obvious (just a thought)?
That's why:
Usage:
tilda [OPTION...]
...
-c, --command Run a command at startup
...
-C, --config Show Configuration Wizard
This is an attempt at providing a command-line option to use a custom config file when launching Tilda.
A new option can be called, either as
-g
or as--config-file
and followed by a path, to specify a configuration file to use for a Tilda instance. If there is no file at the specified path, the default config file for the current instance is used.Note that the
-c
flag suggested inTODO.md
has been discarded as it is already used for--command
, hence-g
is used here instead, which of course can be changed.This is obviously still experimental. Possible issues arise when several instances are launched using the same config file, causing keybindings to conflict between instances. A way to avoid this would be to keep track of which instance uses which config file, to make such a file unavailable for further instances. OTOH, sharing a config (or parts thereof) between instances could probably be useful in some cases. Anyway, I thought submitting this could be a nice way to gather feedback and ideas on what kind of behaviour we would like to see here.