Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
A

atom-elmjutsu

> 包管理
Open source

A bag of tricks for developing with Elm. (Atom package)

193 stars0 likes3 views
WebsiteGitHub

About

A bag of tricks for developing with Elm. (Atom package)

Elmjutsu

A bag of tricks for developing with Elm.

https://atom.io/packages/elmjutsu

Setup

  • Install Elm.
  • Install language-elm (no need to install elm-oracle or goto).
  • For Error Highlighting:
    • Install atom-ide-ui or linter + linter-ui-default.
    • With linter v2 API (linter 2.3.0 and above), tooltips are collapsed by default. You have to click expand buttons (">"), or bind linter-ui-default:expand-tooltip to some key and hold it to expand them.
    • When moving from atom-ide-ui to linter (and vice versa), you need to reload Atom for now.
  • For Go to Definition:
    • Install atom-ide-ui or hyperclick (both optional).
  • For Autocomplete:
    • Install autocomplete-plus (installed by default).
    • Install snippets (optional, installed by default).
  • For Datatips:
    • Install atom-ide-ui (optional).
  • Add your keybindings.

Features Overview

Note: Features marked with * are disabled by default. You may enable them in the Settings view.

  • Error Highlighting

    • Always Compile Main
    • Set Main Paths
    • Set Compile Output Path
    • Report Warnings
    • Show Inferred Type Annotations
    • Compile With Debugger
    • Compile With Optimizations
    • Quick Fixes
    • Quick Fix File
  • Autocomplete

    • Global Autocomplete *
    • Filtering suggestions
      • Fuzzy Filtering *
      • Regex Filtering
      • Type Filtering
    • Autocomplete Snippets *
    • Special Completions
    • Type-Aware Autocomplete *
    • Performance Tuning
  • Navigation

    • Go to Definition
    • Go to Symbol
    • Find Usages
    • Go to Next Usage
    • Go to Previous Usage
    • Go Back
  • Information

    • Datatips
    • Signature Help
    • Show Types in Tooltip *
    • Toggle Sidekick
      • Show the type and documentation for the symbol at cursor position in a panel.
    • Infer Type
    • Infer Types on the Fly *
  • Imports Management

    • Add Import
    • Add Import As
  • Package Management

    • Install Package
    • Uninstall Package
  • Hot Reloading

  • Refactoring

    • Rename Symbol
    • Surround with let
    • Lift to let
    • Lift to top-level

Feature Details

This package parses your projects' source files to extract information, and downloads documentation of 3rd-party Elm packages. 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.

Error Highlighting

  • This only works for Elm 0.19 onwards. It's recommended to disable linter-elm-make.

  • Make sure that Elm Path is properly configured in the package settings. The default works for most cases.

  • You can configure the Elm Test Path setting to use elm-test to check for compile errors in test files (.elm files inside the tests directory). NOTE: This only works with elm-test@beta (0.19-beta10) right now.

  • If you are using Elm 0.18, it's better to disable this option by setting Run elm make to "never" and use linter-elm-make instead.

  • If you want to change the appearance of the error messages, look into error-highlighting.less and copy the styles to your ~/.atom/styles.less (where ~/.atom is your Atom directory).

  • Useful Commands

    • Atom IDE
      • Diagnostics: Go To Next Diagnostic
      • Diagnostics: Go To Previous Diagnostic
      • Diagnostics: Toggle Table
    • Linter v2
      • Linter Ui Default: Next
      • Linter Ui Default: Previous
      • Linter Ui Default: Toggle Active Editor
    • Linter v1
      • Linter: Next Error
      • Linter: Previous Error
      • Linter: Toggle

Always Compile Main

  • If enabled, the main file(s) will always be compiled instead of the file being edited. The main files can be set using the Elmjutsu: Set Main Paths command. If not set, the linter will look for Main.elm files in the source directories. Take note that if this is enabled, modules unreachable from the main modules will not be linted.

  • The main paths will be ignored if the project type is "package" (in elm.json).

  • Disabled by default.

Elmjutsu: Set Main Paths

Sets the main paths of the project and saves them to elmjutsu-config.json.

Example:

{
  "mainPaths": ["Todo.elm", "Test.elm"]
}

The main paths are only relevant if Always Compile Main is enabled. See Always Compile Main.

Elmjutsu: Set Compile Output Path

Sets the output path of the project and saves it to elmjutsu-config.json. Defaults to "/dev/null" if not set.

Example:

{
  "outputPath": "main.js"
}

Report Warnings

  • Also report warnings instead of just the errors. Disabled by default (for now).
  • Since the latest compiler (0.19) does not output warnings anymore, hacks are currently used to determine missing type annotations.

