bugGNU nano - Bugs: bug #66497, [Wish] add support for...

 
 

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

bug #66497: [Wish] add support for Shift+Ctrl+key bindings

Submitter:  Jon Miller <jemiller>
Submitted:  Sat 30 Nov 2024 12:28:04 AM UTC
   
 
Severity:  1 - Wish Status:  Cantfix
Assigned to:  None Open/Closed:  Open

Sat 30 Nov 2024 11:23:56 AM UTC, comment #2: 

Nano uses ncurses to read keyboard input, and ncurses does not distinguish between Ctrl+letter and Shift+Ctrl+letter -- so nano cannot distinguish between those two either.

As for modified function keys, when I press Shift+F3, nano says "Unbound key: F15".  If for you it says the same, you can bind Shift+F3 in nano by binding F15.  (The Fxx that corresponds with Shift+F3 can differ, though, between a Linux console and the various terminal emulators -- this can't be helped either.)

(Nano can differentiate between Alt+letter and Shift+Alt+letter because ncurses differentiates between them.)

Benno Schulenberg <bens>
Group administrator
Sat 30 Nov 2024 12:47:05 AM UTC, comment #1: 

Also, it looks like Alt+Function doesn't work (e.g. M-F4).

Jon Miller <jemiller>
Sat 30 Nov 2024 12:28:04 AM UTC, original submission:  

As far as I can tell, it is only possible to bind Shift+Alt+Key to commands and not Shift+Ctrl+KEy or Shift+FunctionKey?

Would it be possible to add support for this to the editor?

Specifically, what I want to be able to do is assign Shift+F3 to findprevious.

I would also like to be able to assign Shift+Ctrl+S to writeout.

I think if you had support for this, you would be able to create key bindings to make nano behave more like Windows applications.

Jon Miller <jemiller>

 

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

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 (Posted a comment)
  • -email is unavailable- added by jemiller (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-11-30 bens Severity3 - Normal 1 - Wish
        StatusNone Cantfix
        SummaryAdd support for Shift+Ctrl+Key and Shift-Function key bindings [Wish] add support for Shift+Ctrl+key bindings

    Back to the top

    Powered by Savane 3.14-3b9d.
    Corresponding source code