zsh-users
 help / color / mirror / code / Atom feed
* Re: 2 questions
@ 2000-04-19 14:25 Sven Wischnowsky
  0 siblings, 0 replies; 5+ messages in thread
From: Sven Wischnowsky @ 2000-04-19 14:25 UTC (permalink / raw)
  To: zsh-users


Jason Price wrote:

> ...
> 
> This is not exactly what I want.  I'd rather have menu complete when it's
> non unique, defaulting to the first option, and allowing tab'ing or
> arrowing through the list.  New completion setup is as follows:
> 
> ...
> 
> zstyle ':completion:*' menu select=200

Apart from what Oliver already said...

If you want tabbing through the matches you can either `setopt menucomplete'
or use

  zstyle ':completion:*' menu yes

if you want arrowing, use:

  zstyle ':completion:*' menu yes select

Using `select=200' is a bit weird, giving you selection only for
rather longish lists -- and exactly that combination doesn't work in
dev-22 (if the list doesn't fit on the screen). The CVS has some new
code for that.


Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 5+ messages in thread
* 2 questions
@ 2000-04-18 18:24 Jason Price
  2000-04-18 20:52 ` Oliver Kiddle
  0 siblings, 1 reply; 5+ messages in thread
From: Jason Price @ 2000-04-18 18:24 UTC (permalink / raw)
  To: zsh-users

I'm trying to get a couple of things to work.  Unfortunatly, I'm pretty
sure both are simple... :(.  I just can't figure it out.

1)  I'm trying to do a simple string match in an if statement, akin to how
one is done in a case statement.  Something like...:

case $var in
   patern1* ) ;;
   patern2* ) ;;
esac

if [[ "$var" in "patern1*" ]]; then
fi

I could do this in a case statement, but when you just have one if
condition...


2) I'm playing with dev-22, and trying to get things to work nice.
Currently, across all completion, should I hit <tab>, all matches are
printed onto the command line.  Aka:

->ls
bin/             newcomplete.ps   pc@              prompt
file             nsmail/          programs/


->ls p<tab>

->ls pc programs prompt
pc@        prompt

programs:
bind/      gtar/      netscape/  vim/
gnu/       ncftp/     ssh/       zsh/


->ta<tab>

->ta tabs tail talk talkback tapes tapetool tar targs


->cd programs/g<tab>

->cd programs/gnu programs/gtar/


This is not exactly what I want.  I'd rather have menu complete when it's
non unique, defaulting to the first option, and allowing tab'ing or
arrowing through the list.  New completion setup is as follows:

# The following lines were added by compinstall
autoload -U compinit
compinit
[[ -z $fpath[(r)$_compdir] ]] && fpath=($fpath $_1ompdir)

zstyle ':completion:*' completer _expand _complete _correct _approximate
zstyle ':completion:*' completions 1
zstyle ':completion:*' glob 0
zstyle ':completion:*' ignore-parents parent pwd
zstyle ':completion:*' matcher-list '' 'r:|[._-]=* r:|=*' 'm:{a-zA-Z}={A-Za-z}'
zstyle ':completion:*' max-errors 1
zstyle ':completion:*' menu select=200
zstyle ':completion:*' squeeze-slashes true
zstyle ':completion:*' substitute 0
zstyle ':completion:*' use-compctl false
zstyle ':completion:*' verbose false
# End of lines added by compinstall


Any pointers would be greatly appreciated.  If you need any more info,
please let me know.

Jason

-- 
Faith is not a matter of questions.      Jason Price
Faith is a matter of answers.            jprice@gatech.edu
More to the point, one answer:           Theta Xi, Beta Alpha, 449
"Yes, Lord."


^ permalink raw reply	[flat|nested] 5+ messages in thread
* 2 questions
@ 1995-10-31 16:13 Jose Unpingco
  1995-11-01  8:46 ` P.Stephenson
  0 siblings, 1 reply; 5+ messages in thread
From: Jose Unpingco @ 1995-10-31 16:13 UTC (permalink / raw)
  To: zsh-users


1.) is it possible to assign standard output and/or standard error
from a job to a device after it has been put in the background.

  For example, 
    % find . -name '*mat' -print &
  then do something like
    % %1 > /dev/null

2.) why is it that when I do history -f, I get dates and times that refer to
the latest login and not to the date and time of command execution in the
history.

For example,

  105  10/21/1995 09:44  cd News <--- this command was run 10/20 not 10/21
  106  10/21/1995 09:44  mail -f z <-- this is correct

thanks.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2000-04-19 14:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-04-19 14:25 2 questions Sven Wischnowsky
  -- strict thread matches above, loose matches on Subject: below --
2000-04-18 18:24 Jason Price
2000-04-18 20:52 ` Oliver Kiddle
1995-10-31 16:13 Jose Unpingco
1995-11-01  8:46 ` P.Stephenson

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).