Skip to content

Cycle threw a custom list of languages #229

Description

@AliceRixte

Is your feature request related to a problem? Please describe.

  • Problem 1 : I use VS code as a Personal Knowledge Management. To do so, I have a folder containing hundreds of markdown files, both in english and in french. When switching from one file to the other, I get LTeX+ complaining about english mistakes, as my primary language for this folder is set in french (ltex.language : "fr").
  • Problem 2 : For writing this issue, I'm using VS Code instead of the Github editor. This is a file I won't even save, but it is nice, as a non-native English speaker, to have LTeX complaining about my English mistakes. I added a magic comment <!-- LTeX: language=en-US --> at the start of the file, but a keyboard shortcut would be so much more comfortable, especially since I will never come back to that file again.

Describe the solution you'd like
I'd like to have a keyboard shortcut that cycles threw a list of languages that I have defined in my workspace JSON configuration. For instance, my configuration would be something like

"ltex.languages : ["fr","en:US"]

When typing something like Ctrl + Alt + L, LTeX+ would alternate between French and English.

Describe alternatives you've considered
I can use an LTeX comment at the beginning of each file in English <!-- LTeX: language=en-US -->. But I do not want to do that, as it would break my workflow : I want to very quickly take notes, not having to fill in a header of various things (like an LTeX comment).

Additional context
I have noticed that LTeX is healthy for my brain : my English (and also my French !) is improving when using it all the time, even in personal files not destined to publication. This is why I use it when taking personal notes. Thank you for this amazing tool!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    1-feature-request ✨Issue type: Request for a desirable, nice-to-have feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions