From b79a88ce69156328f6ede2cc65705c7dcb6758b7 Mon Sep 17 00:00:00 2001 From: Kyle Gottfried <6462596+Spitfire1900@users.noreply.github.com> Date: Fri, 22 Mar 2024 23:32:55 -0400 Subject: [PATCH] Add some debugging to event_hooks --- xontrib_pygitstatus/event_hooks.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xontrib_pygitstatus/event_hooks.py b/xontrib_pygitstatus/event_hooks.py index 3b8e33c..fe51fc0 100644 --- a/xontrib_pygitstatus/event_hooks.py +++ b/xontrib_pygitstatus/event_hooks.py @@ -1,10 +1,17 @@ +import sys + + def activate_env(path: str): # lazy import to reduce startup cost from xontrib.voxapi import Vox vox = Vox() + # print('Path: %s' % path, file=sys.stderr) vox.activate(path) def listen_cd(olddir, newdir, **_): + '''Honors on_chdir Protocol: + https://xon.sh/events.html#on-chdir + ''' activate_env(newdir)