ComfyUI-Custom-Scripts icon indicating copy to clipboard operation
ComfyUI-Custom-Scripts copied to clipboard

Consider documenting this tip for wildcard filename completion

Open halr9000 opened this issue 2 years ago • 0 comments

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!

halr9000 avatar Oct 10 '23 01:10 halr9000