Bug 500989 - RFE: enhancement for /etc/inputrc pageup, pagedown keys
Summary: RFE: enhancement for /etc/inputrc pageup, pagedown keys
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: setup
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Ondrej Vasik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-05-15 11:58 UTC by Stefan Assmann
Modified: 2009-05-20 12:35 UTC (History)
2 users (show)

Fixed In Version: setup-2.8.5-1.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-05-20 12:35:36 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Stefan Assmann 2009-05-15 11:58:31 UTC
Description of problem:
/etc/inputrc currently has the following default:
"\e[5~": beginning-of-history
"\e[6~": end-of-history
This maps beginning of bash history and end of bash history to the keys pageup, pagedown. 

I'd suggest to replace these with:
"\e[5~": history-search-backward
"\e[6~": history-search-forward
This maps history auto completion to pageup, pagedown keys. So what this does is, if you type the first few letters of an already typed commandline and press pageup (pagedown) the already started line will be auto completed with what is found in your bash history.

Reason for doing so:
Bash history has a backlog of 1000 commands, does somebody really wants to go all the way back 1000 commands and use the again frequently? Not so sure...
Instead make good use of these keys by using history completion.

Example:
# ls /etc/inputrc -alh
-rw-r--r--. 1 root root 801 2009-04-10 10:42 /etc/inputrc
... (lots of other command)
# ls /et<pageup>
will complete to
# ls /etc/inputrc -alh

Comment 1 Ondrej Vasik 2009-05-20 12:35:36 UTC
Ok, as it is default in Gentoo/OpenSuSe and suggested in Debian/Ubuntu, I'll change this that way in RAWHIDE - as this mapping is more useful than previous start/end of history. Changed in setup-2.8.5-1.fc12, closing RAWHIDE.


Note You need to log in before you can comment on or make changes to this bug.