bugGNU nano - Bugs: bug #48291, [Request] make ^Up and ^Down jump...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #48291: [Request] make ^Up and ^Down jump to next block of text

Submitter:  Benno Schulenberg <bens>
Submitted:  Wed 22 Jun 2016 08:15:23 AM UTC
   
 
Severity:  1 - Wish Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Sat 30 Jul 2016 09:07:05 AM UTC, comment #4: 

Released in 2.6.2.

Benno Schulenberg <bens>
Group administrator
Tue 26 Jul 2016 07:32:53 PM UTC, comment #3: 

Pushed to git, c6dbcf9.

Benno Schulenberg <bens>
Group administrator
Sat 23 Jul 2016 09:11:52 AM UTC, comment #2: 
Benno Schulenberg <bens>
Group administrator
Sat 25 Jun 2016 01:25:43 PM UTC, comment #1: 

First version of a patch.  It doesn't take softwrap into account.

(file #37573)

Benno Schulenberg <bens>
Group administrator
Wed 22 Jun 2016 08:15:23 AM UTC, original submission:  

Now that ^Left and ^Right do something useful (on some terminals, at least), it becomes puzzling why ^Up and ^Down don't do anything special.

Without even knowing yet that Geany and Emacs do something similar, I figured that ^Up and ^Down should jump from block to block.  The paragraph-jumping keys (M-9 and M-0) are quite useless when dealing with code because of all the varying indentations (and even in the NEWS file their behavior is not what one would want).

So, the desired behavior of the block-jumping functions is: ^Down should jump to the start of the first nonblank line after the next blank line (where "next" can be the current line).  ^Up should jump to the start of a block of nonblank lines after the first preceding blank line.

In short: ^Up and ^Down should use the same logic as ^Left and ^Right but using blank lines as the separators instead of any whitespace.  (In other words: the same behavior as Geany has.)

Benno Schulenberg <bens>
Group administrator

 

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

Attached Files
file #37995:  0001-new-feature-functions-to-jump-to-previous-or-followi.patch added by bens (10KiB - text/x-diff - latest version of the patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (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.

     

    Follow 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-07-30 bens Open/ClosedOpen Closed
    2016-07-26 bens StatusIn Progress Fixed
    2016-07-23 bens Attached File- Added 0001-new-feature-functions-to-jump-to-previous-or-followi.patch, #37995
        StatusReady For Test In Progress
    2016-06-29 bens StatusIn Progress Ready For Test
    2016-06-25 bens Attached File- Added 0001-moving-add-functions-to-jump-to-previous-or-followin.patch, #37573
        StatusNone In Progress
        Assigned toNone bens

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code