bugGNU nano - Bugs: bug #57248, [Wish] feeding the whole buffer...

 
 

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

bug #57248: [Wish] feeding the whole buffer through a command should not move the cursor

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Sun 17 Nov 2019 07:34:18 AM UTC
 
Severity:  1 - Wish Status:  Fixed
Assigned to:  bens Open/Closed:  Closed
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       

 

Tue 29 Mar 2022 12:01:02 PM UTC, comment #3: 

Well, let's just reduce the request to: retain the current cursor position when the whole buffer is fed through a command.  Commit fcf598e achieves that.

Benno Schulenberg <bens>
Project Administrator
Mon 28 Mar 2022 10:17:53 AM UTC, comment #2: 

Commit fcf598e7 makes the cursor stay at the same line number when the whole buffer is filtered, thus fulfilling this issue partially.

But keeping the marked region marked would lead to the example Sh-M-U and Sh-M-L bindings leaving the upcased or downcased word marked, which I don't like.  Also, leaving a large filtered region marked somehow gives the impression that nothing changed -- dropping the mark gives clearer feedback.

Benno Schulenberg <bens>
Project Administrator
Sun 03 Oct 2021 02:23:05 PM UTC, comment #1: 

Not moving the cursor would interfere with the example Sh-M-U and Sh-M-L bindings: one could no longer upcase or downcase several words in a row.  So maybe the cursor position should only not be changed (or restored to its line) when the operations moves the cursor away from the current line -- or rather: when it moves the cursor two lines or more, so that one can still sequentially operate on all the words in a single paragraph.

Benno Schulenberg <bens>
Project Administrator
Sun 17 Nov 2019 07:34:18 AM UTC, original submission:  

When the full buffer or a marked region is fed through an external command (^R^X |...), then it would be nice if the cursor stayed in the same position (as far as possible, assuming that the text will be only marginally changed and no lines are added or deleted).  This would make it much easier to see what the command actually changed in the text.

When a region was marked, it would be nice if this marking was retained.

Benno Schulenberg <bens>
Project Administrator

 

(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 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.

    Only logged-in users can vote.

     

     

     

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-04-29 bens Open/ClosedOpen => Closed
    2022-03-29 bens StatusWont Fix => Fixed
        Assigned toNone => bens
        Summary[Wish] feeding something through a command should not move the cursor => [Wish] feeding the whole buffer through a command should not move the cursor
    2022-03-28 bens StatusNone => Wont Fix
    2021-10-03 bens Summary[Request] don't change cursor position when feeding something through a command => [Wish] feeding something through a command should not move the cursor

    Back to the top


    Powered by Savane 3.9