Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Ability to list only aliases #1048

Open
1 task done
enchant97 opened this issue Feb 4, 2025 · 0 comments
Open
1 task done

Ability to list only aliases #1048

enchant97 opened this issue Feb 4, 2025 · 0 comments

Comments

@enchant97
Copy link

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant