Sha256: 5ee8e887418298f2fe4ed5ce245e218071ac60b1a4a770fe76f7073cd470bc76
Contents?: true
Size: 813 Bytes
Versions: 27
Compression:
Stored size: 813 Bytes
Contents
module Redcar class Project class FindRecentDialog < FilterListDialog def update_list(filter) recent = Project::Recent.storage['list'] recent = recent.map {|path| path.gsub(/^#{Regexp.escape(Redcar.home_dir)}\/?/, "")} filter_and_rank_by(recent, filter) end def selected(path, ix) unless path[0..0] == "/" path = Redcar.home_dir + "/" + path end if File.exist?(File.expand_path(path)) if File.directory?(path) Project::Manager.open_project_for_path(path) close elsif File.file?(File.expand_path(path)) Project::Manager.open_file(path) close else Project::Recent.remove_path(path) end end end end end end
Version data entries
27 entries across 27 versions & 2 rubygems