Skip to content

Detect paths and highlight them if missing #2907

Description

@Myzel394

Often when dealing with config files, a lot of paths are used. Being able to easily detect those paths when highlighted and see if they are missing would be such as live saver.

I propose to add an option --show-paths with the options:

  • --show-paths=missing, which will only highlight missing paths
  • --show-paths or --show-paths=all, which will highlight existing paths in green and non-existing paths in red (or in different colors dependent on the theme)

To detect paths I'd use a simple regex.

I can open a PR if you're okay with this idea and this implementation. I haven't looked much into the code, but I know a bit about Rust.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions