Find in files in folder error

Solved bugs are moved into this topic...
Post Reply
dhealey
Posts: 40
Joined: 14.12.2019 12:30

Find in files in folder error

Post 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
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

deleted useless msgs. I now just reproduced the bug, it's caused by space in dir name. to fix.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post 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
 
dhealey
Posts: 40
Joined: 14.12.2019 12:30

Post 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 1464 times
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

yes, you should delete 2nd and 3rd folders. FIF v4 is not stable yet.
User avatar
kvichans
Posts: 203
Joined: 07.10.2012 05:45

Post 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
CudaText 1.163, TC9.51x32, Win10x64(1920x1080)
Post Reply