]> git.sur5r.net Git - i3/i3/commitdiff
CONFIG BREAK: Rename 'restore' to 'append_layout'
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 10 Jun 2011 00:15:31 +0000 (02:15 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 10 Jun 2011 00:15:31 +0000 (02:15 +0200)
i3.config
src/cmdparse.l
src/cmdparse.y

index 1ce396de916f7a70bbe0d36f11e204bc6248920d..a594ea24f5c035b248b44a4bd681b2c0ced2baaa 100644 (file)
--- a/i3.config
+++ b/i3.config
@@ -50,7 +50,7 @@ bindsym Mod1+u focus parent
 bindsym Mod1+c kill
 
 # Restore saved JSON layout
-bindsym Mod1+y restore /home/michael/i3/layout.json
+bindsym Mod1+y append_layout /home/michael/i3/layout.json
 
 # Reload the configuration file
 bindsym Mod1+Shift+j reload
index 6c57984ea61c8f16442961ea8d6f26b810462449..bc83b026bbfaeba1b713378fa1b8b2344b4a5d0e 100644 (file)
@@ -137,7 +137,7 @@ px                              { return TOK_PX; }
 or                              { return TOK_OR; }
 ppt                             { return TOK_PPT; }
 nop                             { WS_STRING; return TOK_NOP; }
-restore                         { WS_STRING; return TOK_RESTORE; }
+append_layout                   { WS_STRING; return TOK_APPEND_LAYOUT; }
 mark                            { WS_STRING; return TOK_MARK; }
 
 enable                          { return TOK_ENABLE; }
index 0738d0c90eca134a4925e20c6222833148b60ffa..6190339801b28d4b846e8aaa96e66049bd2fd49e 100644 (file)
@@ -152,7 +152,7 @@ char *parse_cmd(const char *new) {
 %token              TOK_RIGHT           "right"
 %token              TOK_PARENT          "parent"
 %token              TOK_CHILD           "child"
-%token              TOK_RESTORE         "restore"
+%token              TOK_APPEND_LAYOUT   "append_layout"
 %token              TOK_MARK            "mark"
 %token              TOK_RESIZE          "resize"
 %token              TOK_GROW            "grow"
@@ -339,7 +339,7 @@ operation:
     | reload
     | border
     | layout
-    | restore
+    | append_layout
     | move
     | workspace
     | focus
@@ -625,8 +625,8 @@ move:
     }
     ;
 
-restore:
-    TOK_RESTORE STR
+append_layout:
+    TOK_APPEND_LAYOUT STR
     {
         printf("restoring \"%s\"\n", $2);
         tree_append_json($2);