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
[email protected]
https://lists.nongnu.org/mailman/listinfo/weechat-dev