Skip to content

Alfred Zoxide always returns "No directories found" #1

@pro-sumer

Description

@pro-sumer

No matter which query I try (for example even the very simple z e), Alfred Zoxide always returns "No directories found.".

In the implementation:

# query with trimmed white space
query=$(echo $1 | tr -s '[:blank:]')

results=$(zoxide query $query -l)

# Read each line of the multiline string into an array
IFS=$'\n' read -d '' -ra items <<<"$results"
  • when run manually as single statements on the command line: query, results and items all have the values I expect;
  • when running the workflow: query is correct, but results (and hence items) is always empty...

I have experimented with hardcoding the path to zoxide and hardcoding my custom zoxide data path, but I can't get it to work...

Any ideas?

  • zoxide 0.9.8
  • Alfred 5.6.2 [2296]
  • macOS Sequoia 15.5
  • GNU bash, version 3.2.57(1)-release (arm64-apple-darwin24)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions