Home Download Buy Blog Forum Support

find_all() within a region

find_all() within a region

Postby chikamichi on Sat Mar 02, 2013 4:39 pm

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 :) 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.
chikamichi
 
Posts: 14
Joined: Sun Oct 16, 2011 2:26 am

Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 5 guests