Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. myProject = Scope.register
  2. name: 'my-project'
  3. condition: -> if someThing() then true else false
  4. description: "Custom scope that is active when I'm working on my project"
  5.  
  6. Scope.register
  7. name: 'my-project:js'
  8. description: "Active when I'm working on a js file in my project"
  9. condition: -> currentFileExt() is '.js'
  10. parent: 'my-project'
  11.  
  12. Scope.register
  13. name: 'my-project:css'
  14. description: "Active when I'm working on a CSS file in my project"
  15. condition: -> currentFileExt() is '.css'
  16. parent: 'my-project'
  17.  
  18. # a scope can also have multiple parents, just provide a 'parents' array instead of 'parent'
  19. Scope.register
  20. name: 'english-dictation'
  21. parents: ['microsoft-word', 'pages', 'text-edit']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement