Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

allow override of language for checking a file / selection #557

Open
GitMensch opened this issue Mar 11, 2022 · 0 comments
Open

allow override of language for checking a file / selection #557

GitMensch opened this issue Mar 11, 2022 · 0 comments
Labels
1-feature-request ✨ Issue type: Request for a desirable, nice-to-have feature

Comments

@GitMensch
Copy link

Is your feature request related to a problem? Please describe.
I commonly work with files that have multiple languages in them. Using magic comments #21 helps for files we actually edit, possibly for longer time, but it won't help for read-only files or for "just a quick look".

Single strings may be in different languages, especially with quoting. There's no option to select a language for ltex.checkSelection at all, I guess it uses the configured "main" language.

Describe the solution you'd like
Add an optional parameter to ´ltex.checkCurrentDocumentandltex.checkSelection (or new commands ´ltex.checkCurrentDocumentWith and ltex.checkSelectionWith) to allow override of the language used to check.

Describe alternatives you've considered
Have multiple documents open with a magic comment, then paste the parts to check there, then do the check. Works, but takes quite some time.

Additional context
None.

@GitMensch GitMensch added the 1-feature-request ✨ Issue type: Request for a desirable, nice-to-have feature label Mar 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1-feature-request ✨ Issue type: Request for a desirable, nice-to-have feature
Projects
None yet
Development

No branches or pull requests

1 participant