zsh-users
 help / color / mirror / code / Atom feed
From: Adam Spiers <adam@thelonious.new.ox.ac.uk>
To: zsh users mailing list <zsh-users@math.gatech.edu>
Subject: simulation of dabbrev-expand
Date: Thu, 9 Sep 1999 13:39:13 +0100	[thread overview]
Message-ID: <19990909133913.A30055@thelonious.new.ox.ac.uk> (raw)

I still haven't successfully got 3.1.6-pws-* simulating
dabbrev-expand.  I'm using:

_history_complete_word () {
  local expl

  compstate[list]=
  compstate[insert]=menu

  _description -V expl 'history word'
#  compgen "$expl[@]" -Q -H 0 ''
  compgen -V 'history words' -Q -H 0 ''
}

zle -C _reverse_history_complete_word reverse-menu-complete _history_complete_word
bindkey '^[,' _reverse_history_complete_word

(I previously tried bindkey '^[,' reverse-menu-complete, but the
problem isn't with the reversing; see below)

It appears to always work fine when grabbing words from history added
by the current shell, but either doesn't work at all, or very
unreliably when you want to grab a word from the saved history.  This
is driving me up the wall, because dabbrev-expand is one of the
features I use most!  I'd be very grateful if someone can show what
I'm doing wrong.

Adam

P.S. Sorry for the pathetically lame preexec post.  I've read the
manual over so many times, I was /sure/ that I would have noticed a
preexec feature if it had existed.  Serves me right for not checking :-(


             reply	other threads:[~1999-09-09 12:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-09-09 12:39 Adam Spiers [this message]
     [not found] ` <990909171104.ZM15814@candle.brasslantern.com>
1999-09-16 16:34   ` Adam Spiers

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=19990909133913.A30055@thelonious.new.ox.ac.uk \
    --to=adam@thelonious.new.ox.ac.uk \
    --cc=adam@spiers.net \
    --cc=zsh-users@math.gatech.edu \
    /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).