From 56ba00e213fca2bf91f057a5c77b896f76f2537d Mon Sep 17 00:00:00 2001 From: sammyette Date: Sun, 29 Dec 2024 15:25:34 -0400 Subject: [PATCH] docs: fix hilbish.vimAction doc --- docs/hooks/hilbish.md | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/docs/hooks/hilbish.md b/docs/hooks/hilbish.md index d5d8a48..038b721 100644 --- a/docs/hooks/hilbish.md +++ b/docs/hooks/hilbish.md @@ -43,5 +43,29 @@ The notification. The properties are defined in the link above.
-+ `hilbish.vimAction` -> actionName, args > Sent when the user does a "vim action," being something -like yanking or pasting text. See `doc vim-mode actions` for more info. +## hilbish.cd +Sent when the current directory of the shell is changed (via interactive means.) +If you are implementing a custom command that changes the directory of the shell, +you must throw this hook manually for correctness. + +#### Variables +`string` **`path`** +Absolute path of the directory that was changed to. + +`string` **`oldPath`** +Absolute path of the directory Hilbish *was* in. + +
+ +## hilbish.vimAction +Sent when the user does a "vim action," being something like yanking or pasting text. +See `doc vim-mode actions` for more info. + +#### Variables +`string` **`actionName`** +Absolute path of the directory that was changed to. + +`table` **`args`** +Table of args relating to the Vim action. + +