github / github/copilot-cli

Usability feature: Add `shell` (or similar) as a dedicated slash(/) command

Aberta
#3,261 1 comentário 0 reações 0 responsáveis Ver no GitHub
area:tools
Linguagem predominante
Shell
Estrelas
11.2k
Forks
1.9k
Merge médio
14h 16min
PRs com merge (30d)
6

Descrição

### Describe the feature or problem you'd like to solve

The CLI includes a special keyword `!` for executing shell commands, but this behavior is not discoverable or self documented. Unlike `/` commands, which are visible through autocomplete, `!` must be remembered by the user.

This creates a usability gap, especially for new or occasional users who may not know that shell execution exists or may forget how to access it.

### Proposed solution

Introduce a discoverable alternative such as a `/shell` command that behaves the same as `!`.

This command should appear in the `/` autocomplete list and clearly indicate that it allows shell execution. It could also include a short description or hint to explain its purpose.

### Example prompts or workflows

User types `/sh` and sees `/shell` in autocomplete
User selects `/shell` and enters shell execution mode, equivalent to using `!`
The CLI optionally shows a short hint such as “Run shell commands, same as `!`”

### Additional context

`/` commands are easy to find and use because they are discoverable through autocomplete. In contrast, the `!` keyword requires memorization, which makes it less accessible.

Adding a `/shell` command would improve discoverability, reduce the need to memorize special syntax, and create a more consistent user experience.

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

Comece localizando o ponto de entrada da CLI para a palavra-chave de shell `!` existente e a implementação do preenchimento automático do comando `/`. Adicione um comando `/shell` detectável com uma breve dica sobre execução de shell, preservando um comportamento equivalente a `!`; estará concluído quando `/sh` o sugerir e selecioná-lo entrar no modo de execução de shell.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
shell
Domínio
cli
Tipo de issue
Funcionalidade
Dificuldade
3/5
Tempo estimado
1-2 dias
Status de atividade
Pouca atividade
Clareza
Razoavelmente clara
Facilidade para iniciantes
55/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.