patchGNU nano - Patches: patch #10389, scroll on mousewheel instead of...

 
 

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

patch #10389: scroll on mousewheel instead of moving cursor

Submitter:  Andy Koppe <ak2>
Submitted:  Sun 10 Sep 2023 04:19:14 PM UTC
   
 
Priority:  5 - Normal Status:  Done
Privacy:  Public Assigned to:  bens
Open/Closed:  Open Release:  None

Sat 24 Feb 2024 04:09:39 PM UTC, comment #4: 

After seeing how vim and joe and mcedit react to the scrollwheel, that behavior does make more sense.

Applied in https://git.savannah.gnu.org/cgit/nano.git/commit/?id=4673e709.    Thanks for the patch.

Benno Schulenberg <bens>
Group administrator
Thu 14 Sep 2023 03:04:46 PM UTC, comment #3: 

(The message arrived on the list a couple of hours later.  I guess posts from fresh subscribers are held for moderation for a while, like posts from non-subscribers are.)

Benno Schulenberg <bens>
Group administrator
Tue 12 Sep 2023 08:00:06 PM UTC, comment #2: 

I signed up to -email is unavailable- and sent the patch to it as requested using git-send-email earlier today. This appeared to succeed, but it hasn't shown up in the mailing list archive and I haven't had an error response, so I don't know what happened to it.

Therefore I'm attaching v2 of the patch here with some minor additional comment tweaks and the reasoning behind it:

Scrolling rather than moving the cursor is the standard behavior for mousewheel events both in GUI editors such as Gedit, Kate, Notepad/++ and the GUI versions of vim and emacs, as well as in the mouse mode of terminal editors such as vim, mcedit, mined and joe. (The terminal version of emacs doesn't bind the mousewheel events by default.)

Therefore I think that's what users would expect from nano as well if they venture into mouse mode.

That might be even more pertinent for users with a Mac-style wheel setup where the wheel directly moves the window content, i.e. rolling/swiping up moves the window content up. On Windows, the wheel controls the scrollbar, with the window content moving in the opposite direction. Combining Mac-style wheel semantics with the cursor-moving approach results in the cursor moving up when the wheel is rolled down.

(file #55130)

Andy Koppe <ak2>
Mon 11 Sep 2023 05:20:16 PM UTC, comment #1: 

Two years ago I proposed the same patch (file #50590) as response to a request in bug #59783.  As the requester did not respond and I myself found the behavior with the patch strange, I closed the issue.  But I never use 'set mouse' myself, so my opinion doesn't count for much.  So... it would be better to post this patch to the nano-devel mailing list and see if there are any other people who would like this behavior.

Benno Schulenberg <bens>
Group administrator
Sun 10 Sep 2023 04:19:14 PM UTC, original submission:  

Scroll on mousewheel events instead of moving the cursor, by translating such events into Alt+Up/Down arrow keys instead of plain Up/Down, as the latter only start scrolling once the cursor reaches the top or bottom.

Andy Koppe <ak2>

 

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

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (Posted a comment)
  • -email is unavailable- added by ak2 (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-02-24 bens StatusNone Done
        Assigned toNone bens
    2023-09-12 ak2 Attached File- Added v2-0001-input-scroll-on-mousewheel-instead-of-moving-curs.patch, #55130
    2023-09-10 ak2 Attached File- Added 0001-input-scroll-on-mousewheel-instead-of-moving-cursor.patch, #55125

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code