• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

css-edit-groups

Jump to CSS @group markers like CSSEdit.
  • #css
  • #edit
  • #group
  • #css-edit-group
  • #cssedit-group
ekonstantinidis
0.4.2 2,321
4
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

CSS Edit Groups - Atom Package Build Status

An Atom editor package to jump to CSS, LESS and SASS @group markers like CSSEdit.

Whenever you are inside a CSS, LESS or SASS file that contains CSS Edit's group information (like /* @group Headings */ ) press cmd-L and you will be presented with a navigation list to jump around within the CSS file.

Example CSS/LESS/SASS

/* @group Colors */

    // Theme Colors
    @ThemeBlue: #0a65a3;

    // Colors
    @White: #FFF;

/* @end Colors */

/* @group Navbar */

    .navbar {
        background-color: @ThemeBlue;
        color: @White;
    }

/* @end Navbar */

Snippet Included

It's really simple to create a group. All you have to do is type group and press tab. Then the snippet will automatically get created and all you have to do is type the name of the group. It is automatically typed in the start and the end of the group.

/* @group MyCustomGroup */

/* @end MyCustomGroup */

Default Keybindings

By default the keybinding for this package is cmd-L.

Note: This will override the atom's default Select Line keybinding. If you do use this keybinding then read the next section on how to put it back and set a custom one for css-edit-groups.

Override Keybindings

Open your keymap from Atom -> Open your keymap. The example below resets Atom's default keybinding for cmd-L and sets css-edit-groups to shift-cmd-L.

'atom-text-editor':
  'cmd-L': 'editor:select-line'
  'shift-cmd-L': 'css-edit-groups:toggle'

Credits

  • David Rapson: cssedit-groups
  • Kotrotsos: sublime-cssedit-groups

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by