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

 
 

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

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

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

Released in 2.6.2.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Tue 26 Jul 2016 07:32:53 PM UTC, comment #3:

Pushed to git, c6dbcf9.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sat 23 Jul 2016 09:11:52 AM UTC, comment #2:

See also https://lists.gnu.org/archive/html/nano-devel/2016-07/msg00069.html.

(file #37995)

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.

 

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

Attach File(s):
   
   
Comment:
   

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bens (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 30 Jul 2016 09:07:05 AM UTCbensOpen/ClosedOpen=>Closed
    Tue 26 Jul 2016 07:32:53 PM UTCbensStatusIn Progress=>Fixed
    Sat 23 Jul 2016 09:11:52 AM UTCbensAttached File-=>Added 0001-new-feature-functions-to-jump-to-previous-or-followi.patch, #37995
      StatusReady For Test=>In Progress
    Wed 29 Jun 2016 01:43:32 PM UTCbensStatusIn Progress=>Ready For Test
    Sat 25 Jun 2016 01:25:43 PM UTCbensAttached 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.1-cleanup1