PowerShellEditorServices icon indicating copy to clipboard operation
PowerShellEditorServices copied to clipboard

Open-EditorFile doesn't work with hidden files

Open corbob opened this issue 3 years ago • 0 comments

On MacOS (and I imagine Linux) dot files are hidden, and as such, are not displayed by Get-ChildItem which Open-EditorFile uses to get the file(s) to open. This makes using psedit as a shortcut to open such files impossible.

image

Initially I was going to suggest simply adding -Force to the Get-ChildItem, but the unintended consequence of that is that it will then open all the hidden files in a directory when given the directory. An alternative may be to include -Force on Open-EditorFile and pass that through to Get-ChildItem.

corbob avatar Mar 30 '22 21:03 corbob