Skip to content

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

@thedavidweng

Description

@thedavidweng

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions