Skip to content

Instantly share code, notes, and snippets.

@t9md
Created December 6, 2017 05:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save t9md/2ec563635a71c1a42f2e8f1cb14a7bfb to your computer and use it in GitHub Desktop.
Save t9md/2ec563635a71c1a42f2e8f1cb14a7bfb to your computer and use it in GitHub Desktop.

To mafke tab confirm 2nd complete candidates.

  • init.js
atom.commands.add("atom-text-editor", "user:autocomplete-plus-select-next-and-confirm", function() {
  const editor = this.getModel()
  atom.commands.dispatch(editor.element, "core:move-down")
  atom.commands.dispatch(editor.element, "autocomplete-plus:confirm")
})
  • keymap.cson
'atom-text-editor.vim-mode-plus.insert-mode.autocomplete-active':
  'tab': "user:autocomplete-plus-select-next-and-confirm"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment