From 8b97b04cd1b3e25465351edcc5be8e1b93ec9e80 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Fri, 27 Jul 2012 04:58:50 -0400 Subject: [PATCH] expose word_chars option --- termite.cc | 5 +++++ termite.cfg | 4 ++++ 2 files changed, 9 insertions(+) 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