Skip to content

Commit

Permalink
Added workaround for test file writing by VIM
Browse files Browse the repository at this point in the history
  • Loading branch information
frzb committed Jan 14, 2025
1 parent 9532fb9 commit 12f3aa2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ def create_output(self):

def on_closed(self, event):
print(event)
# if event.src_path in ["./input/resume.json", "./input/templates/template.j2"]:
if event.src_path in ["./input"]:
print(event.src_path)
# VIM is writing a test file called 4913, so we need exclude this to trigger a build
# https://github.com/vim/vim/blob/30377e0fe084496911e108cbb33c84cf075e6e33/src/bufwrite.c#L1210
if "4913" not in event.src_path:
print(f"Detected relevant changes in {event.src_path}")
self.create_output()

Expand Down

0 comments on commit 12f3aa2

Please sign in to comment.