Is it possible to filter list by file extension? Like only no extensions or a specific extension is listed. I see no option in command files
Is it possible to deal with cases where files have comma?
I’m looking to add another onfail which suggests arguments via fuzzy matching using rep_sug_args here:
repeat $#
{
0 => ${files{$>+1}}
file_name={b}
l[-1]
{
rm.
ib ${file_name}
onfail
ib ${file_name}.pal
}
__$0_process_file[-1]
}
Ok, I see the answers for both:
C:\Users\Reptorian\Downloads\test>gmic files ./*. e ${}
[gmic]./ Start G'MIC interpreter (v.4.0.4).
[gmic]./ Get list of files and folders from location './*.'.
./empty
[gmic]./ End G'MIC interpreter.
C:\Users\Reptorian\Downloads\test>gmic files ./*.txt e ${}
[gmic]./ Start G'MIC interpreter (v.4.0.4).
[gmic]./ Get list of files and folders from location './*.txt'.
./File 1.txt,./Love, Reptorian.txt
[gmic]./ End G'MIC interpreter.
C:\Users\Reptorian\Downloads\test>gmic files . e ${}
[gmic]./ Start G'MIC interpreter (v.4.0.4).
[gmic]./ Get list of files and folders from location '.'.
./File 1.txt,./Love, Reptorian.txt,./New Bitmap Image.bmp,./empty
[gmic]./ End G'MIC interpreter.
So to filter out by empty in current directory. I use ./*.
So to filter out by extension in current directory. I use ./*.ext
And the separator for each file is ./
Actually, shouldn’t be that hard to implement what I want for rep_import_pal.