@kecan0406/ttheme 1.2.27 → 1.2.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/ttheme.js +2 -2
- package/bin/ttheme.js.map +1 -1
- package/dist/manifest.json +1 -1
- package/package.json +1 -1
- package/shell/adapters/ghostty.zsh +10 -1
- package/shell/ttheme.zsh +2 -0
package/dist/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -145,12 +145,21 @@ __tt_ghostty_take() {
|
|
|
145
145
|
rec=(${=${"$(<$TTHEME_GHOSTTY_TABS/$key)"}})
|
|
146
146
|
[[ $rec[1] == "$ans[3]" ]] || TTHEME_GHOSTTY_IDLE=0
|
|
147
147
|
pal=${rec[3]#-}
|
|
148
|
-
[[ $rec[2] != - && -z $TTHEME_STARTUP ]]
|
|
148
|
+
if [[ $rec[2] != - && -z $TTHEME_STARTUP ]]; then
|
|
149
|
+
pal=""
|
|
150
|
+
(( TTHEME_GHOSTTY_IDLE )) || __tt_ghostty_unpaint $key $rec[1] $rec[4]
|
|
151
|
+
fi
|
|
149
152
|
[[ -n $pal && -n ${TTHEME_PALETTE[$pal]} ]] || return 0
|
|
150
153
|
__tt_shown "$pal" force && __tt_reload_ghostty
|
|
151
154
|
return 0
|
|
152
155
|
}
|
|
153
156
|
|
|
157
|
+
__tt_ghostty_unpaint() {
|
|
158
|
+
[[ $3 == /dev/* && -w $3 ]] || return 0
|
|
159
|
+
{ print -rn -- $'\e]104\e\\\e]110\e\\\e]111\e\\\e]112\e\\\e]117\e\\' >| $3 } 2>/dev/null || return 0
|
|
160
|
+
__tt_put $TTHEME_GHOSTTY_TABS/$1 "$2 - - $3" 2>/dev/null
|
|
161
|
+
}
|
|
162
|
+
|
|
154
163
|
__tt_ghostty_tick() {
|
|
155
164
|
local f key
|
|
156
165
|
local -a at rec
|
package/shell/ttheme.zsh
CHANGED
|
@@ -360,6 +360,7 @@ __tt_dir_rule() {
|
|
|
360
360
|
|
|
361
361
|
__tt_dir_sync() {
|
|
362
362
|
local REPLY="" spec=""
|
|
363
|
+
[[ -n $TTHEME_STARTUP ]] || return 0
|
|
363
364
|
__tt_dir_rule "$PWD" || REPLY=""
|
|
364
365
|
if [[ -n $REPLY ]]; then
|
|
365
366
|
spec=${TTHEME_PALETTE[$TTHEME_PINS[$REPLY]]}
|
|
@@ -493,6 +494,7 @@ __tt_ran() {
|
|
|
493
494
|
local REPLY name
|
|
494
495
|
TTHEME_RAN=1
|
|
495
496
|
[[ ${${(z)3}[1]:t} == tmux ]] && TTHEME_MUXED=1
|
|
497
|
+
[[ -n $TTHEME_STARTUP ]] || return 0
|
|
496
498
|
[[ $3 == *ssh* ]] && __tt_ssh_host "$3" && __tt_ssh_rule "$REPLY" || return 0
|
|
497
499
|
name=$TTHEME_PINS[$REPLY]
|
|
498
500
|
TTHEME_SSH_BACK=$TTHEME_SPEC TTHEME_SSH_SPEC=$TTHEME_PALETTE[$name]
|