commit a9f7c9b29fc54ca1ffa98c670491cd3c9e507f90
parent 55ae285ef587942dc34c5f95b7f97037deb791a2
Author: William Casarin <jb55@jb55.com>
Date: Mon, 9 Jul 2018 10:43:34 -0700
initial readme
Diffstat:
4 files changed, 19 insertions(+), 12 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -3,3 +3,4 @@
*.o
/config.h
/TAGS
+/archive/
diff --git a/README b/README
@@ -0,0 +1,15 @@
+
+cmdtree
+=======
+
+cmdtree is a command launcher in the form of a trie. Commands are launch by a
+sequence of keys that form a path in this trie.
+
+Configuring cmdtree is easy (this format is still WIP):
+
+~/.cmdtreerc or ~/.config/cmdtree/cmdtreerc:
+
+(a application
+ (b chrome --force-device-scale-factor=1.25)
+ (e emacs)
+)+
\ No newline at end of file
diff --git a/TODO.org b/TODO.org
@@ -1,9 +1,5 @@
-* DONE popup window
-CLOSED: [2018-07-08 Sun 12:15]
-* DONE close window on escape
-CLOSED: [2018-07-08 Sun 12:20]
-
-* TODO draw command
+* TODO draw key as well
+* TODO command/bind different color
* TODO column layout
diff --git a/drw.c b/drw.c
@@ -252,13 +252,9 @@ drw_text(Drw *drw, int x, int y, unsigned int w, unsigned int h, unsigned int lp
XftResult result;
int charexists = 0;
- printf("1\n");
-
if (!drw || (render && !drw->scheme) || !text || !drw->fonts)
return 0;
- printf("2\n");
-
if (!render) {
w = ~w;
} else {
@@ -271,8 +267,6 @@ drw_text(Drw *drw, int x, int y, unsigned int w, unsigned int h, unsigned int lp
w -= lpad;
}
- printf("3\n");
-
usedfont = drw->fonts;
while (1) {
utf8strlen = 0;