{"action":"created","issue":{"url":"https://api.github.com/repos/hluk/CopyQ/issues/428","labels_url":"https://api.github.com/repos/hluk/CopyQ/issues/428/labels{/name}","comments_url":"https://api.github.com/repos/hluk/CopyQ/issues/428/comments","events_url":"https://api.github.com/repos/hluk/CopyQ/issues/428/events","html_url":"https://github.com/hluk/CopyQ/issues/428","id":123118524,"number":428,"title":"Strictly separate 'options' and 'cached values'","user":{"login":"amerlyq","id":5730096,"avatar_url":"https://avatars.githubusercontent.com/u/5730096?v=3","gravatar_id":"","url":"https://api.github.com/users/amerlyq","html_url":"https://github.com/amerlyq","followers_url":"https://api.github.com/users/amerlyq/followers","following_url":"https://api.github.com/users/amerlyq/following{/other_user}","gists_url":"https://api.github.com/users/amerlyq/gists{/gist_id}","starred_url":"https://api.github.com/users/amerlyq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amerlyq/subscriptions","organizations_url":"https://api.github.com/users/amerlyq/orgs","repos_url":"https://api.github.com/users/amerlyq/repos","events_url":"https://api.github.com/users/amerlyq/events{/privacy}","received_events_url":"https://api.github.com/users/amerlyq/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-20T00:26:35Z","updated_at":"2015-12-20T08:01:04Z","closed_at":null,"body":"Year and half ago in #224 I asked you to split config in two.\r\nAnd now I ask you to do this again, because you enhanced conf and added new dirty options.\r\nI sync ```copyq.conf``` between many working machines by git, therefore it must be constant and allow changes only on demand -- through preferences.\r\nTherefore:\r\n* ```filter_history``` must not be inside ```copyq.conf```, because I'm tired of resetting ```copyq.conf``` each time I commit all my system dotfiles.\r\n\r\nIt's one option which I remember. But there may be more, because I resetted config in other cases also.\r\nI would appreciate it, if you would scan through options list and decided one more time which are options (could be common for several workstations) and which are cached values (actual for concrete local machine only).\r\n\r\nP.S. Also I remember sections inside ```[Command]``` jumps in order by themselves, but seems like you fixed it by adding number before them. Not pretty, but works. However for such nested configs [TOML](https://github.com/toml-lang/toml) seems better for me.\r\n"},"comment":{"url":"https://api.github.com/repos/hluk/CopyQ/issues/comments/166080771","html_url":"https://github.com/hluk/CopyQ/issues/428#issuecomment-166080771","issue_url":"https://api.github.com/repos/hluk/CopyQ/issues/428","id":166080771,"user":{"login":"hluk","id":38054,"avatar_url":"https://avatars.githubusercontent.com/u/38054?v=3","gravatar_id":"","url":"https://api.github.com/users/hluk","html_url":"https://github.com/hluk","followers_url":"https://api.github.com/users/hluk/followers","following_url":"https://api.github.com/users/hluk/following{/other_user}","gists_url":"https://api.github.com/users/hluk/gists{/gist_id}","starred_url":"https://api.github.com/users/hluk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hluk/subscriptions","organizations_url":"https://api.github.com/users/hluk/orgs","repos_url":"https://api.github.com/users/hluk/repos","events_url":"https://api.github.com/users/hluk/events{/privacy}","received_events_url":"https://api.github.com/users/hluk/received_events","type":"User","site_admin":false},"created_at":"2015-12-20T08:01:04Z","updated_at":"2015-12-20T08:01:04Z","body":"OK, I'll move things out of the main config file.\r\n\r\nOther config sections which should be saved separately is `[Theme]` (colors, fonts, style sheets) and `[Script]` (custom settings for user commands).\r\n\r\nThe `[Command]` section is array in standard conf format used by Qt. And yes, it's very ugly:\r\n- The command numbers seem redundant and sorting is bad (1, 10 ... 19, 2, 20 ...).\r\n- Longer strings aren't formatted nicely (contains `\\n` instead line breaks).\r\n\r\nIt would be really nice to use JSON as format for configuration (can be parsed by many tools can parse it and is supported by Qt 5 and perhaps through JavaScript engine in Qt 4)."}}