Coder Social home page Coder Social logo

ember.vim's People

Contributors

ctataryn avatar dsawardekar avatar jessieay 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ember.vim's Issues

ctrlp window does not highlight match

With a standard ctrl-p window, the matching portion of each line is highlighted. This does not happen for the ember ctrl-p extensions (eg finding by model).

It occurs to me the root problem is likely in portkey, and not ember.vim.

E254: Cannot allocate color 3

Getting this error when opening a .hbs file:

Error detected while processing ~/.vim/bundle/ember.vim/syntax/ember.vim:
line   35:
E254: Cannot allocate color 3

Looks like it's caused by this line.

Adding this line to my vimrc fixes the problem temporarily:

let g:ember_handlebars_no_default_styles = 1

ember:custom Not Loading Custom Ember Syntax Highlighting

I'm unable to get custom syntax highlighting for ember working with my cutsom portkey.json using "portkeys": ["ember:custom"],. If I change this line to "portkeys": ["ember:classic-coffee"], I get the proper syntax highlighting, but it overwrites the templates from my custom config (e.g. Emodel post!).

Here' my :PortkeyVersion:

Portkey: version=0.1.7
Current Resource Type: route
Portkeys Loaded:
1. tapas-with-ember/portkey.json

from: https://twitter.com/_dsawardekar/status/395410705945354242

Overwriting Handlebars syntax

Polyglot is my plugin of choice for syntax highlighting. However, ember.vim overwrites its rules for Handlebars files:

:autocmd BufRead *.hbs                                    
--- Auto-Commands ---                                 
BufRead                                                         
    *.hbs     set filetype=html.handlebars syntax=mustache | runtime! ftplugin/mustache.vim ftplugin/mustache*.vim ftplugin/mustache/*.vim
    *.hbs     set filetype=handlebars.ember                                                  

which lands me with no html highlighting.

Since vim doesn't provide a way to unregister a single autocmd, I have to overwrite this with yet another autocmd in my vimrc, but losing the convenience polyglot provided.

Culprit: ftdetect/handlebars.vim.

Possible solution: at least wrap it in its own group (augroup ember.vim ... augroup end); this will let users disable the entire group. Or maybe just append an ember filetype at the end in the autocmd (set ft+=.ember).

I prefer the first solution.

Extenstion not found: ember, Cannot load portkey: ember

I currently have both ember.vim and portkey installed, and my portkey.json file contains:

{
  "portkeys": ["ember"]
}

I receive the following error each time I enter a file:

Extension not found: ember
Cannot load portkey: ember
Extension not found: ember
Cannot load portkey: ember
Press ENTER or type command to continue

keystrokes

Is there a video or a cheat sheet which shows the characters to type or select to switch between {model, controller, route, template, component, view}? Also how do you get Ctrl-P show the list of files vertically on a left side-bar? Thanks for the answers.

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.