boothj5/profanity — pull request #474 by andrewgho (2014-12-31 06:52:25+00:00)
Title: Add readline-style keybindings

This commit adds a common subset of readline style keybindings, as requested in issue #216 and issue #460, which should satisfy most users used to the Unix command line (or Unix clients like `irssi`). It implements the following new bindings:

Profanity Default | Readline Style Equivalent | Readline Command
----------------- | ---------------------------- | -------------------
Del | Ctrl+D | `delete-char`
← | Ctrl+B | `backward-char`
→ | Ctrl+F | `forward-char`
↑ | Ctrl+P | `previous-history`
↓ | Ctrl+N | `next-history`
Home | Ctrl+A | `beginning-of-line`
End | Ctrl+E | `end-of-line`
| Ctrl+U | `unix-line-discard`

Very experienced readline users may also miss Meta+B and Meta+F for `backward-word` and `forward-word`, and Ctrl+K for `kill-line`, but, I think the above will be enough to make most Unix junkies happy.