patchThe GNU Bourne-Again SHell - Patches: patch #7634, Print keyboard macros

 
 

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

patch #7634: Print keyboard macros

Submitted by:  Mitchel Humpherys <mitch_feaster>
Submitted on:  Fri 14 Oct 2011 08:53:37 AM UTC  
 
Category: NonePriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open

Fri 14 Oct 2011 08:53:37 AM UTC, original submission:

I was wondering a while back if one could somehow "view the source" of a keyboard macro (much like M-x edit-kbd-macro in emacs). The ability to do so would make it easier to save handy macros in ~/.inputrc.

I asked around the internet (see http://superuser.com/questions/293799/is-there-any-way-to-save-a-keyboard-macro-in-bash) and didn't find anything, so I dug into the source code and added it :).

I basically tried to do the "inverse" of rl_translate_keyseq from bind.c.

Another note, I'm usually not this "goto-happy", I swear, but in this case I think it really results in a cleaner solution.

Let me know what you think.

Mitchel Humpherys <mitch_feaster>

 

Attached Files
file #24144:  0001-initial-whack-at-printing-keyboard-macros.patch added by mitch_feaster (5kB - text/x-patch - from git format-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mitch_feaster (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 14 Oct 2011 08:53:37 AM UTCmitch_feasterAttached File-=>Added 0001-initial-whack-at-printing-keyboard-macros.patch, #24144

    Back to the top


    Powered by Savane 3.1-cleanup