Commit 07989f3
Open hidden files in
On macOS and Linux, dot files are hidden, so `Get-ChildItem` skips them
unless `-Force` is passed. This meant `psedit ~/.zshrc` (and similar)
silently opened nothing, making the alias useless for exactly the kind of
config files people most often want to jump into.
Add `-Force` to the `Get-ChildItem` call in `Open-EditorFile` so hidden
files resolve and open. The issue notes a wrinkle: with `-Force`, passing a
*directory* would now also enumerate its hidden files. I think that's an
acceptable trade-off for the common path-to-a-file case, and a draft for
maintainer review either way.
Fixes #1750.
Drafted by Copilot (Claude Opus 4.8).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>Open-EditorFile
1 parent 6ad4f46 commit 07989f3
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| |||
0 commit comments