GithubHelp home page GithubHelp logo

martinec / autocomplete-plus Goto Github PK

View Code? Open in Web Editor NEW

This project forked from atom/autocomplete-plus

0.0 2.0 0.0 697 KB

View and insert possible completions in the editor while typing

License: MIT License

CoffeeScript 98.37% CSS 0.65% JavaScript 0.98%

autocomplete-plus's Introduction

autocomplete+ package OS X Build Status Windows Build Status

Gitter

View the changelog

View and insert possible completions in the editor while typing

Autocomplete+

Note: In the example above, Show Suggestions On Keystroke is enabled.

The Show Suggestions On Keystroke Setting

Installation

  • APM: apm install autocomplete-plus
  • Preferences: Open Atom and go to Preferences > Packages, search for autocomplete-plus, and install it

Providers

autocomplete+ has a powerful autocomplete provider API, allowing provider authors to add language-specific behavior to this package.

You should definitely install additional providers (the default provider bundled with this package is somewhat crude): https://github.com/atom-community/autocomplete-plus/wiki/Autocomplete-Providers

Usage

Just type some stuff, and autocomplete+ will automatically show you some suggestions. Press UP and DOWN to select another suggestion, press TAB to confirm your selection. You can change the default keymap in Preferences:

  • Keymap For Confirming A Suggestion
  • Keymap For Navigating The Suggestion List

Additionally, the keymap can be customized in your keymap.cson:

'atom-text-editor:not(mini).autocomplete-active':
  'tab': 'unset!'
  'enter': 'autocomplete-plus:confirm'
  'up': 'unset!'
  'down': 'unset!'
  'ctrl-p': 'autocomplete-plus:select-previous'
  'ctrl-n': 'autocomplete-plus:select-next'

Features

  • Shows suggestions while typing
  • Includes a default provider (FuzzyProvider):
    • Wordlist generation happens when you open a file, while editing the file, and on save
    • Suggestions are calculated using fuzzaldrin
  • Exposes a provider API which can be used to extend the functionality of the package and provide targeted / contextually correct suggestions
  • Disable autocomplete for file(s) via blacklisting
  • Disable autocomplete for editor scope(s) via blacklisting

Provider API

Great autocomplete depends on having great autocomplete providers. If there is not already a great provider for the language / grammar that you are working in, please consider creating a provider.

Read the Provider API documentation to learn how to create a new autocomplete provider.

autocomplete-plus's People

Contributors

abe33 avatar benogle avatar blakeembrey avatar brendankemp avatar eqot avatar gitter-badger avatar joefitzgerald avatar jonrohan avatar kevinnathan avatar kevinsawicki avatar kyeweedon avatar mcolyer avatar mizchi avatar mutle avatar orderedlist avatar park9140 avatar probablycorey-and-nathan avatar probablykevin avatar ricburton avatar rpg600 avatar saschagehlich avatar smockle avatar steelbrain avatar vito avatar yongkangchen avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.