[task #12954] implement wordchars

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[task #12954] implement wordchars

Eric L.-2
URL:
  <http://savannah.nongnu.org/task/?12954>

                 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:

    _______________________________________________________

Details:

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).
 */

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

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:

  <http://savannah.nongnu.org/task/?12954>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/


_______________________________________________
Weechat-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/weechat-dev
Reply | Threaded
Open this post in threaded view
|

[task #12954] implement wordchars

Eric L.-2
Update of task #12954 (project weechat):

                Category:                    None => display                
                  Status:                    None => Duplicate              
             Assigned to:                    None => flashcode              
             Open/Closed:                    Open => Closed                

    _______________________________________________________

Follow-up Comment #1:

Hi,

This is a duplicate of task #9459
Please complete this task if you have info to add, this one will be closed.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/task/?12954>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/


_______________________________________________
Weechat-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/weechat-dev