aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/config-syntax
diff options
context:
space:
mode:
authorGravatar Dieter Plaetinck <dieter@plaetinck.be>2009-05-11 19:14:41 +0200
committerGravatar Dieter Plaetinck <dieter@plaetinck.be>2009-05-11 19:14:41 +0200
commit6ebc2b46357d6324311da7ec667a5b53fae8cbab (patch)
tree5f4ac2f2f45dffc6ecec5a224d650f8ecd751c74 /docs/config-syntax
parent4cd06fbc9b54704bb85e536d0c4302334d26d324 (diff)
rationale for config refactoring
Diffstat (limited to 'docs/config-syntax')
-rw-r--r--docs/config-syntax20
1 files changed, 19 insertions, 1 deletions
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 <filename for process to start asynchronously>
exit
search <string>
-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