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/core | |
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/core')
-rw-r--r-- | src/core/wee-command.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c index dd2df49d4..f285cd73f 100644 --- a/src/core/wee-command.c +++ b/src/core/wee-command.c @@ -2507,6 +2507,10 @@ COMMAND_CALLBACK(input) gui_input_search_next (buffer); else if (string_strcasecmp (argv[1], "search_switch_case") == 0) gui_input_search_switch_case (buffer); + else if (string_strcasecmp (argv[1], "search_switch_regex") == 0) + gui_input_search_switch_regex (buffer); + else if (string_strcasecmp (argv[1], "search_switch_where") == 0) + gui_input_search_switch_where (buffer); else if (string_strcasecmp (argv[1], "search_stop") == 0) gui_input_search_stop (buffer); else if (string_strcasecmp (argv[1], "delete_previous_char") == 0) @@ -6523,6 +6527,8 @@ command_init () "completion\n" " search_text: search text in buffer\n" " search_switch_case: switch exact case for search\n" + " search_switch_regex: switch search type: string/regular expression\n" + " search_switch_where: switch search in messages/prefixes\n" " search_previous: search previous line\n" " search_next: search next line\n" " search_stop: stop search\n" |