first commit

This commit is contained in:
Arctic 2025-07-04 11:48:40 -05:00
commit 0610f4aeab
130 changed files with 9897 additions and 0 deletions

16
fn/z4h-forward-zword Normal file
View file

@ -0,0 +1,16 @@
#!/usr/bin/env zsh
eval "$_z4h_opt"
local word buf
repeat ${NUMERIC:-1}; do
buf=$PREBUFFER$BUFFER
for word in ${(Z:n:)buf} ''; do
(( $#buf < $#RBUFFER )) && break
buf=${${buf##[[:space:]]#}:$#word}
done
CURSOR=$(($#BUFFER - $#buf))
if (( CURSOR > _z4h_cursor_max() )); then
(( --CURSOR ))
fi
done
return 0