Skip to content

Commit

Permalink
issue: kupferlauncher#61-JSON - MAINT: Clean up kupfer.core.settings k…
Browse files Browse the repository at this point in the history
…upferlauncher#61 - JSON POC; commit: chages:

convert default.cfg to  default.json
change configparser with json lib
remove remove strbool and strint: json accept those values
add _same_type: dumb function
add _merge: dict.update wont deep merge
default empty values can be omited
remove fill_parser and config-to-dict: not required anymore
remove get_config_int: json can store/return int
fix a bug for self.print_error needs to be pretty.print_error
  • Loading branch information
hugosenari committed Apr 10, 2017
1 parent 9d93020 commit f7d6125
Show file tree
Hide file tree
Showing 5 changed files with 115 additions and 236 deletions.
122 changes: 0 additions & 122 deletions data/defaults.cfg

This file was deleted.

72 changes: 72 additions & 0 deletions data/defaults.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"kupfer": {
"Keybinding": "<Ctrl>space",
"ShowStatusIcon": true,
"UseCommandKeys": true,
"action_accelerator_modifer": "ctrl"
},
"Keybindings": {
"activate": "<Alt>a",
"comma_trick": "<Control>comma",
"compose_action": "<Control>Return",
"reset_all": "<Control>r",
"select_quit": "<Control>q",
"select_selected_text": "<Control>g",
"show_help": "F1",
"show_preferences": "<Control>semicolon",
"toggle_text_mode_quick": "<Control>period"
},
"Tools": {
"terminal": "kupfer.plugin.core.gnome-terminal",
"icon_renderer": "kupfer.plugin.core.gtk"
},
"plugin_core": {
"kupfer_enabled": true,
"kupfer_hidden": true
},
"plugin_applications": {
"kupfer_enabled": true
},
"plugin_archivemanager": {
"kupfer_enabled": true
},
"plugin_calculator": {
"kupfer_enabled": true
},
"plugin_clipboard": {
"kupfer_enabled": true
},
"plugin_commands": {
"kupfer_enabled": true
},
"plugin_dictionary": {
"kupfer_enabled": true
},
"plugin_documents": {
"kupfer_enabled": true
},
"plugin_favorites": {
"kupfer_enabled": true
},
"plugin_qsicons": {
"kupfer_enabled": true
},
"plugin_show_text": {
"kupfer_enabled": true
},
"plugin_triggers": {
"kupfer_enabled": true
},
"plugin_trash": {
"kupfer_enabled": true
},
"plugin_urlactions": {
"kupfer_enabled": true
},
"plugin_volumes": {
"kupfer_enabled": true
},
"plugin_wikipedia": {
"kupfer_enabled": true
}
}
Loading

0 comments on commit f7d6125

Please sign in to comment.