Skip to content

Conversation

kelleyma49
Copy link
Owner

google-labs-jules bot and others added 9 commits June 24, 2025 20:37
Modified `Invoke-FuzzySetLocation` to use the command specified
in the `FZF_ALT_C_COMMAND` environment variable if it is set.
Otherwise, it defaults to its previous directory listing behavior.

Also ensured the function explicitly returns the selected path.
Added Pester tests for the `Invoke-FuzzySetLocation` function to cover
scenarios where `FZF_ALT_C_COMMAND` is set, not set, or set to an
empty string.

These tests use mocks for `Invoke-Fzf` and `Set-Location` to verify
the function's control flow and that it correctly returns the selected
path and attempts to navigate to it.

Note: `Remove-Mock` calls in `AfterEach` were commented out as a
workaround for a `CommandNotFoundException` encountered in the test
environment. The core test assertions are unaffected and pass.
@kelleyma49 kelleyma49 merged commit 8ace29e into master Jun 26, 2025
3 checks passed
@kelleyma49 kelleyma49 deleted the fix-alt-c-command-IFSL branch June 26, 2025 04:30
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.

Use FZF_ALT_C_COMMAND in Invoke-FuzzySetLocation()

1 participant