Capitulo 3: Atajos de Teclado
Capitulo 3: Atajos de Teclado
Ghostty soporta keybindings flexibles y personalizables. Puedes usar atajos simples o secuencias de multiples teclas al estilo Emacs/Vim.
Anterior: Configuracion basica | Siguiente: Splits y tabs
Sintaxis de keybindings
Los atajos se definen en el archivo de configuracion con la opcion keybind:
keybind = trigger=accion
Modificadores disponibles
| Modificador | Tecla en macOS | Tecla en Linux |
|---|---|---|
ctrl | Control | Control |
alt | Option | Alt |
shift | Shift | Shift |
super | Command | Super/Windows |
Combinar teclas
Usa + para combinar modificadores con teclas:
keybind = ctrl+shift+t=new_tab
Secuencias de teclas
Usa > para definir secuencias (primero un trigger, luego otra tecla):
# Presiona Ctrl+X, luego 2
keybind = ctrl+x>2=new_split:right
Atajos por defecto en macOS
General
| Atajo | Accion |
|---|---|
Cmd + N | Nueva ventana |
Cmd + T | Nueva pestana |
Cmd + W | Cerrar split/tab |
Cmd + Q | Salir de Ghostty |
Cmd + , | Abrir configuracion |
Cmd + Shift + , | Recargar configuracion |
Clipboard
| Atajo | Accion |
|---|---|
Cmd + C | Copiar seleccion |
Cmd + V | Pegar desde clipboard |
Fuente
| Atajo | Accion |
|---|---|
Cmd + + | Aumentar tamano |
Cmd + - | Reducir tamano |
Cmd + 0 | Restaurar tamano |
Splits
| Atajo | Accion |
|---|---|
Cmd + D | Split horizontal |
Cmd + Shift + D | Split vertical |
Cmd + [ | Split anterior |
Cmd + ] | Split siguiente |
Cmd + Shift + Enter | Zoom en split actual |
Tabs
| Atajo | Accion |
|---|---|
Cmd + 1-9 | Ir a pestana N |
Cmd + Shift + [ | Pestana anterior |
Cmd + Shift + ] | Pestana siguiente |
Pantalla
| Atajo | Accion |
|---|---|
Cmd + K | Limpiar pantalla |
Cmd + Ctrl + F | Pantalla completa |
Atajos por defecto en Linux
En Linux, los atajos usan Ctrl+Shift en lugar de Cmd:
| Atajo | Accion |
|---|---|
Ctrl + Shift + N | Nueva ventana |
Ctrl + Shift + T | Nueva pestana |
Ctrl + Shift + C | Copiar |
Ctrl + Shift + V | Pegar |
Ctrl + Shift + + | Aumentar fuente |
Ctrl + Shift + - | Reducir fuente |
Personalizar atajos
Agregar un atajo nuevo
keybind = ctrl+shift+e=new_split:right
keybind = ctrl+shift+o=new_split:down
Desactivar un atajo existente
Asigna la accion unbind:
keybind = ctrl+shift+t=unbind
Atajos globales
El prefijo global: permite que el atajo funcione incluso cuando Ghostty no tiene foco:
keybind = global:ctrl+grave_accent=toggle_quick_terminal
En macOS, los atajos globales requieren permisos de Accesibilidad en Configuracion del Sistema > Privacidad.
Prefijos disponibles
| Prefijo | Descripcion |
|---|---|
global: | Funciona sin importar la app enfocada |
all: | Se ejecuta en todos los contextos de Ghostty |
unconsumed: | Solo se activa si la app terminal no consume la tecla |
performable: | Solo se activa si la accion es posible |
Acciones disponibles
Gestion de splits
keybind = ctrl+shift+right=new_split:right
keybind = ctrl+shift+down=new_split:down
keybind = ctrl+shift+left=new_split:left
keybind = ctrl+shift+up=new_split:up
Para navegar entre splits:
keybind = alt+left=goto_split:left
keybind = alt+right=goto_split:right
keybind = alt+up=goto_split:top
keybind = alt+down=goto_split:bottom
keybind = alt+bracketleft=goto_split:previous
keybind = alt+bracketright=goto_split:next
Gestion de tabs
keybind = ctrl+shift+t=new_tab
keybind = ctrl+tab=next_tab
keybind = ctrl+shift+tab=previous_tab
keybind = ctrl+1=goto_tab:1
keybind = ctrl+2=goto_tab:2
Tamano de fuente
keybind = ctrl+equal=increase_font_size:1
keybind = ctrl+minus=decrease_font_size:1
keybind = ctrl+0=reset_font_size
Scroll y navegacion
keybind = shift+page_up=scroll_page_up
keybind = shift+page_down=scroll_page_down
keybind = shift+home=scroll_to_top
keybind = shift+end=scroll_to_bottom
Saltar entre prompts
Requiere shell integration activa:
keybind = ctrl+shift+up=jump_to_prompt:-1
keybind = ctrl+shift+down=jump_to_prompt:1
Otras acciones utiles
# Zoom en split actual
keybind = ctrl+shift+z=toggle_split_zoom
# Igualar tamano de todos los splits
keybind = ctrl+shift+e=equalize_splits
# Redimensionar splits
keybind = super+ctrl+left=resize_split:left,10
keybind = super+ctrl+right=resize_split:right,10
keybind = super+ctrl+up=resize_split:up,10
keybind = super+ctrl+down=resize_split:down,10
# Inspector de terminal
keybind = ctrl+shift+i=inspector:toggle
# Paleta de comandos
keybind = ctrl+shift+p=toggle_command_palette
# Seleccionar todo
keybind = ctrl+shift+a=select_all
# Limpiar pantalla
keybind = ctrl+shift+k=clear_screen
Ejemplo de configuracion personalizada
# Splits al estilo tmux con prefijo Ctrl+A
keybind = ctrl+a>percent=new_split:right
keybind = ctrl+a>quotedbl=new_split:down
keybind = ctrl+a>h=goto_split:left
keybind = ctrl+a>l=goto_split:right
keybind = ctrl+a>k=goto_split:top
keybind = ctrl+a>j=goto_split:bottom
keybind = ctrl+a>z=toggle_split_zoom
keybind = ctrl+a>c=new_tab
keybind = ctrl+a>n=next_tab
keybind = ctrl+a>p=previous_tab
# Quick terminal global
keybind = global:super+grave_accent=toggle_quick_terminal
Anterior: Configuracion basica | Siguiente: Splits y tabs