-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't pipe file names to pipe-rename without -y #65
Comments
Thanks for the report! It seems Windows-specific due to the @assarbad have you been encountering this problem? Edit: Seems like dialoguer doesn't work with Cygwin or GitBash. It does work with cmd.exe and Powershell however. |
Yes, this might be a dialoguer issue.
I'm using regular Cmd. Powershell has the same behavior, Git bash (launched from Cmd or using mingw64) is no different. For now I've worked around the issue by patching in glob support. I mostly used something like this |
@mtimkovich I have not, but I am trying to avoid using it in piped mode. I think the issue, albeit on Windows, is the same as we have seen on other platforms. I have been investigating reopening @CptPotato feel like sharing (or contributing by way of a PR) the patch? Basic globbing support is included now on Windows, but indeed the full breadth of what various shells provide may not be covered by it (such as |
Sure! I'll have to clean it up a little but I can create a PR soon. |
Sorry this went way under the radar for me. I can't seem to reproduce the issue I had with Either way, in case you're interested here's the diff: master...CptPotato:pipe-rename:glob |
I've ran into an issue when piping file names into
rename
. The editor opens correctly, but after closing it the program immediately exits at the prompt:Running in debug mode didn't provide a stack trace but it looks like it's the call to
dialoguer::prompts::select::Select
. Using-y
to skip the prompt works as an alternative. I'm using Windows if that makes a difference.Also, thanks for this cool tool 👍
The text was updated successfully, but these errors were encountered: