Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bulk delete directories using pattern #571

Open
den-is opened this issue May 15, 2023 · 1 comment · May be fixed by #802
Open

Bulk delete directories using pattern #571

den-is opened this issue May 15, 2023 · 1 comment · May be fixed by #802

Comments

@den-is
Copy link

den-is commented May 15, 2023

I was not able to find similar doc or issue, but it will be nice to bulk delete records from the DB.
For example, right now I have visited many sub-directories under /Users/alice/myproject1/.......

zoxide edit search shows all of this dirs correctly
I have to press ctrl-d hundred times to delete all these directories.

@phanen phanen linked a pull request Apr 25, 2024 that will close this issue
@MahouShoujoMivutilde
Copy link

I think that instead of a custom file format it would be better to just use something like sqlite (a well known SQL database format) or, since the db structure is so simple anyway (3 columns: path, score, last accessed), you could get away with just tsv, which is a text file that you can edit wherever you want.

This is also useful if e.g. you moved a whole tree of various directories to a different root path and want to keep all the scores.

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 a pull request may close this issue.

2 participants