ComfyUI-Custom-Scripts
ComfyUI-Custom-Scripts copied to clipboard
Consider documenting this tip for wildcard filename completion
Just whipped this up as part of an issue thread over here https://github.com/adieyal/comfyui-dynamicprompts/issues/23#issuecomment-1754170362, thought you would want to see it.
tl;dr on Windows, open a powershell change to your Wildcards directory and type this:
Get-ChildItem -Recurse -Include *.txt | Resolve-Path -Relative | ForEach-Object { "__" + $_.substring(2,$_.length-6) + "__" }
Or, append "clip" like so:
Get-ChildItem -Recurse -Include *.txt | Resolve-Path -Relative | ForEach-Object { "__" + $_.substring(2,$_.length-6) + "__" } | clip
and then paste into comfy settings word completion (from your repo) to complete all of your wildcards!