Find a string in all nodes’ contents and select
the found node in the treeview.
# File ext/json/lib/json/editor.rb, line 570
def find(item)
@search = ask_for_find_term(@search) or return
iter = model.get_iter('0') or return
iter.recursive_each do |i|
if @iter
if @iter != i
next
else
@iter = nil
next
end
elsif @search.match(i[CONTENT_COL])
set_cursor(i.path, nil, false)
@iter = i
break
end
end
end