3816 Commits

Author SHA1 Message Date
Raiden1411
b0f6b1e2c9 re-add dimensions 2023-11-07 19:24:02 +00:00
Patrick Fong
848694bc29 consistently sytlize as Ghostty 2023-11-07 10:40:02 -08:00
Patrick Fong
5245c40683 explain Nix is golden setup in devel section 2023-11-07 10:34:41 -08:00
Patrick Fong
f3ce83517d update config section 2023-11-07 10:09:46 -08:00
Raiden1411
b9ad49acc3 chore: add video mode 2023-11-07 18:07:22 +00:00
Mitchell Hashimoto
2998f1a18e Merge pull request #834 from gpanders/split-binding
macos: pass split as a binding to SplitView
2023-11-07 09:58:46 -08:00
Raiden1411
fbe2b7c267 feat: fullscreen and toggleFullscreen support 2023-11-07 17:58:00 +00:00
Gregory Anders
dc7c313166 macos: pass split as a binding to SplitView
Fixes: https://github.com/mitchellh/ghostty/issues/833
2023-11-07 11:55:29 -06:00
Mitchell Hashimoto
b21ee6617e Merge pull request #609 from rockorager/dev
Update mouse shape based on ability to use native text selection
2023-11-06 14:42:38 -08:00
Mitchell Hashimoto
d20c4866b1 some comments, make switch exaustive 2023-11-06 14:42:10 -08:00
Tim Culverhouse
9a64697433 mouse: set mouse to text when bypassing mouse reporting
When shift is held, we are bypassing mouse reporting mode. Change the
cursor to text to indicate this to the user. On release, change back to
whatever we were before.
2023-11-06 14:36:59 -08:00
Tim Culverhouse
c96cedcf22 mouse: set mouse as text only when not reporting mouse events
The selection mode is only valid when mouse reporting events are on. If
we have any mouse reporting events turned on, reset the mouse shape back
to default (a pointer).
2023-11-06 14:36:59 -08:00
Tim Culverhouse
49fb5c8688 gtk(mouse): use "text" enum as default value
Use the .text field of the enum as the default value of the mouse shape
instead of renaming .default. Store the default value as the current
value for use in subsequent commits
2023-11-06 14:36:57 -08:00
Mitchell Hashimoto
821a243239 Merge pull request #829 from mitchellh/blink
termio: cursor-style-blink being set disables DEC mode 12
2023-11-06 12:09:28 -08:00
Mitchell Hashimoto
268d39fe75 termio: cursor-style-blink being set disables DEC mode 12
Fixes #820

