taskWeeChat - Tasks: task #12954, implement wordchars

 
 

task #12954: implement wordchars

Submitter:  Muffin Man <muffins>
Submitted:  Wed 27 Nov 2013 01:33:12 AM UTC
   
 
Category:  display Should Start On:  Wed 27 Nov 2013 12:00:00 AM UTC
Should be Finished on:  Wed 27 Nov 2013 12:00:00 AM UTC Priority:  * 5 - Normal
Status:  Duplicate Privacy:  Public
Assigned to:  flashcode Percent Complete:  0%
Originator Name:  Open/Closed:  Closed
Planned Release:  None IRC nick: 
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 27 Nov 2013 06:44:51 AM UTC, 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.

Sebastien Helleu <flashcode>
Group administrator
Wed 27 Nov 2013 01:33:12 AM UTC, original submission:  

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.

Muffin Man <muffins>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by flashcode (Posted a comment)
  • -email is unavailable- added by muffins (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-11-27 flashcode CategoryNone display
        StatusNone Duplicate
        Assigned toNone flashcode
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code