Sublime Forum

find_all() within a region

#1

Hi,

Iā€™d like to know whether it is possible (as in, undocumented) to perform a find_all() within a sublime.Region. Obviously the sublime.View#find_all does not support it, but you never know :smile: My goal is to find all matches for a regexp within the boundaries of two text points, so as to not search for the whole (possibly very large) document. I can see sublime.View#find has a fromPosition parameter: would it be a good idea to provide find_all with a pair of parameters to specify boundaries? This would help with performance and overhaul cleaness in some cases.

1 Like