Fixes issue #232 and #339. Seems very odd to a new user that ptpython does not save the options the user sets via the nice F2 menu so this PR adds that feature.
The ptpython settings are saved at ~/.config/config.json and the ptipython settings are saved at ~/.config/ipython-config.json. Only settings that are different from default are saved and the values are pruned each time to ensure that any old config values are removed. Any config.py, if present, re-defines the user's default.
I've been careful in the way I have designed this change and to keep it very generic so please ask questions here if you think something looks odd.
Fixes issue #232 and #339. Seems very odd to a new user that ptpython does not save the options the user sets via the nice F2 menu so this PR adds that feature.
The
ptpython
settings are saved at~/.config/config.json
and theptipython
settings are saved at~/.config/ipython-config.json
. Only settings that are different from default are saved and the values are pruned each time to ensure that any old config values are removed. Anyconfig.py
, if present, re-defines the user's default.I've been careful in the way I have designed this change and to keep it very generic so please ask questions here if you think something looks odd.