Coder Social home page Coder Social logo

elm.tmbundle's Introduction

Elm.tmBundle

Textmate 2 Bundle for the Elm language.

Installation

cd ~/Library/Application\ Support/TextMate/Bundles
git clone https://github.com/siame/Elm.tmBundle.git

This bundle requires you to have elm and elm-format available in your $PATH TextMate variable.

You can find this in Preferences , -> Variables

Features

  • Syntax highlighting
  • Automatic formatting on save using elm-format
  • Compile using elm-make

elm.tmbundle's People

Contributors

fab1an avatar pravdomil avatar siame avatar

Watchers

 avatar

Forkers

kuituhirvi

elm.tmbundle's Issues

Highlighting then pressing CMD+S throws error

image

If there is a selection in the editor when pressing S (which triggers elm-format) the above error window appears.

This doesn't look like it affects the output or running of elm-format, it's just incorrect visual feedback and annoying.

Compile not responsive enough

This commit 2e3bb7d adds the ability to compile a project using a Command and a Key Equivalent (C).

Some editors have this functionality on save, which provides the user with instant feedback on whether or not their code compiles. I attempted this using the callback.document.did-save semantic class, however this threw up a few problems.

  • There is no visual indication compilation is happening, either on save or when the user manually triggers it.
  • Whilst compilation is occurring, the editor is effectively frozen, with any keyboard/mouse input commands queued until after it's completed.
  • The resulting output is in a tooltip, which doesn't use a fixed width font and so can be quite ugly to look at.

Ideally we want to be able to compile a file on save, be visually shown the process of compilation (there is a loading bar that elm-make uses here) if the user has to wait, and then be able to display any compilation errors in a legible way.

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.