Closed zhuoqun-chen closed 2 months ago
@zhuoqun-chen If you remove the "showDirs": true
property you get a list of the files that match and there path should be the result of the ${pickFile:srcSubDir}
variable. You can use "smart filter"(??) by typing part of the file name when the file list is displayed.
If it works rename all the dir
stuff to file
stuff.
Thank you @rioj7, I haven't figure out what is smart filter(??)
, but after removing "showDirs": true
, it indeed show me a file list and allow me to select a file that matches "include": "run/**/cfg_*.yaml"
pattern in many folders that contain them, thank you!
@zhuoqun-chen smart filter or fuzzy filter only shows the labels that contain the typed characters in that order followed by the labels that contain these characters somewhere, just like you use the Command Palette, type cursor
to see only commands related to cursor operations.
Hi @rioj7, I have a question to ask and wish you could kindly give me some help. I saw this example at here:
This can only filter out the folderpath as input in the end. But if I want to pick exactly a file named, eg,
hello.cpp
among so many*.cpp
, and make the<long_prefix>/hello.cpp
as the input to my task? Is it doable?