[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Weechat-dev] [bug #34318] weechat.buffer_search should do/support a cas

From: Nils G
Subject: [Weechat-dev] [bug #34318] weechat.buffer_search should do/support a case insensitive match
Date: Mon, 01 Apr 2013 20:35:25 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:19.0) Gecko/20100101 Firefox/19.0

Update of bug #34318 (project weechat):

                  Status:                    None => Ready For Test         
             Assigned to:               flashcode => nils_2                 


Follow-up Comment #4:

patch for a case insensitive buffer_search. To enable a case insensitive
search, you have to use prefix "(?i)" in front of "name" argument.

Example (python):
weechat.prnt("",'ptr_buffer: %s' %

This patch also includes a new API function called

struct t_gui_buffer *weechat_buffer_search_by_full_name (const char


    full_name: full name of buffer ("plugin.name")

Allowed prefix:
    (?i) : for case insensitive search

Return value:

    pointer to buffer found, NULL if not found

C example:

struct t_gui_buffer *my_buffer = weechat_buffer_search_by_full_name

Script (Python):

# prototype
buffer = weechat.buffer_search_by_full_name(full_name)

# example
buffer = weechat.buffer_search_by_full_name("irc.freenode.#weechat")
buffer = weechat.buffer_search_by_full_name("(?i)irc.freenode.#WeEcHaT")

(file #27739)

Additional Item Attachment:

File name: buffer_search_case_insensitive.patch Size:11 KB


Reply to this item at:


  Nachricht gesendet von/durch Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]