Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- myProject = Scope.register
- name: 'my-project'
- condition: -> if someThing() then true else false
- description: "Custom scope that is active when I'm working on my project"
- Scope.register
- name: 'my-project:js'
- description: "Active when I'm working on a js file in my project"
- condition: -> currentFileExt() is '.js'
- parent: 'my-project'
- Scope.register
- name: 'my-project:css'
- description: "Active when I'm working on a CSS file in my project"
- condition: -> currentFileExt() is '.css'
- parent: 'my-project'
- # a scope can also have multiple parents, just provide a 'parents' array instead of 'parent'
- Scope.register
- name: 'english-dictation'
- parents: ['microsoft-word', 'pages', 'text-edit']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement