Page 1 of 1

Find in files in folder error

Posted: 29.02.2020 00:23
by dhealey
I'm getting an error popping up about setting the In Folder, but I've already set it. I can get it to work if I select Project Folder but otherwise the error appears.
Screenshot from 2020-02-29 00-21-34.png

Posted: 29.02.2020 18:21
by Alexey
deleted useless msgs. I now just reproduced the bug, it's caused by space in dir name. to fix.

Posted: 29.02.2020 18:38
by Alexey
quick fix from me:
open file ~/.config/cudatext/py/cuda_find_in_files/cd_fif_api.py
find there

Code: Select all

def prep_quoted_folders(mask:str)->list:
and replace this function to this block to use ";" as separator for dir names

Code: Select all

def prep_quoted_folders(mask:str)->list:
    mask    = mask.strip()
    flds    = mask.split(';')
    if '"' in mask:
        flds   = [f.strip('"') for f in flds if f]
    return flds
   #def prep_quoted_folders
 

Posted: 29.02.2020 23:18
by dhealey
Thanks. That works!

I noticed I have 3 find in files folders, should I delete the others?
Screenshot from 2020-02-29 23-14-40.png
Screenshot from 2020-02-29 23-14-40.png (4.51 KiB) Viewed 2183 times

Posted: 01.03.2020 07:49
by Alexey
yes, you should delete 2nd and 3rd folders. FIF v4 is not stable yet.

Posted: 16.03.2020 12:29
by kvichans
New version of FiF (v3) is public.
added: Allow to separate folders in "In folder" with ";"
added: Auto add surrounding double quotes for dir with blanks after Browse and similar commands