Skip to content

Add recursive flag for add and remove commands#1121

Open
w3irdrobot wants to merge 2 commits into
ajeetdsouza:mainfrom
w3irdrobot:recursive-add-remove
Open

Add recursive flag for add and remove commands#1121
w3irdrobot wants to merge 2 commits into
ajeetdsouza:mainfrom
w3irdrobot:recursive-add-remove

Conversation

@w3irdrobot

Copy link
Copy Markdown

Adds a --recursive flag to the add and remove commands.

Closes #1087

@ajeetdsouza

Copy link
Copy Markdown
Owner

You don't need walkdir when using the remove command - simply remove any path that starts with the prefix provided as input.

@w3irdrobot

Copy link
Copy Markdown
Author

Ok. I moved the recursive removal into the database area. Hopefully this is more what you were thinking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add these 2 features in zoxide, 1. Add multiple directories path, 2. Remove multiple paths

2 participants