Skip to content

Add feature to batch-rename entries - #1250

Open
alcremieow wants to merge 1 commit into
ajeetdsouza:mainfrom
alcremieow:main
Open

Add feature to batch-rename entries#1250
alcremieow wants to merge 1 commit into
ajeetdsouza:mainfrom
alcremieow:main

Conversation

@alcremieow

Copy link
Copy Markdown

Closes #916.

This adds zoxide rename --old-name <old_name> --new-name <new_name>.
This is mainly intended for the use case described in #916 (migrating from /home/old-user to /home/new-user), as currently there is no good way to edit paths in the zoxide database while keeping their rank and last_accessed time.

The subcommand replaces all occurences of old-name with new-name, prints out the changes and asks the user whether they want to apply the changes (y/n).

This closes ajeetdsouza#916

Signed-off-by: cecilia <alcremieow@posteo.de>
@Eviber

Eviber commented Aug 3, 2026

Copy link
Copy Markdown

I just needed this feature and for what its worth, I can confirm that it worked as expected. Thanks! 😄

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.

Cannot edit paths in the zoxide database

2 participants