Skip to content

gh gist edit completion #2471

Description

@hholst80

I would like to see gh gist edit to support completion from available gists

The current workflow is to run two gh commands: gh gist list and then gh gist edit where the ID needs to be copy-pasted from the first command. If we could run gh gist edit <TAB> and get an inline list of gists to edit (sorted on recent) it would improve the workflow immensely, especially when mouse select and copy workflow is not available.

Activity

  1. hholst80 commented on Nov 25, 2020

    @hholst80
    Author

    workaround:

    alias gist='gh gist edit $(gh gist list | fzf --reverse | awk "{print \$1}")'
    
  2. rsteube commented on Nov 26, 2020

    @rsteube
    Contributor

    see #360

  3. added
    coreThis issue is not accepting PRs from outside contributors
    on Dec 7, 2020
  4. 0xdevalias commented on Sep 15, 2025

    @0xdevalias

    While it's not perfectly aligned to this issue, the following PR added support for showing a (limited) selection of gists to edit when none is provided:

    Which was a partial solution to this:

    And I just raised this issue about further refining it:

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

    coreThis issue is not accepting PRs from outside contributorsenhancementa request to improve CLIgh-gistrelating to the gh gist command

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions