aboutsummaryrefslogtreecommitdiff
path: root/notes.txt
diff options
context:
space:
mode:
Diffstat (limited to 'notes.txt')
-rw-r--r--notes.txt23
1 files changed, 23 insertions, 0 deletions
diff --git a/notes.txt b/notes.txt
new file mode 100644
index 00000000..779c7a21
--- /dev/null
+++ b/notes.txt
@@ -0,0 +1,23 @@
+Hooks:
+
+ p10k-on-init (may be called while zle is active or not)
+ p10k-on-pre-prompt (may be called while zle is active or not)
+ p10k-on-post-prompt
+ p10k-on-post-widget
+
+Parameters accessible from all hooks:
+
+ P9K_PROMPT=regular|instant
+ P9K_TTY=old|new
+
+Parameters accessible from p10k-on-post-widget:
+
+ All regular zle parameters (WIDGET, BUFFER, CURSOR, etc.).
+ P9K_COMMAND
+ P9K_LASTCOMMAND
+ P9K_LASTBUFFER
+ P9K_LASTCURSOR
+
+`P9K_LAST*` parameters are set if and only if this isn't the first p10k-on-post-widget call after p10k-on-init.
+
+# TODO: call all hooks with user options