github / github/copilot-cli

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

Offen
#3,261 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area:tools
Vorherrschende Sprache
Shell
Sterne
11.2k
Forks
1.9k
Ø Merge
14 Std. 16 Min.
Gemergte PRs (30 T.)
6

Beschreibung

### 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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne damit, den CLI-Einstiegspunkt für das vorhandene Shell-Schlüsselwort `!` und die Implementierung der Befehlsvervollständigung für `/` zu finden. Füge einen auffindbaren Befehl `/shell` mit einem kurzen Hinweis zur Shell-Ausführung hinzu und bewahre ein Verhalten bei, das `!` entspricht; fertig ist es, wenn `/sh` ihn vorschlägt und seine Auswahl in den Shell-Ausführungsmodus wechselt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
shell
Bereich
cli
Issue-Typ
Feature
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
55/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.