zsh-workers
 help / color / mirror / code / Atom feed
From: Gabor <gabor@vmunix.com>
To: Bart Schaefer <schaefer@zanshin.com>
Cc: zsh-workers@sunsite.auc.dk
Subject: Re: filecompletion in ksh93 (fwd)
Date: Sat, 18 Dec 1999 20:41:15 -0500	[thread overview]
Message-ID: <19991218204115.A19493@vmunix.com> (raw)
In-Reply-To: <Pine.LNX.4.20.9912110844560.22513-100000@aztec.zanshin.com>; from schaefer@zanshin.com on Sat, Dec 11, 1999 at 09:03:10AM -0800

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@vmunix.com>
# Newsgroups: comp.unix.shell
# Subject: Re: filecompletion in ksh93
# 
# In comp.unix.shell, Dave Brown <dagbrown@home.com> wrote:
# # In article <82s1s9$cn5$1@avon.europe.sco.com>,
# # Ajay Matai <matai@bigfoot.com> 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
# }
# 
# 
# 
# 
# 


      reply	other threads:[~1999-12-19  1:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-11 17:03 Bart Schaefer
1999-12-19  1:41 ` Gabor [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19991218204115.A19493@vmunix.com \
    --to=gabor@vmunix.com \
    --cc=schaefer@zanshin.com \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).