# Ghostty Configuration
# Translated from WezTerm settings

# Window settings
window-decoration = auto
window-padding-x = 0
window-padding-y = 0
background-opacity = 0.98
unfocused-split-opacity = 0.6

# Cursor settings
cursor-style = block
cursor-style-blink = true

# Scrollbar
scrollback-limit = 10000

# Tab bar (disabled like in WezTerm)
gtk-tabs-location = hidden

# Mouse behavior
focus-follows-mouse = true

# Shell on Windows (Ghostty handles this automatically, but can be overridden)
# shell-integration = detect

# BiDi support
text-bidi = true

# Keybindings
# Leader key equivalent: Ghostty uses key sequences with >
# WezTerm leader was: CTRL+Space

# Split panes (ALT+SHIFT++ and ALT+SHIFT+_)
keybind = alt+shift+plus=new_split:right
keybind = alt+shift+underscore=new_split:down

# Close pane (CTRL+SHIFT+W)
keybind = ctrl+shift+w=close_surface

# Rotate panes (CTRL+SHIFT+|)
keybind = ctrl+shift+backslash=rotate_split

# Toggle pane zoom (CTRL+Z)
keybind = ctrl+z=toggle_split_zoom

# Pane selection/swap (CTRL+9 and CTRL+0)
keybind = ctrl+nine=goto_split:previous
keybind = ctrl+zero=goto_split:next

# Resize panes (CTRL+SHIFT+Arrows)
keybind = ctrl+shift+left=resize_split:left,10
keybind = ctrl+shift+right=resize_split:right,10
keybind = ctrl+shift+up=resize_split:up,10
keybind = ctrl+shift+down=resize_split:down,10

# Navigate panes (ALT+Arrows)
keybind = alt+left=goto_split:left
keybind = alt+right=goto_split:right
keybind = alt+up=goto_split:top
keybind = alt+down=goto_split:bottom
