Skip to content

Instantly share code, notes, and snippets.

@olinguyen
Created January 8, 2026 15:03
Show Gist options
  • Select an option

  • Save olinguyen/f7dadc644b9f47012d2a7f79beef553a to your computer and use it in GitHub Desktop.

Select an option

Save olinguyen/f7dadc644b9f47012d2a7f79beef553a to your computer and use it in GitHub Desktop.
Custom Claude Code File Suggestion
#!/bin/bash
# {
# "fileSuggestion": {
# "type": "command",
# "command": ".claude/file-suggestion.sh"
# }
# }
query=$(cat | jq -r '.query')
cd "$CLAUDE_PROJECT_DIR" && fd -t f -p "$query" . | sed 's|^\./||' | head -15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment