diff options
| -rw-r--r-- | README.md | 9 | ||||
| -rw-r--r-- | cfg.def.h | 5 |
2 files changed, 14 insertions, 0 deletions
@@ -20,3 +20,12 @@ Configuring cmdtree will be easy (not yet implemented, still WIP): Configuring cmdtree is currently not so easy, but you just need to tweak [cfg.def.h](cfg.def.h) to your liking before building. + + +key bindings +------------ + +``` +ESC quit +Backspace go up one level +``` @@ -55,11 +55,16 @@ static struct scheme schemes[SchemeLast] = { .children = (cs), \ }, +static struct command test_commands[] = { + DEFCMD("t", "test command", "echo ok") +}; + static struct command browser_commands[] = { DEFCMD("s", "chrome scaled", "chrome") DEFCMD("c", "chromium", "chromium") DEFCMD("f", "firefox", "firefox") DEFCMD("k", "kill chrome", "pkill --oldest chromium") + DEFPREFIX("t", "test nested prefix", test_commands) }; static struct command commands[] = { |
