[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] URL completion via 'svn ls' in bash_completion - call for advice - still buggy

From: Tim Connor <timocratic_at_gmail.com>
Date: 2007-03-23 03:06:58 CET

One of the fondest wishes of myself, and a number of devopers I know,
is to be able to tab complete subversion URLs. I started to implement
this in a ruby script, after being inspired by an autocompletion
script for rake, when I came across the whole bash_completion thing.

I haven't written more than 20 lines of shell script before, so I'm
more looking for advice, than proposing this as ready to include.
Down the road I'd like to add hostname completion from the auth
folder, ala the ssh @hostname style - but that will require parsing
how how that is handled, so definitely a future stage. Right now I
just have this completing if it's http://a-path-ending-in-a-slash/, as
a first step. Thoughts?

My first problem is how I get it to return the nice non-prepending
paths with multiple matchs, as it does now, but not kill my whole path
when there is only one. After that I'm guessing the next step would be
to do partial completions based on mapping against the ls results from
the parent folder? Any advice on how to proceed with those in bash?
Philosophical objects to the whole idea? other?

Tim Connor

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Fri Mar 23 03:07:11 2007

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.