[quake3-bugzilla] [Bug 4671] New: Add more readline bindings to the console
bugzilla-daemon at icculus.org
bugzilla-daemon at icculus.org
Tue Oct 19 02:22:49 EDT 2010
http://bugzilla.icculus.org/show_bug.cgi?id=4671
Summary: Add more readline bindings to the console
Product: ioquake3
Version: SVN HEAD
Platform: All
OS/Version: All
Status: ASSIGNED
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 |ASSIGNED
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:22:47 EDT ---
This is kind of awesome, I'll look at it again later.
--
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