Tags:
+* Dir,Ls - List current directory contents
* ID - Get window id of the X window
* Zerox - Create a copy of the window
},
(Rule[]){ /* If it's an existing directory, open it with system default */
{ ISDIR, "$data", NULL },
- { LAUNCH, OPENCMD " $data", NULL },
+ { LAUNCH, "cd $data && ls -ap | tide -", NULL },
{ COMPLETE, NULL, NULL }
},
};
} Tag;
char* ARGV0;
-static Tag Builtins[18];
-static KeyBinding Bindings[41];
+static Tag* Builtins;
+static KeyBinding* Bindings;
static WinRegion Focused = EDIT;
static View Regions[NREGIONS];
static int Divider;
for (char* tag = cmd; *tag && !isspace(*tag); tag++, len++)
{
+ /* do nothing */
}
while (tags->tag)
/* Main Routine
******************************************************************************/
-static Tag Builtins[18] = {
+static Tag* Builtins = (Tag[]){
{ .tag = "Cut", .action = cut },
{ .tag = "Copy", .action = copy },
{ .tag = "Del", .action = quit },
{ .tag = NULL, .action = NULL }
};
-static KeyBinding Bindings[41] = {
+static KeyBinding* Bindings = (KeyBinding[]){
/* Cursor Movements */
{ .mods = ModAny, .key = KEY_HOME, .fn = cursor_home },
{ .mods = ModAny, .key = KEY_END, .fn = cursor_end },