zsh-users
 help / color / mirror / code / Atom feed
* removing added completion space
@ 2014-12-03 18:57 zzapper
  2014-12-03 21:06 ` Bart Schaefer
  0 siblings, 1 reply; 5+ messages in thread
From: zzapper @ 2014-12-03 18:57 UTC (permalink / raw)
  To: zsh-users

Hi
Some time ago (Feb) I asked about a way to avoid the space added by 
completion which is such a nuisance when you need a 2 stage complete. SC 
provided a solution which I can no longer find but which went over my head.

any further thoughts?

-- 
zzapper
https://twitter.com/dailyzshtip

---
This email has been checked for viruses by Avast antivirus software.
http://www.avast.com



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

* Re: removing added completion space
  2014-12-03 18:57 removing added completion space zzapper
@ 2014-12-03 21:06 ` Bart Schaefer
  2014-12-03 22:12   ` zzapper
  0 siblings, 1 reply; 5+ messages in thread
From: Bart Schaefer @ 2014-12-03 21:06 UTC (permalink / raw)
  To: Zsh Users

On Wed, Dec 3, 2014 at 10:57 AM, zzapper <david@rayninfo.co.uk> wrote:
> Hi
> Some time ago (Feb) I asked about a way to avoid the space added by
> completion which is such a nuisance when you need a 2 stage complete. SC
> provided a solution which I can no longer find but which went over my head.

Not sure who SC, but Oliver's response was to provide a patch for
_expand_alias which has now been added to the sources, so if you have
5.0.7 you should be able to make use of it.

zstyle ':completion:expand-alias-word:*' add-space false

The doc for the add-space style needs updating to mention
_expand_alias along with _prefix.


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

* Re: removing added completion space
  2014-12-03 21:06 ` Bart Schaefer
@ 2014-12-03 22:12   ` zzapper
  2014-12-05 18:08     ` zzapper
  0 siblings, 1 reply; 5+ messages in thread
From: zzapper @ 2014-12-03 22:12 UTC (permalink / raw)
  To: zsh-users

Bart Schaefer <schaefer@brasslantern.com> wrote in
news:CAH+w=7aTV8LQWvVxNKDmFBnR6f4cvrkNSXiZvMdA44DGz_KyLw@mail.gmail.com: 

> 
> Not sure who SC, but Oliver's response was to provide a patch for
> _expand_alias which has now been added to the sources, so if you have
> 5.0.7 you should be able to make use of it.
> 
> zstyle ':completion:expand-alias-word:*' add-space false
> 
.
> 
Wow thanks! I still have 5.0.6 (cygwin) waiting for 5.0.7


-- 
zzapper
https://twitter.com/dailyzshtip

---
This email has been checked for viruses by Avast antivirus software.
http://www.avast.com



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

* Re: removing added completion space
  2014-12-03 22:12   ` zzapper
@ 2014-12-05 18:08     ` zzapper
  2014-12-06 18:22       ` Bart Schaefer
  0 siblings, 1 reply; 5+ messages in thread
From: zzapper @ 2014-12-05 18:08 UTC (permalink / raw)
  To: zsh-users

zzapper <david@rayninfo.co.uk> wrote in 
news:XnsA3F8E1DF64B75davidrayninfocouk@80.91.229.13:

> Bart Schaefer <schaefer@brasslantern.com> wrote in
> news:CAH+w=7aTV8LQWvVxNKDmFBnR6f4cvrkNSXiZvMdA44DGz_KyLw@mail.gmail.com: 
> 

what is the naked config (zsh -f) to test this (please)
as it is not working for me?



-- 
zzapper
https://twitter.com/dailyzshtip

---
This email has been checked for viruses by Avast antivirus software.
http://www.avast.com



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

* Re: removing added completion space
  2014-12-05 18:08     ` zzapper
@ 2014-12-06 18:22       ` Bart Schaefer
  0 siblings, 0 replies; 5+ messages in thread
From: Bart Schaefer @ 2014-12-06 18:22 UTC (permalink / raw)
  To: zsh-users

On Dec 5,  6:08pm, zzapper wrote:
}
} > Bart Schaefer <schaefer@brasslantern.com> wrote in
} > news:CAH+w=7aTV8LQWvVxNKDmFBnR6f4cvrkNSXiZvMdA44DGz_KyLw@mail.gmail.com: 
} 
} what is the naked config (zsh -f) to test this (please)
} as it is not working for me?

Perhaps you could repeat the example case where it's not working?  It may
just be that I gave you the wrong zstyle context.

I most recently suggested:

	zstyle ':completion:expand-alias-word:*' add-space false

This applies to the _expand_alias binding (default ^Xa).  Oliver's change
to enable that style was in response to this example from you:

	alias -g NF='*~vssver.scc(.om[1])'
	ls NF<TAB>
	completes to
	ls *~vssver.scc(.om[1]) <- trailing space

With a *minimal* setup ("zsh -f" plus "compinit -D") I get no completion
at all for global aliases on a TAB, so you must have some configuration
to get as far as the above?


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

end of thread, other threads:[~2014-12-06 18:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-03 18:57 removing added completion space zzapper
2014-12-03 21:06 ` Bart Schaefer
2014-12-03 22:12   ` zzapper
2014-12-05 18:08     ` zzapper
2014-12-06 18:22       ` 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).