Skip to content

[FEATURE] When typing @ it should show a recursive dropdown of the files #3

Description

@edenreich

Summary

Similar to Claude Code it would be cool to also be able to choose from the file system a file.

Currently its working but only if you specify the file, it will read it and embed it into your context, but it's not a very developer friendly.

If I type "@" I would like to see the listed files in a dropdown so I can pick one from.

Acceptance Criteria

  • The "@" is improved with a dropdown
  • Typing "@" I can pick a file I would like from the current project
  • It's documented

Activity

  1. added
    enhancement
    on Aug 10, 2025
  2. edenreich commented on Aug 10, 2025

    @edenreich
    ContributorAuthor

    @claude Can you implement this?

  3. claude commented on Aug 10, 2025

    @claude
    Contributor

    Claude finished @edenreich's task —— View job • claude/issue-3-20250810-1828 • Create PR ➔


    Implementation Complete! 🎉

    I've successfully implemented the interactive file selection dropdown feature for the "@" symbol. Here's what was added:

    New Features:

    • Interactive File Dropdown: Type @ alone to trigger a searchable file selector
    • Smart File Scanning: Recursively scans project files while excluding:
      • Binary files (executables, images, archives)
      • Build directories (.git, node_modules, dist, etc.)
      • Large files (>1MB)
    • Search & Filter: Type in the dropdown to filter files by name
    • Existing Compatibility: @filename direct references still work as before

    Implementation Details:

    • Added scanProjectFiles() function with intelligent filtering
    • Added selectFileInteractively() using promptui for dropdown UI
    • Added handleFileReference() to detect "@" patterns
    • Updated help text and README.md with new functionality
    • All tests pass, linting clean, code formatted

    Usage:

    1. Start chat: infer chat
    2. Type @ alone and press enter
    3. Browse/search files in the dropdown
    4. Select a file to include its contents

    Acceptance Criteria Met:

    • ✅ The "@" is improved with a dropdown
    • ✅ Typing "@" I can pick a file I would like from the current project
    • ✅ It's documented

    The feature maintains backward compatibility while adding the requested interactive functionality!


  4. added a commit that references this issue on Aug 10, 2025
    b1017ed
  5. added a commit that references this issue on Aug 11, 2025
    8cabd7d
  6. inference-gateway-releaser commented on Aug 11, 2025

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.4.0 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

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

    enhancementreleased

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions