[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnu-arch-users] tla bash completion
From: |
Jan Hudec |
Subject: |
Re: [Gnu-arch-users] tla bash completion |
Date: |
Thu, 28 Aug 2003 22:13:33 +0200 |
User-agent: |
Mutt/1.5.4i |
On Thu, Aug 28, 2003 at 18:54:49 +0200, Jonas Diemer wrote:
> Hi!
>
> I've looked at your tla completion scripts, I already have some
> suggestions:
>
> 1. As Jason McCarty pointed out, I would leave single letter options out
> of completion. I think his argumentation is logical. Plus there's no
> speed up for the user in completing one letter options.
>
> 2. Currently, the script only offers options once (if prev is a
> subcommand). It should, however, also offer options if prev is an option
> to a subcommand that doesn't take an argument (we know to complete).
> I've incorporated that in your version, ask me if you want the
> diff/patch/whatever.
What about a branch with your version ;-).
> In my implementation, I assumed that the first string after tla is
> always a subcommand (I needed to get the subcommand somehow), is this
> too "static"? It can be easily fixed (at some performance cost)...
That assumption is correct. If there is a command, it's the first
argument. If there is no subcommand, there is only one option, namely
on of: -h, -H, --help, -V or --version.
-------------------------------------------------------------------------------
Jan 'Bulb' Hudec
<address@hidden>
- [Gnu-arch-users] tla bash completion, Jonas Diemer, 2003/08/28
- Re: [Gnu-arch-users] tla bash completion, Jan Hudec, 2003/08/28
- Re: [Gnu-arch-users] tla bash completion, Robert Anderson, 2003/08/28
- Re: [Gnu-arch-users] tla bash completion, Jonas Diemer, 2003/08/28
- Re: [Gnu-arch-users] tla bash completion, Jonas Diemer, 2003/08/28
- Re: [Gnu-arch-users] tla bash completion,
Jan Hudec <=
- Re: [Gnu-arch-users] tla bash completion, Jonas Diemer, 2003/08/28
- a contrib directory (was Re: [Gnu-arch-users] tla bash completion), Tom Lord, 2003/08/28
- [Gnu-arch-users] Re: a contrib directory, Tez Kamihira, 2003/08/28
- Re: [Gnu-arch-users] Re: a contrib directory, Tom Lord, 2003/08/28
- Re: [Gnu-arch-users] Re: a contrib directory, Jan Hudec, 2003/08/29
- Re: [Gnu-arch-users] Re: a contrib directory, Harald Meland, 2003/08/29
- Re: [Gnu-arch-users] Re: a contrib directory, Jonas Diemer, 2003/08/29
- Re: [Gnu-arch-users] Re: a contrib directory, Alexander Deruwe, 2003/08/29
- Re: [Gnu-arch-users] Re: a contrib directory, Tom Lord, 2003/08/29
- Re: [Gnu-arch-users] Re: a contrib directory, Alexander Deruwe, 2003/08/29