features-42
deadc0de6 4 months ago
parent e610273dc3
commit 3ccaf81abd

@ -615,8 +615,9 @@ class Noder:
item.name = fix_badchars(item.name)
storage = self._get_storage(item)
parents = self._get_parents(item)
key = f'{storage}/{parents}/{item.name}'
paths[parents] = item
parent_key = f'{storage.name}/{parents}'
key = f'{parent_key}/{item.name}'
paths[parent_key] = item
# handle fzf mode
if fmt.startswith('fzf'):

@ -40,6 +40,7 @@ ${bin} -B index -c -f --catalog="${catalog}" github2 .github
#cat "${catalog}"
echo ""
${bin} -B ls -r --catalog="${catalog}"
${bin} -B find --catalog="${catalog}" testing.yml
cnt=$(${bin} -B find --catalog="${catalog}" testing.yml | wc -l)
[ "${cnt}" != "2" ] && echo "should return 2!" && exit 1

Loading…
Cancel
Save