Yep @Deif_lou has proposed enclose and fill tool. [im personally watching how the development proceed]
I think that a part of it is to do a close gap flood fill, or that the code can eventually be used to do the bucket fill and close gap.
The proposal can be read here.