       @show()
 
   viewForItem: (item) ->
-    console.log 'viewForItem #{item}'
-
     index = item.filetext.search /\n/
     content = item.filetext.slice(index, item.filetext.length)
 

    if filterQuery.length == 0
      return null

    titleQuery = filterQuery.toLowerCase()
    titleItems = @items
      .filter (x) -> x.title.toLowerCase()[...titleQuery.length] is titleQuery
      .sort (x, y) -> x.modified > y.modified
    titleItem = if titleItems.length > 0 then titleItems[0] else null
    return titleItem

  filter: (filterQuery) ->
    if filterQuery.length == 0

    'filetext'

  toggle: ->
    if @panel?.isVisible()
      @hide()
    else
