bugGNU nano - Bugs: bug #52931, [Request] allow to bind a key to a...

 
 

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

bug #52931: [Request] allow to bind a key to a string

Submitter:  Benno Schulenberg <bens>
Submitted:  Fri 19 Jan 2018 10:30:00 AM UTC
   
 
Severity:  1 - Wish Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Fri 09 Mar 2018 10:15:52 AM UTC, comment #4: 

Released in 2.9.4.

Benno Schulenberg <bens>
Group administrator
Sun 04 Feb 2018 12:04:22 PM UTC, comment #3: 

Pushed to master, commit 6d111c93.

Benno Schulenberg <bens>
Group administrator
Sun 21 Jan 2018 10:31:32 AM UTC, comment #2: 

Thank you! I was going to add this if you didn't.

bind M-1 "^[r    ^M^[v  ^M" main

I added the above to replace spaces with tabs and it works great.

Brand Huntsman <brand>
Sat 20 Jan 2018 12:05:22 PM UTC, comment #1: 

Here is a first, rough patch.

(file #42984)

Benno Schulenberg <bens>
Group administrator
Fri 19 Jan 2018 10:30:00 AM UTC, original submission:  

(Original request was made by anonymous user: http://lists.gnu.org/archive/html/help-nano/2018-01/msg00010.html.)

It would be nice if one could do something like:

  bind F1 "fragment of text" main

so that pressing F1 would insert "fragment of text" (without the quotes) into the current buffer.  Things would be perfect if the string could also contain control characters, so that it is like a predefined macro.

Benno Schulenberg <bens>
Group administrator

 

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

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by brand (Posted a comment)
  • -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.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-03-09 bens Open/ClosedOpen Closed
    2018-02-04 bens StatusIn Progress Fixed
    2018-01-20 bens Attached File- Added 0001-input-allow-to-bind-a-key-to-a-string.patch, #42984
        StatusNone In Progress
        Assigned toNone bens

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code