atom-path-intellisense

Path intellisense support for atom

apercova

34,750

10

1.2.2

MIT

GitHub

This package provides the following services:

atom-path-intellisense

Path Intellisense support for atom.

Autocomplete provider based on atom autocomplete-plus package.
APM APM Inline docs Maintainability built with gulp contributions welcome License: MIT

Current build status 🏭 | See Change Log πŸ’ˆ

Linux MacOS Windows
CircleCI Build Status Build status

Features

Providers

Default Providers 🎯

Default providers are the very basic path suggestion providers on this package given path suggestions for paths relative to current file and working out of the box on all allowed scopes.

Current file relative path provider Default

πŸ’ͺ Features

Current file path provider Default

πŸ’ͺ Features

Extended Providers ❀

Atom-path-intellisense is not only based on default providers. Decoupling path suggestions mechanism from autocomplete-plus provider API gives the advantage of writing extended providers that cover more specific contexts and can be formatted in their own way.

We refer as extended providers to providers targeted to a specific language or more specific scope selectors and context.

Node.js path provider Extended

Node.js path provider gives suggestions for Node.js module imports.

πŸ’ͺ Features

See more of extended providers ...

Installation

Install from atomΒ΄s settings/packages tab or run following command on a terminal:

  apm install atom-path-intellisense

Configuration

This package exports following configuration settings to config.cson file:

allowed-scopes

Scope selectors (can be comma- separated) for which suggestions are shown. Apply to default suggestion providers. Other providers specify more specific selectors.
See: Scope Selectors Reference

enable-debug

Enable / disable debug options.

Atom's dev mode $ atom --dev . overrides this setting as true.

manual-suggest

If enabled (recomended), suggestions are provided by pressing ctrl + space . Uncheck to get suggestions at typing.

provider-strategy-all

If enabled, All suitable providers that can resolve suggestions are called with no priority consideration. (A bit lower operation).

root-base-path

Path for root dir on relative paths /.
Special values are:

Windows and Unix paths are accepted depending on OS.
On Windows, absolute unix path / is resolved to system partition: C: in most cases. Eg: /Windows/ is resolved to C:\\Windows.

Example of config.cson:

"*":
  "atom-path-intellisense":
    "allowed-scopes": ".source .string, .source.shell, .text .string, .text.html.basic"
    "enable-debug": false
    "manual-suggest": true
    "provider-strategy-all": false

Acknowledgements πŸ†