GNU 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
Submitter: | Benno Schulenberg <bens> | ||
Submitted: | Sun 17 Nov 2019 07:34:18 AM UTC | ||
Severity: | 1 - Wish | Status: | Fixed |
Assigned to: | bens | Open/Closed: | Closed |
Tue 29 Mar 2022 12:01:02 PM UTC, comment #3: |
Benno Schulenberg <bens> |
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.
|
Benno Schulenberg <bens> |
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> |
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.
|
Benno Schulenberg <bens> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
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 6 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2022-04-29 | bens | Open/Closed | Open | Closed | |
2022-03-29 | bens | Status | Wont Fix | Fixed | |
Assigned to | None | 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 | Status | None | 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 |
Powered by Savane 3.13-4448.
Corresponding source code
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.