Show Inferred Type Annotations

  • This will only work if Report Warnings is also checked.

Compile With Debugger

  • Adds the --debug flag to elm make.
  • Enabling this will automatically disable Compile With Optimizations.

Compile With Optimizations

  • Adds the --optimize flag to elm make.
  • Enabling this will automatically disable Compile With Debugger.

Quick Fixes

  • If you have atom-ide-ui installed, you can invoke the Diagnostics: Show Actions At Position command or click on the appropriate button from the panel. You can uncheck Enable Code Actions in the Settings view if you do not want to show the buttons.

  • Available Quick Fixes:

    • Replace with
    • Add missing patterns
    • Add import
    • Add import as
    • Define top-level
    • Install package
    • Add type annotation
    • Convert using

Elmjutsu: Quick Fix File

  • Fixes all issues in the active text editor in one go. If there is more than one fix for an issue, it will choose the first from the list.

Autocomplete

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

  • It's recommended to uncheck Enable autocomplete of the language-elm package to prevent duplicate suggestions.

Global Autocomplete *

  • Check Enable Global Autocomplete if you want to include unimported project symbols.
    • This will also allow :zap:Auto import completion (which works like Add Import).
    • Take note that you may experience lag if you have a large project.

Filtering suggestions

  • Fuzzy Filtering *

    You can check Enable Autocomplete Fuzzy Filtering to filter suggestions using fuzz-aldrin-plus.

  • Regex Filtering

    If the typed text starts with a slash (/), the rest of the characters will be used as a regular expression to filter the suggestions by name.

  • Type Filtering

    If the typed text starts with a colon (:), the rest of the characters will be used as a regular expression to filter the suggestions by type signature.

    • If you want to filter by name and type signature, put two underscores (__) in between. For example, :cons__String will suggest String.cons (Char -> String -> String) and String.uncons (String -> Maybe.Maybe ( Char, String )).

    • Use underscores in lieu of spaces (e.g. to match List a, type List_a).

    • Remember to escape dots, vertical bars, braces (for records), parentheses (for tuples), etc.

Autocomplete Snippets *

  • You can also check Enable Autocomplete Snippets if you prefer.

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.

  • :zap:Insert program

    Type "html", "Html.program", "platform", or "Platform.program" in an empty editor to insert skeleton code.

  • :zap:Insert module

  • :zap:Insert let/in

  • :zap:Insert if/then/else

  • :zap:Insert case/of

  • :zap:Insert default arguments

  • :zap:Replace type with default

  • :zap:Define from type annotation

  • :zap:Auto import

    See Global Autocomplete.

  • :zap:Replace with inferred type

    See Type-Aware Autocomplete for a screenshot.

Type-Aware Autocomplete *

  • Check Enable Type-Aware Autocomplete if you want to prioritize suggestions matching the expected type at cursor position.
    • The type can be inferred via the Infer Type command, but it's recommended to check Infer Expected Type At Cursor On The Fly in the package settings instead.
    • WARNING: This is highly experimental and may cause lag, especially if Enable Global Autocomplete is also checked.

Performance Tuning

  • It's recommended to uncheck Enable autocomplete of the language-elm package. No need to install elm-oracle.

  • If you are experiencing lag while typing, you can set the value of Max Number of Autocomplete Suggestions to a small number such as 50 so that Atom will have less items to render.

  • Enabling both Global Autocomplete and Type-Aware Autocomplete will usually result to lag because there will be lots of computations involved. This may be improved in the future.

Navigation

  • Elmjutsu: Go To Definition

    • If the atom-ide-ui or hyperclick package is installed, you can also check Enable Hyperclick to jump to definition using Ctrl + click / Cmd + click (Mac).
  • Elmjutsu: Go To Symbol

    • You can type a : (colon) in the text box to also filter by type.
  • Elmjutsu: Find Usages

  • Elmjutsu: Go To Next Usage

    Moves the cursor to the position of the next usage.

  • Elmjutsu: Go To Previous Usage

    Moves the cursor to the position of the previous usage.

  • Elmjutsu: Go Back

    The current cursor position is added to a navigation stack before jumping via:

    • Go To Definition
    • Go To Symbol
    • Go To Next Usage
    • Go To Previous Usage
    • Clicking on a source path link (Sidekick and Datatip).

    Invoke this command to jump back to the previous position.

  • Elmjutsu: Hide Usages Panel

    Closes the Usages panel (the panel is shown

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

JavaScriptatom-packageelm

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category包管理
PricingOpen source

> Related tools

N
npm
Node.js 默认包管理器
P
pnpm
高效节省磁盘的 Node 包管理器
I
is-gif
Check if a Buffer/Uint8Array is a GIF image