home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.bash.bug
- Path: sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!fergie.ATl.ge.COM!gthaker
- From: gthaker@fergie.ATl.ge.COM (Gautam H Thaker)
- Subject: file name completion and # of tabs it takes
- Message-ID: <9209091316.AA17858@fergie.ATL.GE.COM>
- Sender: gnulists@ai.mit.edu
- Organization: GNUs Not Usenet
- References: gthaker@fergie.ATl.ge.COM (Gautam H Thaker)
- Distribution: gnu
- Date: Wed, 9 Sep 1992 13:16:37 GMT
- Approved: bug-bash@prep.ai.mit.edu
- Lines: 35
-
- It would be very desirable if bash had the ability to customize how
- filename completion works with <tab> keys. (Tcsh allows very flexible
- customization.)
-
- In situations where bash can not complete to a unique name, it just
- beeps and sits there. Right away I hit a second <tab> and get the list
- of possible completions. I would like being able to have Bash do what
- it does after this second tab as soon as the first tab is hit. For years
- I have hacked readline.c on my own to achieve this, but I don't feel my
- hack is very general or elegant. Will bash have this feature in future?
-
- Aslo, tcsh has context sensitive completion, so that if one does
- printenv DIS<tab> it completes from the list of env. variables. Neat.
- Can bash have this too?
-
- Gautam H. Thaker (gthaker@atl.ge.com) 609-866-6412 (fax x6397. Dialcom 8-777)
- GE Adv. Tech. Lab.; Route 38, MS 145-2; Moorestown, NJ 08057. 767-4396 (home)
-
- In readline.c:
- /* If there are more matches, ring the bell to indicate.
- If this was the only match, and we are hacking files,
- check the file to see if it was a directory. If so,
- add a '/' to the name. If not, and we are at the end
- of the line, then add a space. */
- if (matches[1])
- {
- /* ding (); get rid of noise. /* There are other matches remaining. */
- rl_possible_completions(); /*GHT 8 May 90 v1.05, 28 May 91 v1.08 */
- }
- else
- {
- char temp_string[2];
-
-
-
-