Do

Autocomplete command arguments

Bug #493933 reported by Jakob Malm
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Do
New
Wishlist
Unassigned

Bug Description

In a terminal, some commands have autocompletion for arguments (e.g. apt-get i<tab> autocompletes to apt-get install, and it can also autocomplete package names). It would be really nice if this could also be built into Gnome-Do. Together with indexing commands in the PATH, of course...

Revision history for this message
JoE (joehillen) wrote : Re: [Bug 493933] [NEW] Autocomplete command arguments

Auto-completion isn't really how Do works, filtering to the most commonly
used/closest result is fine for what Do is for.

As for indexing the PATH, this would not be difficult except it would add
another 3000+ items to Do, and I'm concerned it would slow Do down too much.
A PATH plugin is in my list of plugins to write. When I get to it, I will
post it and let you try it out.

On Tue, Dec 8, 2009 at 7:35 AM, Jakob Malm <email address hidden> wrote:

> Public bug reported:
>
> In a terminal, some commands have autocompletion for arguments (e.g.
> apt-get i<tab> autocompletes to apt-get install, and it can also
> autocomplete package names). It would be really nice if this could also
> be built into Gnome-Do. Together with indexing commands in the PATH, of
> course...
>
> ** Affects: do
> Importance: Undecided
> Status: New
>
> --
> Autocomplete command arguments
> https://bugs.launchpad.net/bugs/493933
> You received this bug notification because you are subscribed to GNOME
> Do.
>
> Status in GNOME Do: New
>
> Bug description:
> In a terminal, some commands have autocompletion for arguments (e.g.
> apt-get i<tab> autocompletes to apt-get install, and it can also
> autocomplete package names). It would be really nice if this could also be
> built into Gnome-Do. Together with indexing commands in the PATH, of
> course...
>
>
>

Revision history for this message
Robert Dyer (psybers) wrote :

I read this request more as you type in a path to launch a custom command and then have auto-completion on the arguments.

Changed in do:
importance: Undecided → Wishlist
Revision history for this message
JoE (joehillen) wrote : Re: [Bug 493933] Re: Autocomplete command arguments

I was thinking the arguments could be modifier items that are created and
indexed as you use them. For example, you select the command, hit <TAB>, and
enter the text for the arguments. Then next time you use the command, that
argument is listed as one of the modifier items.

On Tue, Dec 8, 2009 at 1:21 PM, Robert Dyer <email address hidden> wrote:

> I read this request more as you type in a path to launch a custom
> command and then have auto-completion on the arguments.
>
> ** Changed in: do
> Importance: Undecided => Wishlist
>
> --
> Autocomplete command arguments
> https://bugs.launchpad.net/bugs/493933
> You received this bug notification because you are subscribed to GNOME
> Do.
>
> Status in GNOME Do: New
>
> Bug description:
> In a terminal, some commands have autocompletion for arguments (e.g.
> apt-get i<tab> autocompletes to apt-get install, and it can also
> autocomplete package names). It would be really nice if this could also be
> built into Gnome-Do. Together with indexing commands in the PATH, of
> course...
>
>
>

Revision history for this message
Jakob Malm (malmjakob) wrote :

JoE and Robert, I think both of your ideas are good. Actually, JoE's is the
one that best fits what I wanted to be able to do initially, but I think
Robert's fills a different need.

Thanks for picking this up!
Jakob

2009/12/9 JoE <email address hidden>

> I was thinking the arguments could be modifier items that are created and
> indexed as you use them. For example, you select the command, hit <TAB>,
> and
> enter the text for the arguments. Then next time you use the command, that
> argument is listed as one of the modifier items.
>
> On Tue, Dec 8, 2009 at 1:21 PM, Robert Dyer <email address hidden> wrote:
>
> > I read this request more as you type in a path to launch a custom
> > command and then have auto-completion on the arguments.
> >
> > ** Changed in: do
> > Importance: Undecided => Wishlist
> >
> > --
> > Autocomplete command arguments
> > https://bugs.launchpad.net/bugs/493933
> > You received this bug notification because you are subscribed to GNOME
> > Do.
> >
> > Status in GNOME Do: New
> >
> > Bug description:
> > In a terminal, some commands have autocompletion for arguments (e.g.
> > apt-get i<tab> autocompletes to apt-get install, and it can also
> > autocomplete package names). It would be really nice if this could also
> be
> > built into Gnome-Do. Together with indexing commands in the PATH, of
> > course...
> >
> >
> >
>
> --
> Autocomplete command arguments
> https://bugs.launchpad.net/bugs/493933
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
JoE (joehillen) wrote :

In the mean time, have you tried entering text and choosing "Run" or "Run in
Terminal"? You can also use the alias plugin to save your frequently used
commands

On Wed, Dec 9, 2009 at 12:37 PM, Jakob Malm <email address hidden> wrote:

> JoE and Robert, I think both of your ideas are good. Actually, JoE's is the
> one that best fits what I wanted to be able to do initially, but I think
> Robert's fills a different need.
>
> Thanks for picking this up!
> Jakob
>
> 2009/12/9 JoE <email address hidden>
>
> > I was thinking the arguments could be modifier items that are created and
> > indexed as you use them. For example, you select the command, hit <TAB>,
> > and
> > enter the text for the arguments. Then next time you use the command,
> that
> > argument is listed as one of the modifier items.
> >
> > On Tue, Dec 8, 2009 at 1:21 PM, Robert Dyer <email address hidden> wrote:
> >
> > > I read this request more as you type in a path to launch a custom
> > > command and then have auto-completion on the arguments.
> > >
> > > ** Changed in: do
> > > Importance: Undecided => Wishlist
> > >
> > > --
> > > Autocomplete command arguments
> > > https://bugs.launchpad.net/bugs/493933
> > > You received this bug notification because you are subscribed to GNOME
> > > Do.
> > >
> > > Status in GNOME Do: New
> > >
> > > Bug description:
> > > In a terminal, some commands have autocompletion for arguments (e.g.
> > > apt-get i<tab> autocompletes to apt-get install, and it can also
> > > autocomplete package names). It would be really nice if this could also
> > be
> > > built into Gnome-Do. Together with indexing commands in the PATH, of
> > > course...
> > >
> > >
> > >
> >
> > --
> > Autocomplete command arguments
> > https://bugs.launchpad.net/bugs/493933
> > You received this bug notification because you are a direct subscriber
> > of the bug.
> >
>
> --
> Autocomplete command arguments
> https://bugs.launchpad.net/bugs/493933
> You received this bug notification because you are subscribed to GNOME
> Do.
>
> Status in GNOME Do: New
>
> Bug description:
> In a terminal, some commands have autocompletion for arguments (e.g.
> apt-get i<tab> autocompletes to apt-get install, and it can also
> autocomplete package names). It would be really nice if this could also be
> built into Gnome-Do. Together with indexing commands in the PATH, of
> course...
>
>
>

Revision history for this message
Jr (evandrojr) wrote :

My xubuntu 16.04 beta 2 has problems with autocomplete for apt-get install and aptitude install. None of them are working.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.