[Top][All Lists]

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

[Weechat-dev] [task #12954] implement wordchars

From: Muffin Man
Subject: [Weechat-dev] [task #12954] implement wordchars
Date: Wed, 27 Nov 2013 01:33:12 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:25.0) Gecko/20100101 Firefox/25.0


                 Summary: implement wordchars
                 Project: WeeChat
            Submitted by: muffins
            Submitted on: Wed 27 Nov 2013 01:33:12 AM GMT
                Category: None
         Should Start On: Wed 27 Nov 2013 12:00:00 AM GMT
   Should be Finished on: Wed 27 Nov 2013 12:00:00 AM GMT
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
        Percent Complete: 0%
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None
                IRC nick: 



It would be /really/ nice to be able to navigate words by something other than
whitespace, as in editors and shells.  Doing some poking around, I found what
I think to be an example of the current behavior:

 * Deletes previous word (default key: ctrl-W).

gui_input_delete_previous_word (struct t_gui_buffer *buffer)
        string = start;
        while (string && (string[0] == ' '))
            string = utf8_prev_char (buffer->input_buffer, string);

I imagine replacing `string && (string[0] == ' ')` by a function that
processes `string` against a `word_chars` variable/setting would be a big part
of it.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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