diff --git a/termite.cc b/termite.cc index 3a21886..f5ddaf9 100644 --- a/termite.cc +++ b/termite.cc @@ -588,6 +588,11 @@ static void load_config(GtkWindow *window, VteTerminal *vte, config_info *info, g_free(cfgstr); } + if (get_config_string(config, "options", "word_chars", &cfgstr)) { + vte_terminal_set_word_chars(vte, cfgstr); + g_free(cfgstr); + } + if (get_config_integer(config, "options", "scrollback_lines", &cfgint)) { vte_terminal_set_scrollback_lines(vte, cfgint); } diff --git a/termite.cfg b/termite.cfg index 1f79987..5937924 100644 --- a/termite.cfg +++ b/termite.cfg @@ -29,6 +29,10 @@ cursor_shape = block # termite has the correct terminfo, but some applications hardcode TERM checks #term = termite +# word characters used for word selection +# (default if unset: all graphic non-punctuation/space characters) +#word_chars = -A-Za-z0-9,./?%&#:_=+@~ + [colors] foreground = #dcdccc foreground_bold = #ffffff