applied plumb with keybind
[st.git] / config.def.h
index 361e138..db31681 100644 (file)
@@ -129,9 +129,23 @@ static const char *colorname[] = {
  */
 unsigned int defaultfg = 7;
 unsigned int defaultbg = 0;
-static unsigned int defaultcs = 256;
+static unsigned int defaultcs = 15;
 static unsigned int defaultrcs = 257;
 
+unsigned int const currentBg = 0, buffSize = 2048;
+/// [Vim Browse] Colors for search results currently on screen.
+unsigned int const highlightBg = 9, highlightFg = 15;
+char const wDelS[] = "!\"#$%&'()*+,-./:;<=>?@[\\]^`{|}~", wDelL[] = " \t";
+char *nmKeys [] = {              ///< Shortcusts executed in normal mode
+  "R/Building\nN", "r/Building\n", "X/juli@machine\nN", "x/juli@machine\n",
+  "Q?[Leaving vim, starting execution]\n","F/: error:\nN", "f/: error:\n", "DQf"
+};
+unsigned int const amountNmKeys = sizeof(nmKeys) / sizeof(*nmKeys);
+/// Style of the {command, search} string shown in the right corner (y,v,V,/)
+Glyph styleSearch = {' ', ATTR_ITALIC | ATTR_BOLD_FAINT, 7, 16};
+Glyph style[] = {{' ',ATTR_ITALIC|ATTR_FAINT,15,16}, {' ',ATTR_ITALIC,232,11},
+                 {' ', ATTR_ITALIC, 232, 4}, {' ', ATTR_ITALIC, 232, 12}};
+
 /*
  * https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-SP-q.1D81
  * Default style of cursor
@@ -231,17 +245,20 @@ static MouseShortcut mshortcuts[] = {
 static Shortcut shortcuts[] = {
        /* mask                 keysym          function        argument */
        { XK_ANY_MOD,           XK_Break,       sendbreak,      {.i =  0} },
-       { ControlMask,          XK_Print,       toggleprinter,  {.i =  0} },
-       { ShiftMask,            XK_Print,       printscreen,    {.i =  0} },
-       { XK_ANY_MOD,           XK_Print,       printsel,       {.i =  0} },
-       { TERMMOD,              XK_Prior,       zoom,           {.f = +1} },
-       { TERMMOD,              XK_Next,        zoom,           {.f = -1} },
-       { TERMMOD,              XK_Home,        zoomreset,      {.f =  0} },
+       /* { ControlMask,          XK_Print,       toggleprinter,  {.i =  0} }, */
+       /* { ShiftMask,            XK_Print,       printscreen,    {.i =  0} }, */
+       /* { XK_ANY_MOD,           XK_Print,       printsel,       {.i =  0} }, */
+       { ControlMask,          XK_Prior,       zoom,           {.f = +1} },
+       { ControlMask,          XK_Next,        zoom,           {.f = -1} },
+       { ControlMask,          XK_Home,        zoomreset,      {.f =  0} },
        { TERMMOD,              XK_C,           clipcopy,       {.i =  0} },
        { TERMMOD,              XK_V,           clippaste,      {.i =  0} },
        { TERMMOD,              XK_Y,           selpaste,       {.i =  0} },
        { ShiftMask,            XK_Insert,      selpaste,       {.i =  0} },
        { TERMMOD,              XK_Num_Lock,    numlock,        {.i =  0} },
+       { MODKEY,               XK_c,           normalMode,     {.i =  0} },
+       { ControlMask,          XK_Return,      newterm,        {.i =  0} },
+    { ControlMask,          XK_space,       plumber,        {.i =  0} },
 };
 
 /*
@@ -513,3 +530,9 @@ static char ascii_printable[] =
        " !\"#$%&'()*+,-./0123456789:;<=>?"
        "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_"
        "`abcdefghijklmnopqrstuvwxyz{|}~";
+
+/*
+ * plumb_cmd is run on mouse button 3 click, with first NULL set to
+ * current selection and with cwd set to the cwd of the active shell
+ */
+static char *plumb_cmd[] = {"plumb", "-m", NULL, NULL};