sfm

Simple file manager
git clone git://git.margiolis.net/sfm.git
Log | Files | Refs | README | LICENSE

config.h (1030B)


      1 /* Used in `xdelay`. */
      2 #define DELAY_MS 350
      3 
      4 /* Must be between 1 and 9. */
      5 static int npanes = 4;
      6 
      7 /* Read date(1)'s and strftime(3)'s man pages for info on formatting. */
      8 static char *datefmt = "%F";
      9 
     10 /*
     11  * function	description		argument
     12  */
     13 static struct key keys[] = {
     14 	/* key		func		arg */
     15 	{ KEY_LEFT,	chlevel,	{ .i = S_LEFT } },
     16 	{ 'h',		chlevel,	{ .i = S_LEFT } },
     17 	{ KEY_RIGHT,	chlevel,	{ .i = S_RIGHT } },
     18 	{ 'l',		chlevel,	{ .i = S_RIGHT } },
     19 	{ KEY_UP,	scrolldir,	{ .i = S_UP } },
     20 	{ 'k',		scrolldir,	{ .i = S_UP } },
     21 	{ KEY_DOWN,	scrolldir,	{ .i = S_DOWN } },
     22 	{ 'j',		scrolldir,	{ .i = S_DOWN } },
     23 	//{ KEY_PPAGE,	scrolldir,	{ .i = S_PGUP } },
     24 	//{ KEY_NPAGE,	scrolldir,	{ .i = S_PGDOWN } },
     25 	{ 'g',		scrolldir,	{ .i = S_TOP } },
     26 	{ 'G',		scrolldir,	{ .i = S_BOTTOM } },
     27 	{ '.',		setflag,	{ .i = F_SHOWALL } },
     28 	{ 'i',		setflag,	{ .i = F_INFO } },
     29 	{ CTRL('r'),	setflag,	{ .i = F_REDRAW } },
     30 	{ 'q',		setflag,	{ .i = F_QUIT } },
     31 	{ '\t',		cyclepane,	{0} },
     32 	{ 's',		sort,		{0} },
     33 	{ '~',		cd,		{ .s = "HOME"} },
     34 };