edit icon indicating copy to clipboard operation
edit copied to clipboard

Feature request: possibility to open a folder

Open masterivanic opened this issue 7 months ago • 3 comments

This could be nice, so nerd can use it as a code editor

masterivanic avatar Jun 30 '25 00:06 masterivanic

I've thought about this a bit, as I'm used to typing code . or hx . and find myself doing it with edit too. I think the most obvious thing you could do is immediately launch the file picker on that directory.

deadalusai avatar Jul 04 '25 12:07 deadalusai

I've thought about this a bit, as I'm used to typing code . or hx . and find myself doing it with edit too. I think the most obvious thing you could do is immediately launch the file picker on that directory.

Agree, I have made an attempt at this in PR #577

four-poetic-drew avatar Jul 12 '25 09:07 four-poetic-drew

You can get around this for now with some clever shell or powershell scripts. I did something like this:

$files = Get-ChildItem -Path . -Filter "*.ps1"
edit $files

I'm not trying to minimize you're idea here, because I agree with you that it woudl be nice. I hope you don't get the wrong idea. I just wanted to share the work around I came up with to help with this in the meantime. You can obviously throw that in a funciton in your profile and spruce it up if you wanted to pass whatever file extensions you want in there. It's not ideal, but it gets the job done in a pinch. I have verified that it opens all of those files up in the file picker for you to switch between.

spross216 avatar Aug 15 '25 03:08 spross216