KiField icon indicating copy to clipboard operation
KiField copied to clipboard

wildcards in filenames

Open kennethblue opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe. I'd like to run KiField on every symbol library file in a folder - first to extract all the fields and then after editing to push them back. I'd prefer not to have to explicitly type every filename.

Describe the solution you'd like It would be great to just add a wildcard character, like an asterisk or something like that.

Describe alternatives you've considered I suppose there may be a way to do this with a feature of the terminal. I happen to be using Windows 11 right now but I also use Ubuntu at home. If anyone has a quick tip here then that would do as a work-around.

Additional context N/A

Thanks!

kennethblue avatar Sep 28 '23 15:09 kennethblue

If anyone has a quick tip here then that would do as a work-around.

While using unix shell, particularity Bash you could cd to library folder and:

for file in *.some_format ; do f_call $file; done
  • $file is a reference to filtered files
  • f_call is a place where you put your desired call

e.g:

for file in *; do echo "$file"; done

this will print names of the files/folders in current folder

pfrl avatar Apr 02 '24 12:04 pfrl