Skip to content

Add Global Ignore #118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open

Add Global Ignore #118

wants to merge 16 commits into from

Conversation

404Wolf
Copy link
Collaborator

@404Wolf 404Wolf commented Apr 23, 2025

Add support for a global .vtignores.

  • vt config set globalIgnoreFiles=/foo/bar/buzz.txt to add a "global" ignore file.
  • vt config ignore to edit the global ignore file in your default editor.
  • vt config where to get path to config files.

Default will look for global ignore at ~/.config/vt/.vtignore

@404Wolf 404Wolf requested a review from maxmcd April 24, 2025 13:59
@maxmcd
Copy link
Member

maxmcd commented Apr 25, 2025

What is the hope here? What kind of things would we expect in the global ignore?

@404Wolf
Copy link
Collaborator Author

404Wolf commented Apr 26, 2025

What is the hope here? What kind of things would we expect in the global ignore?

Mostly the same that you get of global .gitignores--

It lets you ignore things without pushing the thing that you ignored in the vtignore. Like, I have .direnv in all my .vtignores, but I don't think most val town users use direnv, and if I were working on a PR to someone's val, I wouldn't want to modify their .vtignore. I added .direnv to my global ignore, which isn't pushed anywhere, and it solves the problem. This applies also to all classes of files that live in project folders that you wouldn't want to push your .vtignore for the project with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants