Skip to content

bug: inconsistent completion for file subcommand #562

Description

@fsiraj

I use the following command very often Codediff file {file1} {file2}. The issue is the command line tab completion for file1 does not work but it does work for file2. Looking at the following snippet I think I can see why:

app:subcommand(ap.Command.new("file"):arg(Arg.new("a"):completor(complete_revisions)):arg(Arg.new("b"):completor(complete_files)):handler(function(m)

It looks like argument a gets completions for revisions while b gets files. This is likely because of the Codediff file {rev} version of the command. I wonder if argument a can get both forms of completion? It just feels awkward when you only get completions for half the command when comparing two file paths.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type/BugSomething isn't working correctly

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions