]> git.armaanb.net Git - st.git/blobdiff - config.def.h
use iswspace()/iswpunct() to find word delimiters
[st.git] / config.def.h
index 616616a6d190962cef6143f934c846bf442b634a..9ce45a7c84ade44f6069439adde11b614264d465 100644 (file)
@@ -16,7 +16,7 @@ static int borderpx = 2;
  * 4: value of shell in /etc/passwd
  * 5: value of shell in config.h
  */
-char *shell = "/bin/sh";
+static char *shell = "/bin/sh";
 char *utmp = NULL;
 char *stty_args = "stty raw pass8 nl -echo -iexten -cstopb 38400";
 
@@ -28,11 +28,12 @@ static float cwscale = 1.0;
 static float chscale = 1.0;
 
 /*
- * word delimiter string
+ * all space and punctuation characters are considered word delimiters, unless
+ * listed here.
  *
- * More advanced example: " `'\"()[]{}"
+ * More advanced example: L"#$%&+,-./:=?_~"
  */
-char *worddelimiters = " ";
+wchar_t *extrawordchars = L"./:";
 
 /* selection timeouts (in milliseconds) */
 static unsigned int doubleclicktimeout = 300;
@@ -176,8 +177,8 @@ static Shortcut shortcuts[] = {
        { 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} },
-       { TERMMOD,              XK_I,           iso14755,       {.i =  0} },
 };
 
 /*