Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: filecompletion in ksh93 (fwd)
- X-seq: zsh-workers 9111
- From: Gabor <gabor@xxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxx>
- Subject: Re: filecompletion in ksh93 (fwd)
- Date: Sat, 18 Dec 1999 20:41:15 -0500
- Cc: zsh-workers@xxxxxxxxxxxxxx
- In-reply-to: <Pine.LNX.4.20.9912110844560.22513-100000@xxxxxxxxxxxxxxxxx>; from schaefer@xxxxxxxxxxx on Sat, Dec 11, 1999 at 09:03:10AM -0800
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <Pine.LNX.4.20.9912110844560.22513-100000@xxxxxxxxxxxxxxxxx>
On Sat, Dec 11, 1999 at 09:03:10AM -0800, Bart Schaefer wrote:
# This is interesting; I haven't seen a recent ksh manual. Looks like ksh
# can do "widgets" too, after a fashion. Use of "trap" on a magic KEYBD
# signal to invoke the function is kinda cutesy.
I am surprised more people don't know about this. It was one of the
first nifty things I learned in ksh93. :) But what's the best is that
people make statements about things which they know nothing about.
Like that it cannot be done, even though they don't use ksh93. I love
that.
# ---------- Forwarded message ----------
# Date: 11 Dec 1999 09:33:05 -0500
# From: Gabor <gabor@xxxxxxxxxx>
# Newsgroups: comp.unix.shell
# Subject: Re: filecompletion in ksh93
#
# In comp.unix.shell, Dave Brown <dagbrown@xxxxxxxx> wrote:
# # In article <82s1s9$cn5$1@xxxxxxxxxxxxxxxxxxx>,
# # Ajay Matai <matai@xxxxxxxxxxx> wrote:
# # : How to make tab work as filename completion in ksh?
# #
# # You can't. You have to type awkward, nonintuitive characters
#
# Wrong. You can. There might be better solutions than mine here. This one
# works in vi mode, and the next one in emacs.
#
# function vi_tab
# {
# # what looks like a space on the next line is a physical tab
# if [[ ${.sh.edmode} == "" && ${.sh.edchar} == " " ]] then
# .sh.edchar="\\"
# elif [[ ${.sh.edmode} != "" && ${.sh.edchar} == "=" ]] then
# .sh.edchar="=a"
# fi
# }
#
# trap 'vi_tab' KEYBD
#
# function emacs_tab
# {
# # what looks like a space on the next line is a physical tab
# if [[ ${.sh.edchar} == " " ]] then
# .sh.edchar=""
# fi
# }
#
#
#
#
#
Messages sorted by:
Reverse Date,
Date,
Thread,
Author