feridum / atom-html-templates Goto Github PK
View Code? Open in Web Editor NEWA simple extension for Atom.io to generate html5 templates with some other dependencies
License: MIT License
A simple extension for Atom.io to generate html5 templates with some other dependencies
License: MIT License
html5 ctr-alt-o
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 ?!
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>
[Enter steps to reproduce below:]
Atom Version: 1.6.0
System: Mac OS X 10.11.4
Thrown From: atom-html-templates package, v0.1.0
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)
-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)
{
"core": {
"projectHome": "/Volumes/\\#1\\ Mac\\ osx\\ 10.11.3\\ 240gb/CodeProjects/GitHub",
"themes": [
"one-dark-ui",
"base16-tomorrow-dark-theme"
]
}
}
# 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
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]
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?
Hey! Thanks for this awesome package. I wanted to mention two small, related issues I had:
When I hit the above key combination I get the following error message inside Atom:
There is no such option.
Please can you advise.
David
email: [email protected]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.