Skip to content
/ vzit Public

Tool and resource for using tab indentation in Zig projects and viewing diffs in non-conforming files.

License

Notifications You must be signed in to change notification settings

ttytm/vzit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VZiT

Simple tool that enables the use of tabs in Zig projects and allows to view formatting diffs while still utilizing zig fmt. Written in V.

Quick Start

Feature Overview

  • Use tabs for indentation, format with zig fmt

    vzit-preview.mp4
  • View diffs with your preferred tool

    Automatically detected (e.g., delta) Or explicitly set (e.g., diff)
  • Usage

    Usage: vzit [flags] <path>
    
    Formatter and diff viewer utilizing zig fmt.
    By default, formatted output is written to stdout.
    
    Flags:
      -w  --write         Modifies non-conforming files in-place.
      -l  --list          Prints paths of non-conforming files. Exits with an error if any are found.
      -d  --diff          Prints differences of non-conforming files. Exits with an error if any are found.
          --use-spaces    [TODO] Allows usage when kept in custody in a space-indented codebase.
      -h  --help          Prints help information.
      -v  --version       Prints version information.
    

Disclaimer

Maintaining quality throughout development will be paramount. However, it is still an early release. Until a stable 1.0 release is available, minor versions (0.<minor>.*) may contain breaking changes.

This is a spare time project. Please take it easy if there are delays in replying.

About

Tool and resource for using tab indentation in Zig projects and viewing diffs in non-conforming files.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published