kelleyma49 / PSFzf

A PowerShell wrapper around the fuzzy finder fzf
MIT License
750 stars 35 forks source link

add helix in Get-EditorLaunch ? #266

Open jmwatte opened 3 months ago

jmwatte commented 3 months ago

Would it be possible to add support for the helix editor? This works for me in the psm1 file, but I would not know how to fork and push and all that. thx.

elseif ($editor -match 'hx') {
        if ($FileList -is [array] -and $FileList.length -gt 1) {
            for ($i = 0; $i -lt $FileList.Count; $i++) {
                $FileList[$i] = '"{0}"' -f $(Resolve-Path $FileList[$i].Trim('"'))
            }
            "$editor$editorOptions {0}" -f ($FileList -join ' ')
        }
        else {
            "$editor$editorOptions ""{0}:{1}""" -f $(Resolve-Path $FileList.Trim('"')), $LineNum
        }
    }