Skip to content

Custom \footnote-like commands in ltex.latex.commands #151

Description

@sim642

Is your feature request related to a problem? Please describe.
Commands like \footnote and \todo have hard-coded behavior, where they are excluded from the sentence being checked but also their argument is checked separately.
I define a number of custom TODO commands like \todoTypeset, \todoConsistency, etc., for different categories of TODOs. Currenetly there's no way to get those to be treated similarly.

Describe the solution you'd like
The values in ltex.latex.commands include something like separate, which allows any arbitrary command to be treated like \footnote. Then I could just specify all my custom TODO commands there.

Describe alternatives you've considered
Currently I've had to resort to using ignore for them in ltex.latex.commands instead, but that means their arguments are not actually being checked, which is a problem.

Additional context
This exact thing was requested for LTeX in the past here: valentjn/vscode-ltex#254, but the issue was just closed due to some misconfiguration and misunderstanding.
I think it still makes sense to offer such customizability, because LTeX+ isn't ever going to hard-code my custom TODO commands for obvious reasons.

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