Skip to content

Conversation

kelleyma49
Copy link
Owner

This change adds the --no-config flag to all bat invocations within the PsFzfTabExpansion-Preview.ps1 script.

This prevents your user-specific bat configurations (e.g., custom themes or styles) from interfering with or breaking the preview functionality in PSFzf's tab expansion.

The following bat commands were modified:

  • Directory preview (git log)
  • File preview
  • PowerShell command help preview

I manually tested and confirmed that bat does not load user configurations when the --no-config flag is present.

Fixes #308

This change adds the `--no-config` flag to all `bat` invocations
within the `PsFzfTabExpansion-Preview.ps1` script.

This prevents your user-specific `bat` configurations (e.g., custom
themes or styles) from interfering with or breaking the preview
functionality in PSFzf's tab expansion.

The following `bat` commands were modified:
- Directory preview (git log)
- File preview
- PowerShell command help preview

I manually tested and confirmed that `bat` does not load user configurations
when the `--no-config` flag is present.

Fixes #308
This change adds the `--no-config` flag to all identified `bat`
invocations used for generating previews within the PSFzf module.
This prevents your user-specific `bat` configurations (e.g., custom
themes or styles) from interfering with or breaking the preview
functionality.

The following files and functions were modified:
- `helpers/PsFzfTabExpansion-Preview.ps1`:
    - Directory preview (git log)
    - File preview
    - PowerShell command help preview
- `PSFzf.Functions.ps1`:
    - `Invoke-PsFzfRipgrep` function's fzf preview command
- `helpers/PsFzfTabExpansion-Parameter.ps1`:
    - PowerShell command parameter help preview

Manual testing confirmed that `bat` does not load user configurations
when the `--no-config` flag is present in all these locations.

Fixes #308
@kelleyma49 kelleyma49 merged commit bb3cd35 into master May 31, 2025
3 checks passed
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.

[BUG] Bat implementation failure for Invoke-PsFzfRipgrep.

1 participant