zsh-workers
 help / color / mirror / code / Atom feed
* _multi_parts -f doesn’t seem to have any effect
@ 2010-11-13 15:07 Nikolai Weibull
  2010-11-13 15:53 ` ( Text in unknown character set UTF-8 not shown ) Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Nikolai Weibull @ 2010-11-13 15:07 UTC (permalink / raw)
  To: Zsh Workers

_multi_parts -f doesn’t seem to have any effect.  At least note the
one I care about, which is to apply colors to different file types.
Is this a known issue?


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

* Re: ( Text in unknown character set UTF-8 not shown )
  2010-11-13 15:07 _multi_parts -f doesn’t seem to have any effect Nikolai Weibull
@ 2010-11-13 15:53 ` Bart Schaefer
  2010-11-13 16:09   ` _multi_parts -f doesn't seem to have any effect Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Bart Schaefer @ 2010-11-13 15:53 UTC (permalink / raw)
  To: Zsh Workers

On Nov 13,  4:07pm, Nikolai Weibull wrote:
}
} _multi_parts -f doesn't seem to have any effect.  At least note the
} one I care about, which is to apply colors to different file types.
} Is this a known issue?

It defintely passes -f through to compadd, so you're going to have to
be a bit more specific.  However, there are likely to be two combined
effects at work here.

(1) File type coloring is applied only to files that can be examined
with stat(2), unless you have some pattern-match colorings defined.

(2) _multi_parts treats each "component" of the string it breaks up as
an independent match, so it passes the prefix from the line to compadd
using -P rather than -W.

The result is that _multi_parts can only apply file coloring in cases
where there is no path prefix, i.e., files in the current directory.

Which, IIRC, is why _path_files exists in the first place.


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

* Re: _multi_parts -f doesn't seem to have any effect
  2010-11-13 15:53 ` ( Text in unknown character set UTF-8 not shown ) Bart Schaefer
@ 2010-11-13 16:09   ` Bart Schaefer
  0 siblings, 0 replies; 3+ messages in thread
From: Bart Schaefer @ 2010-11-13 16:09 UTC (permalink / raw)
  To: Zsh Workers

On Nov 13,  7:53am, Bart Schaefer wrote:
} Subject: Re: ( Text in unknown character set UTF-8 not shown )

Sorry about that.  Really old mail client on this machine.


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

end of thread, other threads:[~2010-11-13 16:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-13 15:07 _multi_parts -f doesn’t seem to have any effect Nikolai Weibull
2010-11-13 15:53 ` ( Text in unknown character set UTF-8 not shown ) Bart Schaefer
2010-11-13 16:09   ` _multi_parts -f doesn't seem to have any effect 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).