     complete: (query) ->
       graphite.find(query + '*')
       .then ({result}) ->
-        if settings.get('type') == 'lead'
-          for n in result
-            n.path += '.' unless n.is_leaf
         graphite.parse_find_response query, result
 
     find: (query) ->

          format: 'completer'
        http.get(graphite.url 'metrics/find', params)
        .then (response) ->
          result = _.map response.metrics, ({path, name, is_leaf}) -> {path, name, is_leaf: is_leaf == '1'}
          {query, result}

    suggest_keys: (s) ->

    parse_find_response: (query, response) ->
      parts = query.split '.'
      pattern_parts = parts.map graphite.is_pattern
      list = for node in response
        if node.is_leaf
          node.path
        else
          node.path + '.*'
      patterned_list = for path in list
        result = for matched, i in path.split '.'
          if pattern_parts[i]
