aergonaut / atom-erb Goto Github PK
View Code? Open in Web Editor NEWERB support for Atom
Home Page: https://atom.io/packages/atom-erb
License: MIT License
ERB support for Atom
Home Page: https://atom.io/packages/atom-erb
License: MIT License
The wiki describes using cmd + shift + .
but I found out that it's actually ctrl
and not cmd
On french keyboard, the shortcut is not cmd+shift+. but ctrl+shift+/ : I'm glad I found it by myself ! This is so helpful, I hope it will soon be better documented and have the toggle feature.
I know this is already in the README, but I figured I'd create an issue for it because I'd love to see the ability.
Hitting the key binding multiple times would cycle through the following rather than adding nested ERB tags.
<%= %>
<%= -%>
<%- -%>
<%- %>
<% %>
<%# %>
Atom will no longer load this package after June 1st without changes. There are a couple deprecations on the latest version (0.1.0
) of this package:
activationCommands
instead of activationEvents
in your package.json Commands should be grouped by selector as follows: json "activationCommands": { "atom-workspace": ["foo:bar", "foo:baz"], "atom-text-editor": ["foo:quux"] }
atom.views.getView(atom.workspace)
, which returns an HTMLElement.Visit https://gist.github.com/benogle/6d09e295c84b717ef9b4 and search for your package name to see up-to-date deprecations.
If this package has been replaced by another package or functionality in core, please reply with this information.
See atom/atom#6867 for more info. Thanks!
atom.workspaceView is no longer available.
In most cases you will not need the view. See the Workspace docs for
alternatives: https://atom.io/docs/api/latest/Workspace.
If you do need the view, please use atom.views.getView(atom.workspace)
,
which returns an HTMLElement.
Atom.Object.defineProperty.get (/Applications/Atom.app/Contents/Resources/app/src/atom.js:54:11)
Object.activate (/Users/davidcalhoun/.atom/packages/atom-erb/lib/atom-erb.coffee:3:9)
In package.json/description. :)
In keymaps/atom-erb.cson: Use the atom-workspace
tag instead of the workspace
class.
The context menu CSON format has changed. Please see
https://atom.io/docs/api/latest/ContextMenuManager
atom.workspaceView is no longer available.
In most cases you will not need the view. See the Workspace docs for
alternatives: https://atom.io/docs/api/latest/Workspace.
If you do need the view, please use atom.views.getView(atom.workspace)
,
which returns an HTMLElement.
Atom.Object.defineProperty.get (/Applications/Atom.app/Contents/Resources/app/src/atom.js:54:11)
Object.erb (/Users/davidcalhoun/.atom/packages/atom-erb/lib/atom-erb.coffee:6:18)
Hey, since the last update in Atom, the keymap stopped working, but the command Atom: Atom-erb using the Command Pallete (cmd+shift+p) still works. Anyone is experiencing this as well?
[Enter steps to reproduce below:]
Atom Version: 0.190.0
System: Mac OS X 10.10.3
Thrown From: atom-erb package, v0.1.0
Failed to activate the atom-erb package
At Cannot read property 'command' of undefined
TypeError: Cannot read property 'command' of undefined
at Object.module.exports.activate (/Users/klynton/Dropbox/Apps/Atom/packages/atom-erb/lib/atom-erb.coffee:4:32)
at Package.module.exports.Package.activateNow (/Applications/Atom.app/Contents/Resources/app/src/package.js:225:19)
at /Applications/Atom.app/Contents/Resources/app/src/package.js:206:30
at Package.module.exports.Package.measure (/Applications/Atom.app/Contents/Resources/app/src/package.js:152:15)
at Package.module.exports.Package.activate (/Applications/Atom.app/Contents/Resources/app/src/package.js:199:14)
at PackageManager.module.exports.PackageManager.activatePackage (/Applications/Atom.app/Contents/Resources/app/src/package-manager.js:435:21)
at /Applications/Atom.app/Contents/Resources/app/src/package-manager.js:419:29
at Config.module.exports.Config.transact (/Applications/Atom.app/Contents/Resources/app/src/config.js:302:16)
at PackageManager.module.exports.PackageManager.activatePackages (/Applications/Atom.app/Contents/Resources/app/src/package-manager.js:414:19)
at PackageManager.module.exports.PackageManager.activate (/Applications/Atom.app/Contents/Resources/app/src/package-manager.js:395:46)
{
"core": {
"ignoredNames": [
"*.un~"
],
"disabledPackages": [
"autocomplete",
"remember-session",
"pain-split",
"vim-mode",
"atom-lint"
],
"themes": [
"one-dark-ui",
"atom-light-syntax"
],
"projectHome": "/Users/klynton/src",
"audioBeep": false
}
}
# User
atom-django, v0.2.1
atom-erb, v0.1.0
atom-runner, v2.3.0
autocomplete-clang, v0.6.4
autocomplete-plus, v2.9.0
autoflow-diffable, v0.3.1
color-picker, v1.6.0
command-logger, v0.22.0
django-templates, v0.4.0
editor-stats, v0.17.0
git-plus, v4.4.11
go-plus, v3.3.6
language-puppet, v0.11.0
linter, v0.12.0
linter-clang, v2.25.1
linter-csslint, v0.0.11
linter-erb, v0.1.0
linter-flake8, v1.3.0
linter-flow, v0.1.4
linter-js-yaml, v1.0.0
linter-jsxhint, v0.1.1
linter-pep8, v0.1.0
linter-php, v0.0.12
linter-puppet-lint, v0.2.8
linter-pyflakes, v0.0.4
linter-shellcheck, v0.0.7
linter-tidy, v1.0.0
react, v0.11.2
tabs-to-spaces, v0.9.2
# Dev
No dev packages
cmd-shift-. is not working. I have found that ctrl-shift-. will provide the erb tag.
Using: Mac OSX EL CAPITAN v10.11.3
I am not sure if I am doing something wrong, but I am unable to get the keybindings to change. Even after altering them an d restarting Atom -it still does not work. I can get it to stop using the default entirely, but I am having trouble assigning a new keybinding.
Am I missing something? Thanks
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.