Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Sass/Less-like '&' functionality? #109

Open
danielbayley opened this issue Jan 12, 2016 · 1 comment
Open

Sass/Less-like '&' functionality? #109

danielbayley opened this issue Jan 12, 2016 · 1 comment

Comments

@danielbayley
Copy link

Would it be theoretically possible to do something like this for example…

'.platform-darwin atom-workspace atom-text-editor':
    'key-s': 'some:command'
    '&:not([mini])': # or .parent-class & or &.another-child-class
        'key-z': 'another:command'

rather than…

'.platform-darwin atom-workspace atom-text-editor':
    'key-s': 'some:command'
'.platform-darwin atom-workspace atom-text-editor:not([mini])':
    'key-z': 'another:command'

It would do wonders for the maintainability of large config files like the keymap (or snippets for example).

@nathansobo
Copy link
Contributor

It would be possible, but I'm not inclined to add complexity to this component for the time being. We'd like to add a better UI for defining key bindings at some point in the future which could build on the existing data format, and I'm concerned that complicating it could make that more difficult.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants