diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2013-08-17 11:51:50 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2013-08-17 11:51:50 +0200 |
commit | 600ee3ddf37c070cab373346661d55718d2130b9 (patch) | |
tree | ff8c99c98ed7c4371eb4a6641a056d9b28ac6c71 /src/gui/gui-buffer.h | |
parent | c6249603368de12acfac60868d4bddd18d29abba (diff) | |
download | weechat-600ee3ddf37c070cab373346661d55718d2130b9.zip |
core: add search of regular expression in buffer, don't reset search type on a new search, select where to search (messages/prefixes)
Key changed in search context:
- ctrl+"r": switch search type: string/regex
New keys in search context:
- alt+"c": case (in)sensitive search
- tab: search in messages/prefixes/both
Diffstat (limited to 'src/gui/gui-buffer.h')
-rw-r--r-- | src/gui/gui-buffer.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/gui-buffer.h b/src/gui/gui-buffer.h index e1704cf9f..f9de9c4b1 100644 --- a/src/gui/gui-buffer.h +++ b/src/gui/gui-buffer.h @@ -50,6 +50,9 @@ enum t_gui_buffer_notify #define GUI_TEXT_SEARCH_BACKWARD 1 #define GUI_TEXT_SEARCH_FORWARD 2 +#define GUI_TEXT_SEARCH_IN_MESSAGE 1 +#define GUI_TEXT_SEARCH_IN_PREFIX 2 + #define GUI_BUFFER_INPUT_BLOCK_SIZE 256 /* buffer structures */ @@ -158,6 +161,9 @@ struct t_gui_buffer /* text search */ int text_search; /* text search type */ int text_search_exact; /* exact search (case sensitive) ? */ + int text_search_regex; /* search with a regex */ + regex_t *text_search_regex_compiled; /* regex used to search */ + int text_search_where; /* search where? prefix and/or msg */ int text_search_found; /* 1 if text found, otherwise 0 */ char *text_search_input; /* input saved before text search */ |