Skip to content

No space after tab-completing a gh command in bash #671

Description

@mislav

Describe the bug

Bash shell completions should add a space after completing a command name.

Steps to reproduce the behavior

  1. If not already, set up completions according to gh help completion
  2. Type gh pr ch
  3. Press Tab

Expected vs actual behavior

The word ch expands to checkout without a space after, but I think users would prefer to have a space automatically added after the word so they can easily add an argument. For comparison, git com Tab expands to commit with a space added after.

Ref. spf13/cobra#371

Activity

  1. ShubhankarKG commented on Jun 11, 2020

    @ShubhankarKG
    Contributor

    It looks to me as this is a Mac-only issue, because the bash terminal in Ubuntu code completion works with a space.

    Screenshot from 2020-06-11 15-24-17
    As you can see, there is a space here.

  2. vilmibm commented on Sep 30, 2020

    @vilmibm
    Contributor

    @mislav is this still an issue? I'm also not able to reproduce this on my non-mac environment.

  3. mislav commented on Oct 1, 2020

    @mislav
    ContributorAuthor

    @vilmibm This is still an issue on mac.

  4. added
    priority-3Affects a small number of users or is largely cosmetic
    on Oct 1, 2020
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

    bugSomething isn't workingpriority-3Affects a small number of users or is largely cosmetic

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions