zsh-workers
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>,
	zsh-workers@sunsite.auc.dk
Subject: Re: PATCH: predict-on: suppress long listings
Date: Wed, 27 Oct 1999 15:51:34 +0000	[thread overview]
Message-ID: <991027155134.ZM3621@candle.brasslantern.com> (raw)
In-Reply-To: <199910271403.QAA16743@beta.informatik.hu-berlin.de>

On Oct 27,  4:03pm, Sven Wischnowsky wrote:
} Subject: Re: PATCH: predict-on: suppress long listings
}
} May I pour some compconfig over this?

Sure!  I've been hoping you'd get interested.

} Also, this didn't really work together with AUTO_MENU, it started that 
} too early (if it had just attempted completion). For now I've unset it 
} in predict-on and restore it in predict-off, but there must be a
} better solution.

There is -- just unset it inside insert-and-predict and let localoptions
restore it when that exits.  Does that not work?  I'm not sure how to
reproduce exactly the behavior you don't like, so I can't tell.

} Also, with a global match spec with partial-word stuff, the behavior
} of always returning to the previous cursor position was clearly
} wrong.

Ah, yes.  It also does odd things with certain characters, like if you
type $! you end up with $\! with the cursor on the backslash.  Probably
it should search rightwards until it finds the character you typed and
stay there, going back again if it doesn't find that character.

There's one other annoying thing if you can think of how to fix it.
Example:

zagzig% setopt automenu			<-- type this and hit return
zagzig% se				<-- then type this
zagzig% setopt automenu			<-- history-searches to this

Now you have "setopt automenu" on the command line with the cursor on
the "t".  If you press TAB, you get this:

zagzig% setopt  automenu		<-- note two spaces

with cursor on the second space.  I don't want it to insert the space
after the completion when there already is a space on the line!

} I hope all this isn't completely the kind of stuff you didn't want to
} have in predict-on...

No problem.  BTW, the keys I chose to bind this to are `^X/' (on) and
`^X.' (off).  Those are pretty obscure things in emacs (I'd never used
them) and unused by default in zsh.  I originally had it on ^X^R and
^X^T but one of the other completion widgets wants ^X^R.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com


  reply	other threads:[~1999-10-27 15:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-10-27 14:03 Sven Wischnowsky
1999-10-27 15:51 ` Bart Schaefer [this message]
1999-10-27 16:10 ` Bart Schaefer
1999-10-27 16:15 ` Bart Schaefer
  -- strict thread matches above, loose matches on Subject: below --
1999-11-03  8:11 Sven Wischnowsky
1999-10-28  8:03 Sven Wischnowsky
1999-11-02 19:05 ` Bart Schaefer
1999-10-26 16:08 Bart Schaefer

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=991027155134.ZM3621@candle.brasslantern.com \
    --to=schaefer@candle.brasslantern.com \
    --cc=wischnow@informatik.hu-berlin.de \
    --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).