kvichans / cuda_find_in_files4

CudaText plugin to find in multiple files
4 stars 3 forks source link

"Find in current tab" don't work for current filename 'csdf (1).md' #88

Closed Alexey-T closed 1 month ago

Alexey-T commented 1 month ago

Screenshot_2024-09-22_11-59-12

@kvichans pls help.

Alexey-T commented 1 month ago

@jackusay you found this bug. try to make the fix. code is here: cd_fif4.py,

    def prep_filename_masks(mask:str)->(list,list):
        """ Parse file/folder quotes_mask to two lists (file_pure_masks, folder_pure_masks).
            Exaple.
                quotes_mask:    '*.txt "a b*.txt" /m? "/x y"'
                output:         (['*.txt', 'a b*.txt']
                                ,['m?', 'x y'])
        """

seems FIF4 must DBL_QUOTE the filename if filename has space. on calling the command "Find in current tab".

Alexey-T commented 1 month ago

fixed.