Skip to content

Allow interactive usage with prompt to confirm that changes are written #397

@ninsbl

Description

@ninsbl

When spellchecking a lager project with lots of history and contributions from all over the world for the first time, I would like to confirm each change before it is written and eventually collect cases to be added to exceptions from automatic spell correction.

Therefore, an interactive flag, that adds a prompt before changes are written would be very useful for initial spell checking.

Activity

epage

epage commented on Jan 5, 2022

@epage
Collaborator

Until this is implemented, a project using git can do typos --write-changes && git add -p and use git to interactively stage changes for commit.

ninsbl

ninsbl commented on Jan 5, 2022

@ninsbl
Author

Cool! Thanks for the swift reply and for the suggestion on the workaround! I did not know and will try!

epage

epage commented on Jan 5, 2022

@epage
Collaborator

Implementation note: while an MVS will just be conditional modifying, it'd be great if we later supported asking the user if they want to put a term in the approved-words list. We can use toml_edit to non-destructively edit the file.

marked Fix typos trough command line #1233 as a duplicate of this issue on Feb 19, 2025
added
S-triageStatus: New; needs maintainer attention.
and removed
S-triageStatus: New; needs maintainer attention.
on Feb 19, 2025
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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @epage@ninsbl

      Issue actions

        Allow interactive usage with prompt to confirm that changes are written · Issue #397 · crate-ci/typos