WeeChat DevCenter

Search with regex and text emphasis

When searching text in buffer (with Ctrl+R), the matching text in lines is now emphasized, even if there are color codes in the line.

The search has been improved: it is now possible to search with a regular expression, and select where to search: in messages (default), prefixes or prefixes+messages.

The default key for search is still Ctrl+R and keys have been added/changed in the search context:

  • Ctrl+R: switch search type: string/regex
  • Alt+c: switch exact case for search
  • Tab: switch search in messages/prefixes

The new search prompt in input bar looks like this: [Search (~ str,msg)]

Short description of content:

  • ~: case insensitive search (default)
  • ==: case sensitive search
  • str: search string (default)
  • regex: search regular expression
  • msg: search in messages (default)
  • pre: search in prefixes
  • pre|msg: search in prefixes and messages

Happy search!

weechat_search_emphasis_regex.png