* Re: Few newbie questions..
[not found] <1010818032514.ZM14858@candle.brasslantern.com>
@ 2001-08-18 22:00 ` Peter Stephenson
2001-08-18 22:14 ` Bart Schaefer
0 siblings, 1 reply; 4+ messages in thread
From: Peter Stephenson @ 2001-08-18 22:00 UTC (permalink / raw)
To: Zsh hackers list
Bart wrote:
> Edit ~/zshfuncs/_man to change the _man_pages helper function
Probably _man_pages and a few others should get the treatment meted out
to helper functions in _cvs, namely defining the function only if
$functions[_man_pages] is not defined. That would save all the copying
of unnecessary bits.
By the way, I'll be away for a week from tomorrow since, unfortunately,
I have to go to a meeting on the French Rieviera. (I shall also be away
for the week two weeks after that.)
--
Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
Work: pws@csr.com
Web: http://www.pwstephenson.fsnet.co.uk
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Few newbie questions..
2001-08-18 22:00 ` Few newbie questions Peter Stephenson
@ 2001-08-18 22:14 ` Bart Schaefer
0 siblings, 0 replies; 4+ messages in thread
From: Bart Schaefer @ 2001-08-18 22:14 UTC (permalink / raw)
To: zsh-workers
On Aug 18, 11:00pm, Peter Stephenson wrote:
}
} Probably _man_pages and a few others should get the treatment meted out
} to helper functions in _cvs, namely defining the function only if
} $functions[_man_pages] is not defined.
Actually, I don't like the treatment of the functions in _cvs. It makes
it very difficult to reload the entire file, which I have occasionally
wanted to do.
If there were a simple way to un-function all the functions that are
defined in a particular file, that would be another matter.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Few newbie questions..
[not found] ` <1010821063843.ZM20952@candle.brasslantern.com>
@ 2001-08-21 17:58 ` Bart Schaefer
0 siblings, 0 replies; 4+ messages in thread
From: Bart Schaefer @ 2001-08-21 17:58 UTC (permalink / raw)
To: zsh-workers
On Aug 21, I wrote:
}
} Index: Completion/Unix/Command/_man
} + if [[ $sect = (<->*|1M|l|n) || $sect = \((*\|*)\) ]]; then
I just noticed that this means that
zsh% man l<TAB>
won't complete what you expect, because it tries to complete manual pages
in section `l' that begin with `l'. (This is not new with my patch.)
This means we should do something different when CURRENT==2, but I'm not
sure exactly what. The easiest change is probably to replace
+ else
+ sect=$words[2]
with
+ elif ((CURRENT > 2))
+ sect=$words[2]
but perhaps we should actually offer to complete section numbers?
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Few newbie questions..
[not found] ` <20010820124341.86411.qmail@web20308.mail.yahoo.com>
@ 2001-08-20 12:57 ` Sven Wischnowsky
0 siblings, 0 replies; 4+ messages in thread
From: Sven Wischnowsky @ 2001-08-20 12:57 UTC (permalink / raw)
To: zsh-workers
Jukka Lehti wrote:
> Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
> wrote:
>
> Hi Sven,
>
> > > > } How I can make zsh3 add slash when doing:
> > > > } cd ..[TAB]? bash does this automatically and
> > > > compctl -g '*(/)' + -x 'S[..]' -k '(..)' -qS/ --
> > cd
> > >
> > > Hmm, it seems that cd ../..<TAB> doesn't work. I
> > can't
> > > figure out why?
> >
> > Replace the above with:
> >
> > compctl -g "*(-/) .." cd
>
> Uh, otherwise good but "cd .d<TAB>" does not work (I
> have dir .ddd). My original rule was:
>
> compctl -g '*(-/)' + -g '*(D-/)' cd
>
> which is also disturbed after that change. :-o
Make it
compctl -g '*(-/)' + -g '*(D-/) ..' cd
then.
Bye
Sven
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-08-21 17:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <1010818032514.ZM14858@candle.brasslantern.com>
2001-08-18 22:00 ` Few newbie questions Peter Stephenson
2001-08-18 22:14 ` Bart Schaefer
[not found] <15233.40.773348.613660@gargle.gargle.HOWL>
[not found] ` <20010820124341.86411.qmail@web20308.mail.yahoo.com>
2001-08-20 12:57 ` Sven Wischnowsky
[not found] <001501c12a0a$564ed110$21c9ca95@mow.siemens.ru>
[not found] ` <1010821063843.ZM20952@candle.brasslantern.com>
2001-08-21 17:58 ` Bart Schaefer
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).