All Projects → execjosh → Atom File Types

execjosh / Atom File Types

Licence: mit
Specify additional file types for languages.

Programming Languages

coffeescript
4710 projects
language
365 projects

Projects that are alternatives of or similar to Atom File Types

Github
Git and GitHub integration for Atom
Stars: ✭ 880 (+1529.63%)
Mutual labels:  atom, atom-package
Envy
Text editing supercharger
Stars: ✭ 35 (-35.19%)
Mutual labels:  atom, atom-package
atom-ide-datatip
Datatips for Atom IDE
Stars: ✭ 30 (-44.44%)
Mutual labels:  atom, atom-package
atom-ide-crystal
Crystal IDE package for Atom using the Scry Language Server
Stars: ✭ 24 (-55.56%)
Mutual labels:  atom, atom-package
Mighty React Snippets
Crafty React & Redux snippets for Atom Editor
Stars: ✭ 16 (-70.37%)
Mutual labels:  atom, atom-package
coeditor
Yet Another Pair Programming Package for Atom.
Stars: ✭ 27 (-50%)
Mutual labels:  atom, atom-package
Markdown Preview Enhanced
One of the 'BEST' markdown preview extensions for Atom editor!
Stars: ✭ 3,478 (+6340.74%)
Mutual labels:  atom, atom-package
set-syntax
An Atom package that creates easy Command Palette commands for setting the syntax of the current file
Stars: ✭ 24 (-55.56%)
Mutual labels:  atom, atom-package
Prettier Atom
An atom package for the prettier formatter.
Stars: ✭ 750 (+1288.89%)
Mutual labels:  atom, atom-package
Atom Project Manager
Project manager for the Atom editor
Stars: ✭ 519 (+861.11%)
Mutual labels:  atom, atom-package
hey-pane
👋 atom package to enlarge the active pane
Stars: ✭ 43 (-20.37%)
Mutual labels:  atom, atom-package
Atom Sloc
Atom SLOC package for the statusbar
Stars: ✭ 10 (-81.48%)
Mutual labels:  atom, atom-package
atom-ide-scala
Scala & Dotty support for Atom IDE (🧟‍♂️ zombie repo)
Stars: ✭ 47 (-12.96%)
Mutual labels:  atom, atom-package
Go Signature Statusbar
Display the signature of the current Go function under the cursor in the status bar of Atom
Stars: ✭ 44 (-18.52%)
Mutual labels:  atom, atom-package
atom-zurb-foundation
Zurb Foundation 6 for sites snippets.
Stars: ✭ 31 (-42.59%)
Mutual labels:  atom, atom-package
save-workspace-atom-plugin
If you work with few projects same time this plugin give you the opportunity to change your workspace faster. Save your workspace, all your opened tabs, cursor position, etc. for each task you are working with.
Stars: ✭ 24 (-55.56%)
Mutual labels:  atom, atom-package
encourage-atom
An Atom extension that adds little encouragements while you work
Stars: ✭ 24 (-55.56%)
Mutual labels:  atom, atom-package
atom-tree-view-sort
Add a sorting feature for the Atom tree-view package.
Stars: ✭ 24 (-55.56%)
Mutual labels:  atom, atom-package
Md Writer
✒️ Make Atom a better Markdown/AsciiDoc editor for writers and bloggers
Stars: ✭ 326 (+503.7%)
Mutual labels:  atom, atom-package
Vuejs Snippets
Collection of Vuejs 2.0+ snippets
Stars: ✭ 17 (-68.52%)
Mutual labels:  atom, atom-package

file-types package

Installs! Version! License

Specify additional file types for languages.

Note: A subset of this functionality is now available directly in Atom--see Customizing Language Recognition in the Flight Manual.

Matchers

To map a filetype to a different language, use the file-types option in your config.json (via the Atom -> Config... menu). Specify a pattern to match for the key (in bash-like glob format) and the new scope name for the value.

For example, the .hbs extension defaults to the handlebars grammar. To override this to the text.html.htmlbars grammar (provided by the separately installable html-htmlbars), add the following rule to your config.cson:

"*":  # Be sure to put "file-types" under the "*" key
  "file-types":
    "*.hbs": "text.html.htmlbars"

Use the double-star-and-slash notation (** and /) to match against the whole path.

"*":
  "file-types":
    "**/app/tmpl/*.hbs": "text.html.htmlbars"
    "**/text_files/*": "text.plain"

Precedence

The longest glob is given precedence.

For example, with the following settings, all three globs end in .liquid.

"*":
  "file-types":
    "*.css.liquid": "source.css"
    "*.liquid": "text.html.basic"
    "*.scss.liquid": "source.css.scss"

Both *.liquid and *.css.liquid would match a file named super_awesome_file.css.liquid; however, since *.css.liquid is longest, it wins and the source.css scope name would be used.

This is usually not a problem unless multiple globs of equal length match the filename. When that happens, a warning is displayed and the scope name associated with the "alphabetically last" glob is used.

Consider the following settings:

"*":
  "file-types":
    "*_spec.rb": "source.ruby.rspec"
    "*_sp?c.rb": "text.plain"

Both of these would match a file named super_controller_spec.rb; however, *_spec.rb would win because when sorted alphabetically, it comes last (i.e., "*_sp?c.rb" < "*_spec.rb").

Scope Names

The scope name for a grammar can be found in the settings for the corresponding language package. For example, the scope name for CoffeeScript's grammar (as provided by the language-coffee-script package) is source.coffee.

To get a list of all scope names registered in your Atom instance, open the Developer Tools Console and execute the following:

console.log(atom.grammars.getGrammars().map(g => g.scopeName).sort().join('\n'))

Here is a list of the scope names available by default in Atom v1.8.0:

  • source.c
  • source.cake
  • source.clojure
  • source.coffee
  • source.coffee.jsx
  • source.cpp
  • source.cs
  • source.css
  • source.css.less
  • source.css.scss
  • source.csx
  • source.gfm
  • source.git-config
  • source.go
  • source.gotemplate
  • source.java
  • source.java-properties
  • source.js
  • source.js.jsx
  • source.js.rails source.js.jquery
  • source.js.regexp
  • source.js.regexp.replacement
  • source.json
  • source.litcoffee
  • source.makefile
  • source.nant-build
  • source.objc
  • source.objcpp
  • source.perl
  • source.perl6
  • source.plist
  • source.python
  • source.regexp.python
  • source.ruby
  • source.ruby.rails
  • source.ruby.rails.rjs
  • source.sass
  • source.shell
  • source.sql
  • source.sql.mustache
  • source.sql.ruby
  • source.strings
  • source.toml
  • source.yaml
  • text.git-commit
  • text.git-rebase
  • text.html.basic
  • text.html.erb
  • text.html.gohtml
  • text.html.jsp
  • text.html.mustache
  • text.html.php
  • text.html.ruby
  • text.hyperlink
  • text.junit-test-report
  • text.plain
  • text.plain.null-grammar
  • text.python.console
  • text.python.traceback
  • text.shell-session
  • text.todo
  • text.xml
  • text.xml.plist
  • text.xml.xsl

Caveats

You probably don't want to assign the same file type to multiple languages...

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].