Coder Social home page Coder Social logo

auto-encoding-for-ruby's People

Contributors

as016194 avatar bquorning avatar eric-guo avatar firedev avatar lukemorton avatar sambao21 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

auto-encoding-for-ruby's Issues

sublime 3 compatibility

Hi :)

I guess the plugin is not ST3 compatible as i cannot find it with the package manager anymore?

Greetings,
sdepold

Breaks Haml files

Thank you for a nice plugin. Unfortunately, it isn't really usable with Rails at this moment.

The syntax for Haml is called "Ruby Haml", and the "# encoding" has a completely different meaning in haml. I'd suggest it to detect some keywords for alternative syntaxes like Haml and RSpec (from #1), and only fall back to plain Ruby if it couldn't find those keywords. Or maybe you should just hardcode a list of syntax names and magic header types to avoid further accidental breakage.

Stay below shebang line

The plugin inserts the encoding stanza at the top, regardless of whether there exists a shebang line

#!/bin/ruby

or similar, which needs to be on the first line (encoding stanza just below works at least in ruby 1.9.3).

Check encoding only on load and save

In my opinion, calling handle_encoding_declaration_on should only be called on save, that is, change from on_modified to on_pre_save. I don't like how my text file changes while I am writing.

Maybe this can be configurable?

UTF-8 declaration style

Nice package! Here is a suggestion to make it better:

I use this declaration in the top of my files:

# -*- encoding : utf-8 -*-

instead of

#encoding: utf-8

So when I use this package I end up with double declarations. Maybe the style of the declaration could be make configurable?

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.