CommandCodeAI / CommandCodeAI/command-code

/add-dir should support passing a directory argument directly, and fix pasted paths being modified in the input box

Open
#343 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

p2
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.