Skip to content

Ability to list only aliases #1048

@enchant97

Description

@enchant97

Is there an existing issue for this?

  • I have searched the existing issues

What problem does this feature solve?

Would be nice to list only Aliases, since currently you can only list names or names and aliases.

What feature do you propose?

A function like lexers.Aliases() which will only returns the aliases or the lexer name if no aliases exist, maybe it could have a flag where it will skip the lexer if no aliases exist or use the name instead.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions