Fix Yazi shell integration and enhance Kitty configuration
**Yazi Integration Fixes:** - Fixed y() function in .zshrc to prevent shell exit when quitting Yazi - Updated kitty-yazi.sh script to use AppleScript for proper tab creation - Script now focuses existing Kitty window and creates new tab instead of new window **Kitty Configuration Enhancements:** - Added advanced font rendering with ligature support - Improved cursor animations and visual effects - Enhanced tab bar with powerline styling and fade effects - Added background blur and better transparency handling - Optimized performance settings (rendering delays, scrolling) - Added comprehensive keyboard shortcuts for window/tab management - Improved URL handling and text selection features - Added notification system for long-running commands 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
21
scripts/kitty-yazi.sh
Executable file
21
scripts/kitty-yazi.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Check if kitty is running
|
||||
if pgrep -f "kitty" > /dev/null; then
|
||||
# Focus kitty and send the command to create a new tab with y function
|
||||
osascript <<EOF
|
||||
tell application "kitty"
|
||||
activate
|
||||
tell application "System Events"
|
||||
keystroke "t" using {command down}
|
||||
delay 0.2
|
||||
keystroke "y"
|
||||
keystroke return
|
||||
end tell
|
||||
end tell
|
||||
EOF
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# If no kitty running, open new instance
|
||||
open -a kitty
|
||||
Reference in New Issue
Block a user