Skip to content

Add way to push current directory onto the stack #53

@evanthegrayt

Description

@evanthegrayt

If I'm in a directory, and it's not currently on the stack, there's no way to add it unless you use cdc DIR. It'd be nice if you could do cdc . and have it push to the stack.

Example:

cd ~/repo 
cd a/nested/subdir
# Now I want to go back to the root of `repo`, but can't use `cdc -n`

# SOLUTION
cd ~/repo # oh crap, I want this on the history stack
cdc .

Also, and I'm not sure about this one... but it'd be cool to add cdc .., and it would traverse up the directory tree until it found a file in the CDC_REPO_MARKERS, changed to that directory, and added it to the stack (if requested).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions