Atom Packages Directory

a package directory for a text editor of the 21st Century

Elmjutsu

Install with:
    apm install elmjutsu
  

Elmjutsu

A bag of tricks for developing with Elm.

https://atom.io/packages/elmjutsu

Setup

Related Atom packages: - linter-elm-make for error highlighting and quick fixes - elm-format to format your Elm source code on save - More here: https://atom.io/packages/search?q=elm

Features Overview

Feature Details

By default, the only thing this package does is parse your project’s source files to extract information, and download documentation of 3rd-party Elm packages. You have to manually enable the features that you need. The downloaded documentation files will be saved to the path set in Cache Directory in the settings view. If Cache Directory is blank, a temporary directory will be used. Take note that most operating systems delete temporary directories at bootup or at regular intervals.

Autocomplete

Autocomplete is turned off by default. To turn it on, check Enable Autocomplete in the package settings.

This provides suggestions for imports, project symbols, and 3rd-party package symbols.

autocomplete

Global Autocomplete

auto-import

Type-Aware Autocomplete

type-aware-autocomplete

Autocomplete Snippets

autocomplete-snippet

Special completions :zap:

Press tab to go to the next tab stop (similar to how snippets work). Special completions can be disabled individually in the package settings.

construct-basic

construct-case-of

construct-default-arguments

construct-default-value-for-type

construct-from-type-annotation-1

construct-from-type-annotation-2

Filtering suggestions

Performance tuning

Show Types in Tooltip

This is disabled by default. To turn it on, check Show Types in Tooltip in the package settings. You can also change the placement of the tooltip (Types Tooltip Position).

show-types-in-tooltip

Elmjutsu: Toggle Sidekick

Shows the type hints and documentation for the symbol at cursor position. The size, position of the panel, and amount of information to show can be modified in the package settings.

sidekick1

sidekick3

sidekick2

Elmjutsu: Infer Type

Infer types on the fly

infer-types-on-the-fly

### Elmjutsu: Add Import

Quickly adds an import without scrolling to the top of the file. Also sorts the imports, removes duplicates, and removes defaults automatically.

add-import

Package Management

Refactoring

Keybindings

Here is an example: ``` ‘atom-text-editor:not([mini])[data-grammar^=”source elm”]’: ‘f12’: ‘elmjutsu:go-to-definition’ ‘ctrl-r’: ‘elmjutsu:go-to-symbol’ ‘shift-f12’: ‘elmjutsu:find-usages’ ‘f8’: ‘elmjutsu:go-to-next-usage’ ‘shift-f8’: ‘elmjutsu:go-to-previous-usage’ ‘ctrl-f12’: ‘elmjutsu:go-back’ ‘alt-insert’: ‘elmjutsu:add-import’ ‘f2’: ‘elmjutsu:rename-symbol’ ‘alt-shift-l’: ‘elmjutsu:surround-with-let’ ‘alt-l’: ‘elmjutsu:lift-to-let’ ‘alt-t’: ‘elmjutsu:lift-to-top-level’ ‘alt-i’: ‘elmjutsu:infer-type’

‘atom-workspace’: ‘f1’: ‘elmjutsu:toggle-sidekick’ ‘ctrl-shift-f12’: ‘elmjutsu:hide-usages-panel’ ``` <!– ‘atom-text-editor’: ‘alt-enter’: ‘elmjutsu:eval’ ‘ctrl-enter’: ‘elmjutsu:pipe-selections’

‘.elmjutsu-pipe-selections’: “ctrl-enter”: “elmjutsu:apply-pipe-selections” ``` –>

Add them to your keymap.cson or bind them from Settings > Keybindings.

Notes

Credits

Keywords: elm, ide Suggest keywords
Fork me on GitHub