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

Add scope/class to DOM while next tab stop exists #130

Open
@coopermaruyama

Description

@coopermaruyama

When I'm trying to go to the next tab stop (by pressing tab) I often get unwanted behavior due to other packages using the same key. I noticed that Atom adds a .has-selection class to atom-text-editor in the DOM if some text is highlighted, so I've used that scope to override tab and ensure only snippets:next-tab-stop is executed.

However, if I need to change the value of something while going through tab-stops, .has-selection selector is deactivated so it's not really a great solution. If you can add something like next-tab-stop-exists as a class while another tab stop exists, I think it would be a great enhancement as it would solve this issue and offer more flexibility to user without affecting other packages.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions