 SymbolSearchVue = require('../views/public-symbol-search-vue')
 
+maxSymbols = 5
+
 module.exports = class PublicSymbolSearch
+
   constructor: (@client) ->
     @vue = new SymbolSearchVue
     @element = document.createElement('div')

      req =
        typehint: "PublicSymbolSearchReq"
        keywords: newText.split(' ')
        maxResults: 10

      @client.post(req, (msg) =>
          @vue.results = msg.syms


    atom.commands.add @vue.$el,
      'core:move-up': (event) =>
        if(@vue.selected > 0)
          @vue.selected -= 1
        event.stopPropagation()

      'core:move-down': (event) =>
        if(@vue.selected < maxSymbols - 1)
          @vue.selected += 1
        event.stopPropagation()

      'core:confirm': (event) =>
