functions/Get-CmdFavEditor.ps1

function Get-CmdFavEditor {
    <#
    .SYNOPSIS
    Returns the current settings for the external editor as a HashTable.
 
    .DESCRIPTION
    This function reads the configured values for the external editor (Path, Wait mode,
    Parameter) from the CmdFav configuration (PSFramework) and returns them as a HashTable.
    For each setting, an empty string is returned if no value is set.
 
    .OUTPUTS
    Hashtable
 
    .EXAMPLE
    $editor = Get-CmdFavEditor
    $editor.Path # Path to the editor
    $editor.Wait # Wait mode (true/false/empty)
    $editor.Parameter # Startup parameter
 
    .LINK
    Set-CmdFavEditor
    #>

    [CmdletBinding()]
    param ()

    return @{
        Path      = (Get-PSFConfigValue -FullName 'CmdFav.ExternalEditor.Path'      -Fallback '')
        WaitMode      = (Get-PSFConfigValue -FullName 'CmdFav.ExternalEditor.WaitMode'      -Fallback '')
        Parameter = (Get-PSFConfigValue -FullName 'CmdFav.ExternalEditor.Parameter' -Fallback '')
    }
}