See the very long comment in termio/Exec.zig.
2023-11-06 12:06:11 -08:00
Mitchell Hashimoto
e343d6883d Merge pull request #827 from mitchellh/mods-alias
input: allow modifier aliases
2023-11-06 11:58:40 -08:00
Mitchell Hashimoto
97b1f97f6c Merge pull request #828 from gpanders/main
terminfo: fixup Sync terminfo string
2023-11-06 11:52:00 -08:00
Gregory Anders
f58478822c terminfo: fixup Sync terminfo string
The closing string on a conditional is "%;", not "%".
2023-11-06 13:48:01 -06:00
Mitchell Hashimoto
0ec225683e input: allow modifier aliases
Fixes #824
2023-11-06 11:42:51 -08:00
Mitchell Hashimoto
61b24a2f5c Merge pull request #826 from gpanders/empty-clipboard
macos: complete clipboard request even when clipboard is empty
2023-11-06 11:26:30 -08:00
Gregory Anders
8349d82179 macos: complete clipboard request even when clipboard is empty 2023-11-06 13:10:23 -06:00
Mitchell Hashimoto
4e3ab4879d Merge pull request #822 from gpanders/split-resizing
macos: implement split resizing
2023-11-06 09:35:43 -08:00
Mitchell Hashimoto
7be5eba9cb input: unit tests for pasing tuples 2023-11-06 09:23:24 -08:00
Mitchell Hashimoto
1ff81682f7 input: add format support for tuple args 2023-11-06 09:19:59 -08:00
Mitchell Hashimoto
bc0d1a9255 macos: remove focused cell size resize increment setter 2023-11-06 09:11:50 -08:00
Mitchell Hashimoto
1ff0573518 macos: use normal swiftui parameters for resizable publisher/inc 2023-11-06 09:06:20 -08:00
Mitchell Hashimoto
f8b0654a19 Merge pull request #816 from Raiden1411/feat/options
feat: add support for `--fullscreen`, `--title` and `--class` values
2023-11-06 08:55:33 -08:00
Mitchell Hashimoto
f338c09506 apprt/gtk: move default id into scope 2023-11-06 08:55:13 -08:00
Mitchell Hashimoto
364a14d7a2 apprt/gtk: fix valid id check 2023-11-06 08:54:23 -08:00
Mitchell Hashimoto
efe9721c98 macos: honor fullscreen setting 2023-11-06 08:52:36 -08:00
Mitchell Hashimoto
3564dd5e7e stylistic changes 2023-11-06 08:47:09 -08:00
Raiden1411
e9535a8d3e chore: cleanup 2023-11-06 14:28:48 +00:00
Raiden1411
d2d5d4ba82 chore: cleanup 2023-11-06 14:27:36 +00:00
Raiden1411
60717cde14 chore: update fullscreen implementation 2023-11-06 14:03:44 +00:00
Raiden1411
232527c9dc fix: fullscreen on new windows 2023-11-06 11:59:16 +00:00
Raiden1411
7fa712ab2b chore: more comment changes 2023-11-06 11:32:25 +00:00
Raiden1411
8d526112a1 chore: update comment 2023-11-06 10:20:52 +00:00
Raiden1411
094f8effa3 fix: begin implementation of suggested changes 2023-11-06 10:19:09 +00:00
Mitchell Hashimoto
3e0c4b0cc4 Merge pull request #823 from mitchellh/fix-macos-font-resize
fix macos font being drawn thicker when updating font size
2023-11-05 22:14:47 -08:00
Mitchell Hashimoto
fac2e470d9 inspector: add cursor style to inspector panel 2023-11-05 22:02:51 -08:00
Nawaf
b3dd363e3b fix macos font being drawn thicker when updating font size 2023-11-06 00:25:38 -05:00
Gregory Anders
582df33083 macos: use Ghostty.AppState as @EnvironmentObject
This is a small cleanup change. This provides the Ghostty.AppState
object to any view that needs it within the TerminalSplit view hierarchy
without needing to explicitly define EnvironmentKeys.
2023-11-05 20:42:59 -06:00
Gregory Anders
9b14398153 macos: support resizing splits 2023-11-05 20:42:59 -06:00
Mitchell Hashimoto
044a9af848 Merge pull request #773 from kcbanner/windows_prototype
windows: add support for the glfw backend
2023-11-05 18:30:20 -08:00
Gregory Anders
0a2d435481 core: add resize_split binding with default keys
On macOS, use Cmd+Ctrl+Arrow keys as default bindings for resizing by 10
points in the given direction.
2023-11-05 20:20:39 -06:00
Gregory Anders
e7745dc820 core: add support for bindings with multiple parameters
This commit adds support for bindings with multiple parameters. For
example, a "resize_split" binding will have two parameters: the resize
direction and the resize amount. Multiple parameters are supported by
using a tuple as the enum value and are written in string form by
separating each argument with a comma. Example: "resize_split:up,10".
2023-11-05 20:20:39 -06:00
Gregory Anders
3b2799ce97 macos: refactor SplitNode
This commit does two things: adds a weak reference to the parent
container of each SplitNode.Container and SplitNode.Leaf and moves the
"direction" of a split out of the SplitNode enum and into the
SplitNode.Container struct as a field.

Both changes are required for supporting split resizing. A reference to
the parent in each leaf and split container is needed in order to
traverse upwards through the split tree. If the focused split is not
part of a container that is split along the direction that was requested
to be resized, then we instead try and resize the parent. If the parent
is split along the requested direction, then it is resized
appropriately; otherwise, repeat until the root of the tree is reached.

The direction is needed inside the SplitNode.Container object itself so
that the container knows whether or not it is able to resize itself in
the direction requested by the user. Once the split direction was moved
inside of SplitNode.Container, it became redundant to also have it as
part of the SplitNode enum, so this simplifies things.
2023-11-05 20:20:39 -06:00
Mitchell Hashimoto
a7fdc1dafa update README with windows notes 2023-11-05 18:17:19 -08:00
Mitchell Hashimoto
088e8b230a apprt: default runtime for windows is glfw 2023-11-05 18:12:38 -08:00
Mitchell Hashimoto
a864bfdd1d ci: style 2023-11-05 18:09:51 -08:00