### Invoke-FuzzyZLocation usage examples Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Invoke-FuzzyZLocation.md Examples showing how to launch the fuzzy location selector with or without an initial query string. ```PowerShell Invoke-FuzzyZLocation ``` ```PowerShell Invoke-FuzzyZLocation -Query "project" ``` -------------------------------- ### Launch Invoke-PsFzfRipgrep with search string Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Invoke-PsFzfRipgrep.md Example of initiating an interactive search with a pre-defined query string. ```PowerShell Invoke-PsFzfRipgrep -SearchString 'Key' # Starts search with initial ripgrep query of the string 'Key' ``` -------------------------------- ### Launch Invoke-FuzzyScoop Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Invoke-FuzzyScoop.md Starts the fuzzy finder to select applications for the default install operation. ```PowerShell Invoke-FuzzyScoop ``` -------------------------------- ### Basic PSFzf Usage Example Source: https://github.com/kelleyma49/psfzf/blob/master/en-US/about_PSFzf.help.txt This example demonstrates how to use Invoke-PSFzf to select a file and set the current location to its parent folder. It pipes directory objects to Invoke-PSFzf, filters for containers, and then uses the selected path. ```powershell cd (gci -Recurse | where {$_.PSIsContainer} | Invoke-Fzf) ``` -------------------------------- ### Parameter Configuration Examples Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Invoke-Fzf.md Configuration blocks for various parameters used to customize the behavior of the fuzzy finder. ```yaml Type: SwitchParameter Parameter Sets: (All) Aliases: i Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ```yaml Type: SwitchParameter Parameter Sets: (All) Aliases: Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ```yaml Type: SwitchParameter Parameter Sets: (All) Aliases: Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ```yaml Type: String Parameter Sets: (All) Aliases: d Required: False Position: 0 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ```yaml Type: SwitchParameter Parameter Sets: (All) Aliases: e0 Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ```yaml Type: SwitchParameter Parameter Sets: (All) Aliases: x Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ```yaml Type: SwitchParameter Parameter Sets: (All) Aliases: e Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ```yaml Type: String Parameter Sets: (All) Aliases: f Required: False Position: 10 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ```yaml Type: String Parameter Sets: (All) Aliases: Required: False Position: 3 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ```yaml Type: Int32 Parameter Sets: (All) Aliases: Required: False Position: 4 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ```yaml Type: String Parameter Sets: (All) Aliases: Required: False Position: 5 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ```yaml Type: Int32 Parameter Sets: (All) Aliases: Required: False Position: 6 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ```yaml Type: SwitchParameter Parameter Sets: (All) Aliases: Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ```yaml Type: Object[] Parameter Sets: (All) Aliases: Required: False Position: 11 Default value: None Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` ```yaml Type: SwitchParameter Parameter Sets: (All) Aliases: m Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ```yaml Type: SwitchParameter Parameter Sets: (All) Aliases: Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -------------------------------- ### Launch Invoke-FuzzyScoop with uninstall subcommand Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Invoke-FuzzyScoop.md Starts the fuzzy finder to select applications for the uninstall operation. ```PowerShell Invoke-FuzzyScoop -subcommand uninstall ``` -------------------------------- ### Invoke-Fzf Command Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Invoke-Fzf.md Starts the fuzzy file finder based on input from the pipeline. ```APIDOC ## Invoke-Fzf ### Description Starts the fuzzy file finder based on input from the pipeline. ### Parameters #### Named Parameters - **CaseInsensitive** (SwitchParameter) - Optional - Case-insensitive match. - **CaseSensitive** (SwitchParameter) - Optional - Case-sensitive match. - **Cycle** (SwitchParameter) - Optional - Enable cyclic scroll. - **Delimiter** (String) - Optional - Field delimiter regex. - **Exit0** (SwitchParameter) - Optional - Exit immediately when there's no match. - **Extended** (SwitchParameter) - Optional - Extended-search mode. - **Exact** (SwitchParameter) - Optional - Enable Exact-match. - **Filter** (String) - Optional - Filter mode. Do not start interactive finder. - **Header** (String) - Optional - String to print as header. - **HeaderLines** (Int32) - Optional - The first N lines of the input are treated as header. - **History** (String) - Optional - History file. - **HistorySize** (Int32) - Optional - Maximum number of history entries. - **InlineInfo** (SwitchParameter) - Optional - Display finder info inline with the query. - **Input** (Object[]) - Optional - The input to display in the interactive finder. - **Multi** (SwitchParameter) - Optional - Enable multi-select with tab/shift-tab. - **NoHScroll** (SwitchParameter) - Optional - Disable horizontal scroll. ### Request Example PS C:\> Set-Location (Invoke-Fzf) ``` -------------------------------- ### Launch Invoke-FuzzyGitStatus Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Invoke-FuzzyGitStatus.md Executes the cmdlet to start the fzf selection interface based on the current directory's git status. ```PowerShell Invoke-FuzzyGitStatus ``` -------------------------------- ### Set Location with Invoke-Fzf Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Invoke-Fzf.md Example of using Invoke-Fzf to select a directory and change the current working location. ```PowerShell PS C:\> Set-Location (Invoke-Fzf) ``` -------------------------------- ### Launch Invoke-FuzzyFasd Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Invoke-FuzzyFasd.md Launches fzf with input from fasd's database to select a file and set the current location. This cmdlet requires the fasdr module to be installed. ```PowerShell Invoke-FuzzyFasd ``` -------------------------------- ### Invoke-FuzzyScoop Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Invoke-FuzzyScoop.md Starts an fzf interface to select applications from Scoop buckets and execute a specified subcommand on them. ```APIDOC ## Invoke-FuzzyScoop ### Description Starts fzf on the Scoop applications list, allowing the user to select multiple applications and run a Scoop subcommand on them. ### Parameters #### -subcommand (String) - Optional - The Scoop command to run on selected applications. Defaults to 'install'. #### -subcommandflags (String) - Optional - Additional flags to pass to the Scoop subcommand. ### Request Example Invoke-FuzzyScoop -subcommand uninstall ``` -------------------------------- ### Invoke-FuzzyGitStatus Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Invoke-FuzzyGitStatus.md Starts fzf with input from the output of the `git status` function, enabling fuzzy file selection. ```APIDOC ## Invoke-FuzzyGitStatus ### Description Allows the user to select files listed from the output of the `git status` function executed in the current directory. These keyboard shortcuts are supported: - CTRL+A selects all items - CTRL+D deselects all items - CTRL+T toggles the selection state of all items ### Method ```powershell Invoke-FuzzyGitStatus ``` ### Endpoint N/A (This is a PowerShell cmdlet, not a REST endpoint) ### Parameters This cmdlet does not accept any parameters. ### Request Body N/A ### Response N/A (This cmdlet does not generate any output. Its effect is interactive selection within the fzf interface.) ### Examples #### Launch Invoke-FuzzyGitStatus Launches fzf with input from a `git status` command executed in the current directory. ```powershell Invoke-FuzzyGitStatus ``` ``` -------------------------------- ### Invoke-FuzzyFasd Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Invoke-FuzzyFasd.md Starts fzf with input from the files saved in fasd (non-Windows) or fasdr (Windows) and sets the current location. ```APIDOC ## Invoke-FuzzyFasd ### Description Allows the user to select a file from fasd's database and set the current location. ### Method PowerShell Cmdlet ### Endpoint Invoke-FuzzyFasd ### Parameters None ### Request Example Invoke-FuzzyFasd ### Response None ``` -------------------------------- ### Use fd Command for File/Directory Search Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Set-PsFzfOption.md Configures PSFzf to use the 'fd' command for file and directory searching instead of OS-specific commands. Ensure 'fd' is installed and in your PATH. ```PowerShell Set-PsFzfOption -EnableFd ``` -------------------------------- ### Invoke-FuzzyZLocation Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Invoke-FuzzyZLocation.md Starts fzf with input from the history saved by ZLocation and sets the current location. Allows the user to select a file from ZLocation's history database and set the current location. An optional query can be passed to fzf. ```APIDOC ## Invoke-FuzzyZLocation ### Description Starts fzf with input from the history saved by ZLocation and sets the current location. Allows the user to select a file from ZLocation's history database and set the current location. An optional query can be passed to fzf. ### Method `Invoke-FuzzyZLocation` ### Parameters #### Query Parameters - **Query** (String) - Optional - Specifies an initial query for fzf. ### Request Example ```powershell Invoke-FuzzyZLocation ``` ```powershell Invoke-FuzzyZLocation -Query "project" ``` ### Response This cmdlet does not generate any output. ``` -------------------------------- ### Launch Set-LocationFuzzyEverything Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Set-LocationFuzzyEverything.md Launches the fzf interface to select a directory and update the current location. ```PowerShell Set-LocationFuzzyEverything ``` -------------------------------- ### Configure Tab Completion Preview Window Source: https://github.com/kelleyma49/psfzf/blob/master/README.md Sets the initial state and cycling options for the tab completion preview window. The format is `initial_state|change_preview_window_options`. ```powershell Set-PsFzfOption -TabCompletionPreviewWindow 'hidden|up|left|hidden' ``` -------------------------------- ### Configure Tab Completion Preview Window Source: https://github.com/kelleyma49/psfzf/blob/master/README.md Sets the initial state and toggle cycle for the tab completion preview window. ```powershell # Start with visible preview on the right Set-PsFzfOption -TabCompletionPreviewWindow 'right|down|hidden' ``` -------------------------------- ### Configure TabCompletionPreviewWindow Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Set-PsFzfOption.md Defines the initial state and toggle sequence for the preview window during tab completion. ```powershell # example - start with hidden preview, toggle between up, left, and hidden: Set-PsFzfOption -TabCompletionPreviewWindow 'hidden|up|left|hidden' # example - start with visible preview on the right: Set-PsFzfOption -TabCompletionPreviewWindow 'right|up|down|hidden' # default - start hidden, toggle between down, right, and right:hidden: Set-PsFzfOption -TabCompletionPreviewWindow 'hidden|down|right|right:hidden' ``` -------------------------------- ### Configure PSReadline Key Bindings Source: https://github.com/kelleyma49/psfzf/blob/master/README.md Sets custom keyboard shortcuts for provider path selection and reverse history search. ```powershell # replace 'Ctrl+t' and 'Ctrl+r' with your preferred bindings: Set-PsFzfOption -PSReadlineChordProvider 'Ctrl+t' -PSReadlineChordReverseHistory 'Ctrl+r' ``` -------------------------------- ### Launch Set-LocationFuzzyEverything with path filter Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Set-LocationFuzzyEverything.md Restricts the selection to subdirectories within the specified path. ```PowerShell Set-LocationFuzzyEverything c:\Windows ``` -------------------------------- ### Launch Invoke-FuzzyEdit Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Invoke-FuzzyEdit.md Launches fzf in the current directory to select files for editing in the default editor. Ensure the PSFzf module is imported. ```PowerShell Invoke-FuzzyEdit ``` -------------------------------- ### Set PSReadline Options Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Set-PsFzfOption.md Configure PSReadline keyboard shortcuts for history and file/directory selection. Ensure PSReadline is available and configured. ```PowerShell Set-PsFzfOption -PSReadlineChordProvider 'Ctrl+t' -PSReadlineChordReverseHistory 'Ctrl+r' ``` -------------------------------- ### PSFZF Parameters Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Invoke-Fzf.md This section details the available parameters for the PSFZF command-line tool, including their types, requirements, and descriptions. ```APIDOC ## PSFZF Parameters ### Description This section details the available parameters for the PSFZF command-line tool, including their types, requirements, and descriptions. ### Parameters #### Switch Parameters - **-NoMouse** (Switch) - Optional - Disable mouse interaction. - **-NoSort** (Switch) - Optional - Do not sort the result. - **-Popup** (Switch) - Optional - Display fzf as a popup window (requires fzf 0.71.0 or later). - **-Reverse** (Switch) - Optional - Reverse the orientation of the display. - **-ReverseInput** (Switch) - Optional - Reverse the order of the input. - **-Select1** (Switch) - Optional - Automatically select the only match. #### String Parameters - **-Preview** (String) - Optional - Command to preview the highlighted line. Uses `{}` as a placeholder for the current line. - **-PreviewWindow** (String) - Optional - Specifies the layout and size of the preview window. Format: `[up|down|left|right][:SIZE[%]][:hidden]`. - **-Prompt** (String) - Optional - Input prompt displayed to the user. Defaults to "> ". - **-Query** (String) - Optional - Starts the finder with the given query string. Alias: `q`. - **-Tiebreak** (String) - Optional - Comma-separated list of criteria to break ties in sorting. Accepted values: `length`, `begin`, `end`, `index`. Defaults to `length`. ### Input - **System.Object[]** - Objects to display in the interactive finder. ### Output - **System.Object[]** - Objects selected by the user. ``` -------------------------------- ### Launch Invoke-FuzzyKillProcess Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Invoke-FuzzyKillProcess.md Launches fzf to select processes for termination. This cmdlet does not accept input and does not produce output. ```PowerShell Invoke-FuzzyKillProcess ``` -------------------------------- ### Parameter configuration for subcommand Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Invoke-FuzzyScoop.md Configuration details for the subcommand parameter. ```yaml Type: String Parameter Sets: (All) Aliases: Required: False Position: 0 Default value: install Accept pipeline input: False Accept wildcard characters: False ``` -------------------------------- ### Enable Tab Expansion Source: https://github.com/kelleyma49/psfzf/blob/master/README.md Configures PSReadline to use PSFzf for tab completion and enables the module's tab expansion features. ```powershell Set-PSReadLineKeyHandler -Key Tab -ScriptBlock { Invoke-FzfTabCompletion } ``` ```powershell Set-PsFzfOption -TabExpansion ``` -------------------------------- ### Parameter Configuration Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Invoke-PsFzfRipgrep.md Configuration details for the SearchString and NoEditor parameters. ```yaml Type: String Parameter Sets: (All) Aliases: Required: True Position: 0 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ```yaml Type: Switch Parameter Sets: (All) Aliases: Required: False Position: 1 Default value: False Accept pipeline input: False Accept wildcard characters: False ``` -------------------------------- ### Invoke-PsFzfRipgrep Syntax Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Invoke-PsFzfRipgrep.md Basic syntax for calling the cmdlet with a required search string. ```PowerShell Invoke-PsFzfRipgrep -SearchString [-NoEditor] ``` -------------------------------- ### Parameter configuration for Directory Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Set-LocationFuzzyEverything.md Metadata definition for the Directory parameter. ```yaml Type: String Parameter Sets: (All) Aliases: Required: False Position: 0 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -------------------------------- ### Invoke-FuzzyKillProcess Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Invoke-FuzzyKillProcess.md Documentation for the Invoke-FuzzyKillProcess cmdlet, which triggers a process selection interface via fzf to stop selected processes. ```APIDOC ## Invoke-FuzzyKillProcess ### Description Runs Stop-Process on all processes selected by the user in fzf. ### Method N/A (PowerShell Cmdlet) ### Endpoint Invoke-FuzzyKillProcess ### Parameters None ### Request Example Invoke-FuzzyKillProcess ### Response None ``` -------------------------------- ### Launch Invoke-FuzzyHistory Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Invoke-FuzzyHistory.md Executes the command selected by the user via fzf. ```PowerShell Invoke-FuzzyHistory ``` -------------------------------- ### Enable Git Key Bindings Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Set-PsFzfOption.md Enables key bindings specifically for Git commands within PSFzf. This option is a switch parameter. ```PowerShell Set-PsFzfOption -GitKeyBindings ``` -------------------------------- ### Set-PsFzfOption Configuration Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Set-PsFzfOption.md Configures global options for the psfzf module, including delimiter characters and preview window behavior. ```APIDOC ## Set-PsFzfOption ### Description Configures settings for the psfzf module. ### Parameters #### Named Parameters - **PsReadlineHandlerProviderDelimiter** (String) - Optional - Specifies the delimiter character used to join multiple selected files when using the PSReadlineChordProvider. Default is ','. - **TabCompletionPreviewWindow** (String) - Optional - Specifies the preview window behavior for tab completion. Format is 'initial_state|change_preview_window_options'. Default is 'hidden|down|right|right:hidden'. ### Request Example Set-PsFzfOption -PsReadlineHandlerProviderDelimiter ' ' -TabCompletionPreviewWindow 'hidden|up|left|hidden' ``` -------------------------------- ### Edit Selected File via Fuzzy Selection Source: https://github.com/kelleyma49/psfzf/blob/master/README.md Pipes a recursive file listing into fzf for interactive selection and opens the chosen file in notepad. ```powershell Get-ChildItem . -Recurse -Attributes !Directory | Invoke-Fzf | % { notepad $_ } ``` -------------------------------- ### Change Directory via Fuzzy Selection Source: https://github.com/kelleyma49/psfzf/blob/master/README.md Pipes a recursive directory listing into fzf for interactive selection and sets the location to the result. ```powershell Get-ChildItem . -Recurse -Attributes Directory | Invoke-Fzf | Set-Location ``` -------------------------------- ### Enable Alias for Fuzzy Set Everything Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Set-PsFzfOption.md Enables the 'cde' alias for the Set-LocationFuzzyEverything function. This allows for fuzzy navigation to any location. ```PowerShell Set-PsFzfOption -EnableAliasFuzzySetEverything ``` -------------------------------- ### Enable Tab Expansion Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Set-PsFzfOption.md Enables tab expansion support in PSFzf. This is a simple switch parameter to toggle the feature. ```PowerShell Set-PsFzfOption -TabExpansion ``` -------------------------------- ### Invoke-FuzzySetLocation with Windows Directory Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Invoke-FuzzySetLocation.md Launches fzf to select a subdirectory within the Windows directory and sets it as the current location. This is useful for quickly navigating to system subfolders. ```PowerShell Invoke-FuzzySetLocation c:\Windows ``` -------------------------------- ### Invoke-FuzzyHistory Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Invoke-FuzzyHistory.md Documentation for the Invoke-FuzzyHistory cmdlet used to rerun commands from history. ```APIDOC ## Invoke-FuzzyHistory ### Description Rerun a previous command from history based on the user's selection in fzf. This cmdlet launches the fzf interface to allow interactive selection of past commands. ### Method PowerShell Cmdlet ### Request Example Invoke-FuzzyHistory ### Notes For an enhanced history search experience, it is recommended to use Set-PsFzfOption -PSReadlineChordReverseHistory to enable PSFzf's PSReadline integration. ``` -------------------------------- ### Parameter configuration for subcommandflags Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Invoke-FuzzyScoop.md Configuration details for the subcommandflags parameter. ```yaml Type: String Parameter Sets: (All) Aliases: Required: False Position: 0 Default value: Accept pipeline input: False Accept wildcard characters: False ``` -------------------------------- ### Invoke-Fzf Syntax Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Invoke-Fzf.md The general syntax for calling the Invoke-Fzf function with its available parameters. ```PowerShell Invoke-Fzf [-Extended] [-ExtendedExact] [-CaseInsensitive] [-CaseSensitive] [[-Delimiter] ] [-NoSort] [-ReverseInput] [[-Tiebreak] ] [-Multi] [-NoMouse] [-Cycle] [-NoHScroll] [-Reverse] [-InlineInfo] [[-Prompt] ] [[-Header] ] [[-HeaderLines] ] [[-History] ] [[-HistorySize] ] [[-Preview] ] [[-PreviewWindow] ] [[-Query] ] [-Select1] [-Exit0] [[-Filter] ] [-Popup] [[-Input] ] ``` -------------------------------- ### Invoke-PsFzfRipgrep Cmdlet Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Invoke-PsFzfRipgrep.md This snippet details the Invoke-PsFzfRipgrep cmdlet, used for interactive file searching with Ripgrep and Fzf. ```APIDOC ## Invoke-PsFzfRipgrep ### Description Uses Ripgrep and Fzf to interactively search files. ### Syntax ```powershell Invoke-PsFzfRipgrep -SearchString [-NoEditor] ``` ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Parameters #### -SearchString Initial string to start ripgrep query - **SearchString** (string) - Required - The initial string to start the ripgrep query. #### -NoEditor Returns result instead of launching editor - **NoEditor** (switch) - Optional - If present, returns the result instead of launching an editor. ### Request Example ```powershell Invoke-PsFzfRipgrep -SearchString 'Key' ``` ### Response #### Success Response (200) This cmdlet does not produce direct output in the form of a structured response body. The result is typically displayed interactively or returned when the -NoEditor switch is used. #### Response Example (Interactive Fzf interface or file path/content when -NoEditor is used) ``` -------------------------------- ### Set-LocationFuzzyEverything Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Set-LocationFuzzyEverything.md Sets the current location based on a selection from the Everything database. ```APIDOC ## Set-LocationFuzzyEverything ### Description Allows the user to select a directory from the Everything database and sets the current location. ### Method PowerShell Cmdlet ### Parameters #### Path Parameters - **Directory** (String) - Optional - The path to a directory that contains the subdirectories that the user will choose from. ### Request Example Set-LocationFuzzyEverything c:\Windows ``` -------------------------------- ### Configure PsReadlineHandlerProviderDelimiter Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Set-PsFzfOption.md Sets the character used to join multiple selected files in the PSReadline interface. ```powershell # example - use space as delimiter instead of comma: Set-PsFzfOption -PsReadlineHandlerProviderDelimiter ' ' # example - use semicolon as delimiter: Set-PsFzfOption -PsReadlineHandlerProviderDelimiter ';' ``` -------------------------------- ### Invoke-FuzzyEdit Cmdlet Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Invoke-FuzzyEdit.md This snippet details the Invoke-FuzzyEdit cmdlet, its parameters, and usage. ```APIDOC ## Invoke-FuzzyEdit ### Description Starts an editor for the selected files in the fuzzy finder. Allows the user to pick multiple files from fzf that will be launched in the editor defined in the environment variable EDITOR. Under Windows, Visual Studio Code is launched if EDITOR is not defined. If not running under Windows, vim is launched. If Invoke-FuzzyEdit is executed in the Visual Studio Code integrated terminal, the --reuse-window option is used which should cause the file to open in the currently active Visual Studio Code window. ### Method Cmdlet ### Endpoint N/A (PowerShell Cmdlet) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Parameters #### -Directory Path to directory to start fzf in. If not passed defaults to current directory. - **Directory** (string) - Required: False - Description: Path to directory to start fzf in. If not passed defaults to current directory. ### Request Example ```powershell Invoke-FuzzyEdit ``` ### Response #### Success Response (200) None #### Response Example None ``` -------------------------------- ### Set-PsFzfOption Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Set-PsFzfOption.md Configures various options for the PSFzf tool, affecting PSReadline behavior, tab expansion, and git command integration. ```APIDOC ## Set-PsFzfOption ### Description Allows the user to set various PSFzf options, such as PSReadline chords and tab expansion. ### Method CMDLET ### Endpoint N/A (PowerShell Cmdlet) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Parameters - **PSReadlineChordProvider** (String) - Optional - PSReadline keyboard chord shortcut to trigger file and directory selection. - **PSReadlineChordReverseHistory** (String) - Optional - PSReadline keyboard chord shortcut to trigger history selection. - **GitKeyBindings** (SwitchParameter) - Optional - Enables key bindings for git commands. - **TabExpansion** (SwitchParameter) - Optional - Enables tab expansion support. - **EnableAliasFuzzyEdit** (SwitchParameter) - Optional - Enables the `fe` aliases for the `Invoke-FuzzyEdit` function. - **EnableAliasFuzzyFasd** (SwitchParameter) - Optional - Enables the `ff` aliases for the `Invoke-FuzzyFasd` function. - **EnableAliasFuzzyHistory** (SwitchParameter) - Optional - Enables the `fh` aliases for the `Invoke-FuzzyHistory` function. - **EnableAliasFuzzyKillProcess** (SwitchParameter) - Optional - Enables the `fkill` aliases for the `Invoke-FuzzyKillProcess` function. - **EnableAliasFuzzySetLocation** (SwitchParameter) - Optional - Enables the `fd` aliases for the `Invoke-FuzzySetLocation` function. - **EnableAliasFuzzySetEverything** (SwitchParameter) - Optional - Enables the `cde` aliases for the `Set-LocationFuzzyEverything` function. - **EnableAliasFuzzyScoop** (SwitchParameter) - Optional - Enables the `fs` aliases for the `Invoke-FuzzyScoop` function. - **EnableAliasFuzzyZLocation** (SwitchParameter) - Optional - Enables the `fz` aliases for the `Invoke-FuzzySetZLocation` function. - **EnableAliasFuzzyGitStatus** (SwitchParameter) - Optional - Enables the `fgs` aliases for the `Invoke-FuzzyGitStatus` function. - **EnableFd** (SwitchParameter) - Optional - Uses the `fd` command instead of the OS specific file and directory commands. - **AltCCommand** (String) - Optional - Specifies a user supplied command that will be used in the command that is bound to the Alt-C command. ### Request Example ```powershell Set-PsFzfOption -PSReadlineChordProvider 'Ctrl+t' -PSReadlineChordReverseHistory 'Ctrl+r' ``` ### Response This cmdlet does not produce a direct response body. Configuration changes are applied to the current session. #### Success Response (N/A) N/A #### Response Example N/A ``` -------------------------------- ### Enable Alias for Fuzzy Kill Process Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Set-PsFzfOption.md Enables the 'fkill' alias for the Invoke-FuzzyKillProcess function. This allows for fuzzy process killing. ```PowerShell Set-PsFzfOption -EnableAliasFuzzyKillProcess ``` -------------------------------- ### Set Custom Alt-C Command Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Set-PsFzfOption.md Specifies a user-defined command to be used with the Alt-C shortcut. The provided script block receives the current location as a parameter. ```PowerShell $commandOverride = [ScriptBlock]{ param($Location) Write-Host $Location } Set-PsFzfOption -AltCCommand $commandOverride ``` -------------------------------- ### Enable Alias for Fuzzy ZLocation Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Set-PsFzfOption.md Enables the 'fz' alias for the Invoke-FuzzySetZLocation function. This provides a fuzzy way to navigate using Zoxide. ```PowerShell Set-PsFzfOption -EnableAliasFuzzyZLocation ``` -------------------------------- ### Override Alt+c Command Behavior Source: https://github.com/kelleyma49/psfzf/blob/master/README.md Defines a custom script block to execute when a directory is selected via the Alt+c shortcut. ```powershell # example command - use $Location with a different command: $commandOverride = [ScriptBlock]{ param($Location) Write-Host $Location } # pass your override to PSFzf: Set-PsFzfOption -AltCCommand $commandOverride ``` -------------------------------- ### Use Invoke-Fzf within a Pipeline Source: https://github.com/kelleyma49/psfzf/blob/master/README.md Demonstrates how Invoke-Fzf can be used in the middle or at the end of a PowerShell pipeline. This allows for interactive selection of items from pipeline output. ```powershell Set-Location (Get-ChildItem . -Recurse | ? { $_.PSIsContainer } | Invoke-Fzf) # This works as of version 2.2.8 ``` ```powershell Get-ChildItem . -Recurse | ? { $_.PSIsContainer } | Invoke-Fzf | Set-Location ``` -------------------------------- ### Invoke-FuzzySetLocation Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Invoke-FuzzySetLocation.md Sets the current location to a subdirectory selected by the user via fzf. ```APIDOC ## Invoke-FuzzySetLocation ### Description Sets the current location of a subdirectory based on the user's selection in fzf. ### Method PowerShell Cmdlet ### Parameters #### Path Parameters - **Directory** (String) - Optional - The path to a directory that contains the subdirectories that the user will choose from. ### Request Example Invoke-FuzzySetLocation -Directory "c:\Windows" ``` -------------------------------- ### Enable Alias for Fuzzy Git Status Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Set-PsFzfOption.md Enables the 'fgs' alias for the Invoke-FuzzyGitStatus function. This allows for fuzzy searching of Git status. ```PowerShell Set-PsFzfOption -EnableAliasFuzzyGitStatus ``` -------------------------------- ### Enable Alias for Fuzzy Fasd Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Set-PsFzfOption.md Enables the 'ff' alias for the Invoke-FuzzyFasd function. This provides a shortcut for the fuzzy fasd command. ```PowerShell Set-PsFzfOption -EnableAliasFuzzyFasd ``` -------------------------------- ### Displaying Object Names with PSFzf Source: https://github.com/kelleyma49/psfzf/blob/master/en-US/about_PSFzf.help.txt When Invoke-PSFzf receives objects, it attempts to display a common property like 'Name' or 'FullName' instead of the object's string representation. This is useful for selecting specific items from a list of objects. ```powershell Get-Process | Invoke-Fzf ``` ```powershell gci alias: | Invoke-Fzf ``` -------------------------------- ### Enable Alias for Fuzzy Scoop Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Set-PsFzfOption.md Enables the 'fs' alias for the Invoke-FuzzyScoop function. Use this for fuzzy searching within Scoop applications. ```PowerShell Set-PsFzfOption -EnableAliasFuzzyScoop ``` -------------------------------- ### Enable Alias for Fuzzy Set Location Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Set-PsFzfOption.md Enables the 'fd' alias for the Invoke-FuzzySetLocation function. This provides a fuzzy way to change directories. ```PowerShell Set-PsFzfOption -EnableAliasFuzzySetLocation ``` -------------------------------- ### Enable Alias for Fuzzy History Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Set-PsFzfOption.md Enables the 'fh' alias for the Invoke-FuzzyHistory function. Use this for quick fuzzy history searches. ```PowerShell Set-PsFzfOption -EnableAliasFuzzyHistory ``` -------------------------------- ### Enable Alias for Fuzzy Edit Source: https://github.com/kelleyma49/psfzf/blob/master/docs/Set-PsFzfOption.md Enables the 'fe' alias for the Invoke-FuzzyEdit function. This simplifies invoking the fuzzy edit functionality. ```PowerShell Set-PsFzfOption -EnableAliasFuzzyEdit ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.