Giter VIP home page Giter VIP logo

atom-html-templates's People

Contributors

brendannee avatar feridum avatar ict4eo avatar lehmax avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

atom-html-templates's Issues

There is no such option issue!

Hi, I'm using Mac and sometimes after i'm typing html5 or html5-bootstrap then pressing
control+option+o it informing me " There is no such option."
and sometimes it's working well !!
Actually i don't know why this happen with me ?!

Small issue with using html5-bootstrap-jquery_2.2.1 template

I've noticed while using the template for html, bootstrap, and jquery that the script tags at the bottom are placed bootstrap first and jquery below such as:

<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="https://code.jquery.com/jquery-2.2.1.min.js"></script>

but this does not work because bootstrap depends on jquery so the jquery script tag should be placed above it so it loads first.

For example: if you try to open the navigation bar on mobile with the hamburger icon, it needs jquery and won't open unless you switch around the position of the script tags like this:

<script src="https://code.jquery.com/jquery-2.2.1.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>

Uncaught TypeError: Cannot read property 'setText' of undefined

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.6.0
System: Mac OS X 10.11.4
Thrown From: atom-html-templates package, v0.1.0

Stack Trace

Uncaught TypeError: Cannot read property 'setText' of undefined

At /Users/adeleon/.atom/packages/atom-html-templates/lib/atom-html-templates.coffee:85

TypeError: Cannot read property 'setText' of undefined
    at Object.module.exports.AtomHtmlTemplates.toggle (/Users/adeleon/.atom/packages/atom-html-templates/lib/atom-html-templates.coffee:85:11)
    at atom-workspace.subscriptions.add.atom.commands.add.atom-html-templates:toggle (/Users/adeleon/.atom/packages/atom-html-templates/lib/atom-html-templates.coffee:17:94)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
    at CommandPaletteView.module.exports.CommandPaletteView.confirmed (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/command-palette/lib/command-palette-view.js:183:32)
    at CommandPaletteView.module.exports.SelectListView.confirmSelection (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:338:21)
    at space-pen-li.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:139:19)
    at HTMLOListElement.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4435:9)
    at HTMLOListElement.elemData.handle (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4121:28)

Commands

     -7:09.0 window:toggle-dev-tools (atom-text-editor.editor.is-focused)
     -6:29.5.0 welcome:show (atom-text-editor.editor.is-focused)
     -0:26.3.0 core:copy (div.package-readme.native-key-bindings)
     -0:13.5.0 command-palette:toggle (div.package-readme.native-key-bindings)
     -0:01.3.0 atom-html-templates:toggle (div.package-readme.native-key-bindings)

Config

{
  "core": {
    "projectHome": "/Volumes/\\#1\\ Mac\\ osx\\ 10.11.3\\ 240gb/CodeProjects/GitHub",
    "themes": [
      "one-dark-ui",
      "base16-tomorrow-dark-theme"
    ]
  }
}

Installed Packages

# User
atom-html-templates, v0.1.0
autocomplete-html-entities, v0.1.0
css-snippets, v0.9.0
css-spy, v0.5.1
language-html-snippetless, v0.44.1
minimap, v4.21.0
pigments, v0.24.5

# Dev
No dev packages

Only html5 template worked for me

I can generate the html5 template, but none of the other options work, I get the "There is no such option"

jquery_2.2.1 reports this in the developer console:
["jquery_2.2.1"]
0: "jquery_2.2.1"
length: 1
proto: Array[0]
atom-html-templates.coffee:61
[]
length: 0
proto: Array[0]

There is no such option.

I am using a MacBook Pro and everything (both Mac and Atom) is updated. I successfully downloaded the package, and yet when I press ctrl + option + o, nothing works, except a display of "There is no such option." I've done everything per the earlier threads on the matter, and still nothing. Can someone look into this, because nobody's closed the issue yet. Any suggestions?

Whitespace issues

Hey! Thanks for this awesome package. I wanted to mention two small, related issues I had:

  1. Feature Request: I'm a tabs guy (don't hate me if you are not!) It would be cool if the package could adhere to whatever is set within your atom whitespace preferences instead of just being spaces by default.
  2. Bug: I have another package which converts spaces to tabs, but this was a little difficult because there seems to be one extra space on many of the lines of code. See the screenshot for reference. Each dot represents a space character.

screen shot 2018-07-29 at 2 33 39 pm

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.