Dario Bertini | 22 Jun 2012 02:16
Picon
Gravatar

bzr completion (and other vcs?)

Hi, I recently started to use fishfish... I'm a bzr user (but
obviously also an hg and git one) and I read a previous mail about it
(I cannot reply to it since I wasn't subscribed to the list at the
time)

>From the homepage, I assumed that the completion was done by reading
the man pages on the fly... by looking into it I found out that
actually there's the fish_update_completions builtin function to be
called manually

if you run it though, it'll create new completions for git: the
problem is, those completions don't work

out of curiosity, to see if it was feasible to adapt the mercurial
completions for bazaar, I found out about the make_vcs_completions in
the fishfish sources

first thing: if some programs are already known to be better served by
some other completions (like the ones for which the completions are
generated with such a script), shouldn't it be better if
fish_update_completions blacklisted git, hg, svn and such programs?

btw, I then tried to use make_vcs_completions to generate bzr
completions... but I got lots of errors like:

fish: path_get_path( 'bzr' )
bzr: ERROR: No help could be found for 'bzr'. Please use 'bzr help
topics' to obtain a list of topics.
fish: proc::read_try('bzr $argv; ')

(Continue reading)

David Frascone | 22 Jun 2012 06:33
Favicon
Gravatar

Re: bzr completion (and other vcs?)

I'd love to see some mercurial toys, like the git and bzr ones I've seen . . . maybe I'll hack something together if I find some time.

On Thu, Jun 21, 2012 at 6:16 PM, Dario Bertini <berdario-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Hi, I recently started to use fishfish... I'm a bzr user (but
obviously also an hg and git one) and I read a previous mail about it
(I cannot reply to it since I wasn't subscribed to the list at the
time)

>From the homepage, I assumed that the completion was done by reading
the man pages on the fly... by looking into it I found out that
actually there's the fish_update_completions builtin function to be
called manually

if you run it though, it'll create new completions for git: the
problem is, those completions don't work

out of curiosity, to see if it was feasible to adapt the mercurial
completions for bazaar, I found out about the make_vcs_completions in
the fishfish sources

first thing: if some programs are already known to be better served by
some other completions (like the ones for which the completions are
generated with such a script), shouldn't it be better if
fish_update_completions blacklisted git, hg, svn and such programs?

btw, I then tried to use make_vcs_completions to generate bzr
completions... but I got lots of errors like:

fish: path_get_path( 'bzr' )
bzr: ERROR: No help could be found for 'bzr'. Please use 'bzr help
topics' to obtain a list of topics.
fish: proc::read_try('bzr $argv; ')

I tried to run it with "fish -d 3" but I can't understand what is
going wrong... I also looked at the make_vcs_completions script
itself, by checking it step by step and adding echo statements, but I
got lost after line 100, when it seems that it's using a more-than-70
lines long string substitution (or at least, that unmatched single
quote seems to be doing that)

should make_vcs_completions be rewritten? (it's 2 years old)
what is the best approach to get some nice autocompletion for bzr?
other people interested out there?
should some of this be reported as an issue on github?

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fish-users mailing list
Fish-users-5NWGOfrQmncRDUWM+popnw@public.gmane.orgforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fish-users mailing list
Fish-users@...
https://lists.sourceforge.net/lists/listinfo/fish-users
Gour | 22 Jun 2012 08:09
X-Face
Gravatar

Re: bzr completion (and other vcs?)

On Fri, 22 Jun 2012 02:16:55 +0200
Dario Bertini <berdario@...> wrote:

> should make_vcs_completions be rewritten? (it's 2 years old)
> what is the best approach to get some nice autocompletion for bzr?

I tried to create 'em automatically, but used wrong script. :-(

> other people interested out there?

I'm interested for bzr completion, but these days simply do not have
time to take a look.

I know it is possible to do it by hand, but it's tedious work, so I'd
like to fix the script which is outdated.

Sincerely
Gour

-- 
In the material world, one who is unaffected by whatever good 
or evil he may obtain, neither praising it nor despising it, 
is firmly fixed in perfect knowledge.

http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fish-users mailing list
Fish-users@...
https://lists.sourceforge.net/lists/listinfo/fish-users

Gmane