feat(workflow): add zd command to list project directories#3
Open
pdegeeter wants to merge 1 commit intocrwen:mainfrom
Open
feat(workflow): add zd command to list project directories#3pdegeeter wants to merge 1 commit intocrwen:mainfrom
pdegeeter wants to merge 1 commit intocrwen:mainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds a new zd command to list and open project directories from configured folders, replacing a previous bash-based approach with native Rust implementation for improved performance and maintainability.
Key changes:
- Implements
list_directories()function to scan subdirectories from user-configured paths - Refactors CLI argument parsing to support both
zr(recent projects) andzd(directories) modes via--dirsflag - Adds "No results found" feedback when searches return empty results
Reviewed changes
Copilot reviewed 4 out of 6 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| src/main.rs | Adds --dirs mode, list_directories() function, refactors to return Result types, and adds empty results handling |
| workflow/info.plist | Adds new zd script filter configuration, workflow connections, and projects_directories user configuration |
| README.md | Documents the new zd command and configuration instructions |
| CLAUDE.md | Updates project overview with CLI usage examples and data flow documentation |
| .gitignore | Adds *.alfredworkflow to ignore compiled workflow files |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
add new zd command that lists folders from multiple configurable directories, with filtering support via Alfred UI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
Performance improvement
The zd command now uses the compiled Rust binary (./alfred-zed --dirs) instead of a bash script with loops. This provides:
Better UX
When no results match the search query, Alfred now displays "No results found" instead of falling back to web search suggestions.
CLI Usage
./alfred-zed [query] # List recent projects (zr)
./alfred-zed --dirs [query] # List project directories (zd)
Files changed
Test plan