CommandCodeAI / CommandCodeAI/command-code
/add-dir should support passing a directory argument directly, and fix pasted paths being modified in the input box
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 4k
- Forks
- 350
- PR merge metrics
- No merged PRs in 30d
Description
Expected Behavior
I expect the /add-dir command to support passing a directory path directly, for example:
/add-dir "/Users/david/Projects/caonima"
When a directory argument is provided, Command Code should add that directory directly, instead of always need to opening the interactive add-dir UI
In addition, in the existing add-dir UI, the input box should accept pasted directory paths as-is, without adding any extra characters before or after the pasted text.
Actual Behavior
Right now, /add-dir does not respect a directory argument.
When I paste a directory path into the add-dir input box, the pasted text gets modified: some extra characters (e.g. something like ~200 or similar) are added to the beginning and the end of the path.
Command Code Version
0.25.7
Operating System
macOS
Terminal/IDE
WarpTerminal
Shell
zsh
Additional context
No response
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the /add-dir command entry point and the existing add-dir input UI. Check how command arguments are handled and how pasted paths are processed. Done means a supplied directory is added directly, while pasted paths remain unchanged in the input box.
Written by the indexing model from the issue text.
Assessment
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 50/100