Essential commands and shortcuts for daily use
z project # Jump to project directory
cd - # Previous directory
.. # Up one level
ll # List with details
lt # Tree view
ff # Find files interactively
gs # Status
gaa # Add all
gcm "fix: bug" # Commit
gp # Push
gpl # Pull
gl # Log (graph view)
gco - # Previous branch
lazygit # Visual UI
rg "TODO" # Search in files
fd -e py # Find Python files
v file.py # Edit with Neovim
code . # Open VS Code
htop # System monitor
duf # Disk usage
theme # Switch light/dark
update-dotfiles # Update everything
cleanup # Clean caches
Leader = Space
<leader>ff Find files
<leader>fg Grep text
<leader>fb Buffers
<leader>fr Recent
gd Definition
gr References
K Documentation
<leader>ca Actions
<leader>cc Chat
<leader>co Optimize (visual)
<leader>ce Explain (visual)
<leader>gg LazyGit
]c Next change
[c Previous change
Prefix = Ctrl-a
C-a s List sessions
C-a c New window
C-a n Next window
C-a , Rename
C-a | Split vertical
C-a - Split horizontal
C-h/j/k/l Navigate
C-a z Zoom toggle
C-a [ Enter
v Select
y Copy
C-a ] Paste
C-r History search
C-t File picker
ESC Vi mode
TAB Complete
h/l Move left/right
w/b Word forward/back
dd Delete line
u Undo
# Find and edit TODO
v $(rg -l TODO | fzf)
# Update and clean
update-dotfiles && cleanup
# Git sync
gco main && gpl && gco -
# New feature branch
gcb feature/name
# Search and replace
fd -e py -x sd 'old' 'new'
# What's using port 3000?
lsof -i :3000
# Disk usage by directory
dust -d 1
# Network connections
netstat -an | grep LISTEN
# Undo last commit
git undo
# Kill process on port
killport 3000
# Reset shell
exec zsh
# Fix permissions
sudo chown -R $(whoami) .
# Restore Neovim
rm -rf ~/.local/share/nvim
nvim +Lazy
# Check health
nvim +checkhealth
brew doctor
which -a command
# Logs
tail -f log.txt
journalctl -f
# Profile performance
time command
htop
Print with: bat doc/usage/reference.md