zsh-users
 help / color / mirror / code / Atom feed
* Complete Filenames With Spaces...
@ 2000-01-12 16:38 Rafael Garcia
  2000-01-12 17:22 ` Francis GALIEGUE
  2000-01-12 17:26 ` Bart Schaefer
  0 siblings, 2 replies; 6+ messages in thread
From: Rafael Garcia @ 2000-01-12 16:38 UTC (permalink / raw)
  To: zsh-users


	Hi, first time writing to the list (just subscribed)...

	I would like to know if there is *any* way to make zsh complete
filenames that include spaces; that is, after a first completion up to a
"with-spaces" point pressing <tab> completes nothing, while pressing <tab>
if no spaces were in the previuos completion works perfectly.

	Thanks.

-- 
They have computers, and they may have other weapons of mass destruction. 
			- Janet Reno, US Attorney General, 02-27-98


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

* Re: Complete Filenames With Spaces...
  2000-01-12 16:38 Complete Filenames With Spaces Rafael Garcia
@ 2000-01-12 17:22 ` Francis GALIEGUE
  2000-01-12 18:36   ` Rafael Garcia
  2000-01-12 17:26 ` Bart Schaefer
  1 sibling, 1 reply; 6+ messages in thread
From: Francis GALIEGUE @ 2000-01-12 17:22 UTC (permalink / raw)
  To: zsh-users

Rafael Garcia <rgarcia@eurielec.etsit.upm.es> writes:

> 	Hi, first time writing to the list (just subscribed)...
> 
> 	I would like to know if there is *any* way to make zsh complete
> filenames that include spaces; that is, after a first completion up to a
> "with-spaces" point pressing <tab> completes nothing, while pressing <tab>
> if no spaces were in the previuos completion works perfectly.
> 
> 	Thanks.

The problem is that a space is an argument separator. What you suggest
is the Bad Way(tm). The Good Way(tm) is to isolate the space with a
backslash (as in a\ <TAB> which gives the expected result, a\ file) or
to use double quotes or single quotes ("a <TAB>, 'a <TAB>).

-- 
fg

# rm *;o
o: command not found


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

* Re: Complete Filenames With Spaces...
  2000-01-12 16:38 Complete Filenames With Spaces Rafael Garcia
  2000-01-12 17:22 ` Francis GALIEGUE
@ 2000-01-12 17:26 ` Bart Schaefer
  2000-01-12 18:32   ` Rafael Garcia
  1 sibling, 1 reply; 6+ messages in thread
From: Bart Schaefer @ 2000-01-12 17:26 UTC (permalink / raw)
  To: Rafael Garcia, zsh-users

On Jan 12,  5:38pm, Rafael Garcia wrote:
} Subject: Complete Filenames With Spaces...
}
} 	I would like to know if there is *any* way to make zsh complete
} filenames that include spaces; that is, after a first completion up to a
} "with-spaces" point pressing <tab> completes nothing, while pressing <tab>
} if no spaces were in the previuos completion works perfectly.

It'd help to know whether you're using zsh-3.1.6 or later, or zsh-3.0.7 or
before.  It'd also help to see "ls" output or the like showing the names
that you expect to be completed.

Completion of a file with a space in the name should look someting like
this, where <TAB> indicates the point at which the TAB key is pressed:

zagzig[22] ls A<TAB>
zagzig[22] ls Adair\ County\ Brochure.doc 
                                          ^cursor here

Or if the completion is ambiguous:

zagzig[22] ls H<TAB>
zagzig[22] ls Historic\ Weddings<TAB>
zagzig[22] ls Historic\ Weddings          
Historic\ Weddings\ page\ 2.doc   Historic\ Weddings.doc 

The latter behavior assumes you have "autolist" and "listambiguous" set,
which is the case by default in 3.1.6 but not in 3.0.7.

(For those of you wondering why I have documents about historic Adair
County weddings lying around on my disk, it has to do with the B&B that
my mother runs back in Iowa.)

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


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

* Re: Complete Filenames With Spaces...
  2000-01-12 17:26 ` Bart Schaefer
@ 2000-01-12 18:32   ` Rafael Garcia
  2000-01-13  8:45     ` Rafael Garcia
  0 siblings, 1 reply; 6+ messages in thread
From: Rafael Garcia @ 2000-01-12 18:32 UTC (permalink / raw)
  To: zsh-users

Wed, Jan 12, 2000 at 05:26:42PM +0000, Bart Schaefer escribió:

>It'd help to know whether you're using zsh-3.1.6 or later, or zsh-3.0.7 or
>before.  It'd also help to see "ls" output or the like showing the names
>that you expect to be completed.

mmmh, I'm using zsh-3.1.6, and supose this case:

% ls
Test File - Od.txt     Test File - Oddie.txt
  #That was Test<TAB>
% ls Test\ File\ -\ Od
  #                   ^ Cursor is Here
  # When hitting <TAB> again simply Nothing happens....
  # And of course autolist & listambiguous are set

I would like to see if it's my system's problem (well, I'm at the
University now) or it's a generic problem (I supose I'll test this tonight
at home).

-- 
They have computers, and they may have other weapons of mass destruction. 
			- Janet Reno, US Attorney General, 02-27-98


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

* Re: Complete Filenames With Spaces...
  2000-01-12 17:22 ` Francis GALIEGUE
@ 2000-01-12 18:36   ` Rafael Garcia
  0 siblings, 0 replies; 6+ messages in thread
From: Rafael Garcia @ 2000-01-12 18:36 UTC (permalink / raw)
  To: zsh-users

Wed, Jan 12, 2000 at 06:22:18PM +0100, Francis GALIEGUE escribió:

>
>The problem is that a space is an argument separator. What you suggest
>is the Bad Way(tm). The Good Way(tm) is to isolate the space with a
>backslash (as in a\ <TAB> which gives the expected result, a\ file) or
>to use double quotes or single quotes ("a <TAB>, 'a <TAB>).
>

	Well, of course (I think) i do it "The Good Way" but this works
only for the first completion... After that neither completion nor listing
is preformed.

	mmmh, I'd better tell this guys to use '_' instead of ' '.

-- 
They have computers, and they may have other weapons of mass destruction. 
			- Janet Reno, US Attorney General, 02-27-98


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

* Re: Complete Filenames With Spaces...
  2000-01-12 18:32   ` Rafael Garcia
@ 2000-01-13  8:45     ` Rafael Garcia
  0 siblings, 0 replies; 6+ messages in thread
From: Rafael Garcia @ 2000-01-13  8:45 UTC (permalink / raw)
  To: Rafael Garcia; +Cc: zsh-users

	Well, there's no problem now. It was caused by an incorrect built
(don't ask me why), I've tested it at home and here after re-building and
it's ok now.

	Thanks to every one that tryed to help :)))


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

end of thread, other threads:[~2000-01-13  8:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-01-12 16:38 Complete Filenames With Spaces Rafael Garcia
2000-01-12 17:22 ` Francis GALIEGUE
2000-01-12 18:36   ` Rafael Garcia
2000-01-12 17:26 ` Bart Schaefer
2000-01-12 18:32   ` Rafael Garcia
2000-01-13  8:45     ` Rafael Garcia

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