Prefer parent directory even when child has highes priority
Author: pavukachCreated Jul 21, 2026Updated Aug 28, 2026
For example, we have repository with submodules
path/to/repo/root
- frontend
- backendI want to cd into root using z re ro or z root. Both child directories would match while likely having higher priority. This will result in no way to jump to root with zoxide, as this directory has no sequences that would not fuzzy match against children.
Ways to solve:
- prefer landing on path ending with what was passed to zoxide
- add special character to show that path is ended, say
cd root $
Source: ajeetdsouza/zoxide