[quake3-bugzilla] [Bug 4672] New: readline bindings

bugzilla-daemon at icculus.org bugzilla-daemon at icculus.org
Tue Oct 19 02:23:36 EDT 2010


http://bugzilla.icculus.org/show_bug.cgi?id=4672

           Summary: readline bindings
           Product: ioquake3
           Version: SVN HEAD
          Platform: All
        OS/Version: All
            Status: RESOLVED
          Severity: enhancement
          Priority: P3
         Component: Misc
        AssignedTo: zakk at icculus.org
        ReportedBy: q3urt.undead at gmail.com
         QAContact: quake3-bugzilla at icculus.org


Zachary J. Slater <zakk at icculus.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE

This is against the latest SVN.  It adds more readline bindings
because I always hit ctrl+k :)

http://pastebin.com/YGLeNDQ3


It adds the following bindings:

ctrl+k  = kill from current point to the end of the line
ctrl+u  = kill from current point to the beginning of the line
alt+b   = go backward a word (here I took the liberty of defining a
word as non-space because the Emacs definition will be confusing to
non-Emacs users)
alt+f    = go forward a word (same definition of a word)
ctrl+d  = delete a character
alt+u   = uppercase a word
alt+l    = lowercase a word
alt+c   = capitalize the first letter and lowercase the rest of the word
ctrl+del = backward kill a word
ctrl+y   = yank from the kill ring
ctrl+t   = transpose characters
alt+d   = forward kill a word

The kill ring has a depth of one.   Hey, it's better than nothing.  I
would also like to add ctrl+< and ctrl+> to go to the beginning/end of
the history.  It should also add a history item for the current text
when you hit up in case you ever want to go back to the partial.  It
would be really nice to add Emacs style undo/redo support.

This adds a lot of what is in libreadline but not everything.  I'm not
going to touch recording/playing back macros.  It's unfortunate that
Escape is already so integrated because I keep hitting escape since
I'm used to that in Emacs.

Anyway, hope someone out there enjoys.  I added a number of OpenBSD
implementations like strlcpy() and strlcat() instead of the ioquake3
written versions.  I had to revert a number of changes because lcc
barfed on the OpenBSD implementations even though gcc had no problem.

--- Comment #1 from Zachary J. Slater <zakk at icculus.org> 2010-10-19 02:23:35 EDT ---
you sure do look familiar

*** This bug has been marked as a duplicate of bug 4671 ***

-- 
Configure bugmail: http://bugzilla.icculus.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the quake3-bugzilla mailing list