From 6ebc2b46357d6324311da7ec667a5b53fae8cbab Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Mon, 11 May 2009 19:14:41 +0200 Subject: rationale for config refactoring --- docs/config-syntax | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'docs/config-syntax') diff --git a/docs/config-syntax b/docs/config-syntax index 2315b6c..30cf91f 100644 --- a/docs/config-syntax +++ b/docs/config-syntax @@ -35,4 +35,22 @@ spawn exit search -The 'set' command may do more then just set the variable. eg 'set uri' commands will also cause uzbl to navigate to the uri. \ No newline at end of file +The 'set' command may do more then just set the variable. eg 'set uri' commands will also cause uzbl to navigate to the uri. + + + +Rationale. AKA "why not config files?" +-> unify code to configure uzbl and to accept incoming commands +-> no more code needed for config file parsing/handling +-> runtime changing of configuration + +issues +-> new instances (open link etc) need same config/state + solutions? + - serialize all state structs -> some libs available, could work. but: + - binary format not very user friendly + - not that easy (C has no introspection etc) + - iterate over state structs and generate appropriate commands to bring an instance in this state. + - plaintext :) + - user editable + - also useful for saving state if we need to update/shutdown/.. \ No newline at end of file -- cgit v1.2.3