claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[FEATURE] Add inline autocomplete for /slash commands and other commands that uses `/`

Open deleon626 opened this issue 1 year ago • 4 comments

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

I constantly need to reference specific files, directories, MCPs, and execute slash commands while working with Claude Code. Currently, I have to remember the exact file paths and command names, then type them out manually. This creates significant cognitive load and interrupts my workflow because I must:

  1. Remember exact file paths and directory structures
  2. Recall precise slash command names
  3. Switch between my task and typing mechanics
  4. Deal with typos and corrections that break my flow

This manual process is inefficient, error-prone, and breaks the natural conversation flow with Claude Code.

Proposed Solution

I'd like Claude Code to implement IDE-style inline autocomplete with these main triggers:

/ Symbol - Slash Command Discovery:

  • When I type / in the prompt, show available slash commands
  • Display command descriptions alongside names
  • Allow human-readable language selection (e.g., "commit my changes" maps to /git:git-commit)
  • Support command chaining in natural language
  • Execute based on prompt context rather than rigid syntax

Interface Requirements:

  • Dropdown appears immediately after typing @ or /
  • Results update in real-time as I type
  • Escape key closes the dropdown
  • Tab/Enter to select items
  • Minimal visual disruption to the prompt

Alternative Solutions

Currently I work around this by:

  1. Opening separate file explorer to copy paths
  2. Keeping a personal list of common slash commands
  3. Using tab completion in terminal before copying to Claude Code
  4. Making multiple attempts due to typos or forgotten names

These workarounds are time-consuming and break the conversational flow.

Priority

High - Significant impact on productivity

Feature Category

Interactive mode (TUI)

Use Case Example

No response

Additional Context

  • Fuzzy search should be tolerant of typos and partial matches
  • Commands should be discoverable based on intent, not just exact names
  • The feature should work seamlessly with existing prompt functionality
  • Performance should be responsive even with large codebases

deleon626 avatar Oct 17 '25 16:10 deleon626

I just wanted to add some examples here.

Let's imagine I have a file @formats/png/1024x1024/foo-01/bar-01/baz-03/derp-05.png.

It would be great if @010305 could return @formats/png/1024x1024/foo-01/bar-01/baz-05/derp-03.png in the drop down, as it contains 01, followed by 03, followed by 05.

Or similarly: @barbaz05.

behrangsa avatar Oct 22 '25 18:10 behrangsa

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

github-actions[bot] avatar Dec 08 '25 10:12 github-actions[bot]

This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.

github-actions[bot] avatar Jan 08 '26 10:01 github-actions[bot]

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

github-actions[bot] avatar Jan 16 '26 14:01 github-actions[bot]