PSFzf icon indicating copy to clipboard operation
PSFzf copied to clipboard

add helix in Get-EditorLaunch ?

Open jmwatte opened this issue 11 months ago • 0 comments

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
		}
	}

jmwatte avatar Mar 27 '24 14:03 jmwatte