428 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Mitchell Hashimoto
b39d1d6095 shuffle some code 2023-11-05 15:46:31 -08:00
kcbanner
232df8de8f windows: add support for the glfw backend on Windows
Changes:
- Add WindowsPty, which uses the ConPTY API to create a pseudo console
- Pty now selects between PosixPty and WindowsPty
- Windows support in Command, including the ability to launch a process with a pseudo console
- Enable Command tests on windows
- Add some environment variable abstractions to handle the missing libc APIs on Windows
- Windows version of ReadThread
2023-11-05 23:15:49 +00:00
Mitchell Hashimoto
04ef21653f config: on macOS cmd+ctrl+f toggles fullscreen by default
Fixes #171
2023-11-05 11:40:58 -08:00
Mitchell Hashimoto
705f3b52c7 config: add clipboard-paste-bracketed-safe 2023-11-05 09:25:06 -08:00
Raiden1411
9e9ad67d3c feat: add support for fullscreen, title and class values 2023-11-05 11:49:25 +00:00
Mitchell Hashimoto
a38220eade terminal: move sanitization check to this package, unit test 2023-11-04 11:19:25 -07:00
David Rubin
6e575d9035 configs added 2023-11-03 13:20:26 -07:00
Mitchell Hashimoto
0f7c534454 Merge pull request #790 from mitchellh/slonik-az/keybind-esc-seq
feat: keybind escape sequence action "esc:text" similar to "csi:text"
2023-11-02 21:30:00 -07:00
Hanna
2d7e2c8345 Integrate libadwaita for the gtk backend (#792)
* When using gtk as the backend, link libadwaita

* Update c.zig

* Use libadwaita's theme manager for gtk

* update the documentation for window-theme

* build: add libadwaita to the nix devshell

* forgot to properly import libadwaita

* apprt/gtk: adwaita style change

---------

Co-authored-by: Mitchell Hashimoto <mitchell.hashimoto@gmail.com>
2023-11-02 21:29:29 -07:00
Leo Razoumov
dc527bd2cb feat: keybind escape sequence action "esc:text" similar to "csi:text" 2023-11-02 17:50:17 -04:00
Mitchell Hashimoto
c182093934 Merge pull request #762 from mitchellh/mattpolzin-misc-typos
Just a couple of minor typos discovered while getting started.
2023-10-29 12:55:12 -07:00
Mitchell Hashimoto
68275d6afa config: update some comments around pwd inheritance
Fixes #760
2023-10-29 12:02:19 -07:00
Mathew Polzin
d5776ff017 Fix typo in Config.zig
key scan -> keys can
2023-10-28 18:54:32 -05:00
Mitchell Hashimoto
2c541a7e86 config: -e replaces previous args 2023-10-27 18:26:44 -07:00
Mitchell Hashimoto
4f62526782 config: tests for -e parsing 2023-10-27 18:24:13 -07:00
Mitchell Hashimoto
4104f78cba cli: handle "-e" as the command to execute 2023-10-27 15:57:20 -07:00
Mitchell Hashimoto
9c56bd5dba config: command-arg to specify arguments to the executed command
Fixes #744
2023-10-27 15:38:50 -07:00
Mitchell Hashimoto
9330b25f1a config: make step resize opt-in for macos 2023-10-27 08:18:32 -07:00
Mitchell Hashimoto
9b63da2ea7 config: slighty copy editing 2023-10-27 08:08:43 -07:00
Gregory Anders
add2b675bd config: add window-step-resize option 2023-10-27 09:33:56 -05:00
Mitchell Hashimoto
63854cbd3a config: default inspector keybind to same as chromium 2023-10-26 14:43:09 -07:00
Erlend Lind Madsen
7d99a6063b config: comment regarding font-family config reload 2023-10-22 20:49:22 +07:00
Mitchell Hashimoto
3a26812e6a config: update doc comment 2023-10-19 20:08:37 -07:00
Jon Parise
17b63f7617 config: add quit-after-last-window-closed
Whether or not to quit after the last window is closed. This defaults
to false. Currently only supported on macOS.
2023-10-18 14:03:32 -07:00
Mitchell Hashimoto
ff38d3e358 config: add cursor-opacity 2023-10-14 14:08:06 -07:00
Mitchell Hashimoto
6a065540dd terminal: KAM (mode 2)
This has an associated config `vt-kam-allowed` which defaults to "false"
since this mode can cause the terminal to become mostly unusable. We
include this mode for completions sake however.
2023-10-12 17:07:47 -07:00
Mitchell Hashimoto
f7cc5ccdd6 config: add mouse-shift-capture configuration 2023-10-11 21:38:52 -07:00
Mitchell Hashimoto
e74897fa01 config: add option to disable working directory inheritance
Fixes #618
2023-10-05 21:55:43 -07:00
Mitchell Hashimoto
7eb3130faf config: update some docs 2023-10-04 22:09:20 -07:00
Mitchell Hashimoto
b98cc3d79f config: add remaining font modifiers 2023-10-04 22:08:19 -07:00
Mitchell Hashimoto
54b9b45a7f font: rework font init to use a struct with modifiersets everywhere 2023-10-04 17:23:57 -07:00
Mitchell Hashimoto
cec45de842 config: note gtk bug 2023-09-30 21:48:22 -07:00
Mitchell Hashimoto
604eeceb03 apprt/glfw: support window-width, window-height configurations 2023-09-30 20:10:08 -07:00
Mitchell Hashimoto
6c69f0ef63 apprt/gtk: gtk-single-instance defaults to true only if desktop env
Fixes #473

A new config value for `gtk-single-instance = desktop` is now valid.
This value uses GTK single instance mode only if it detects Ghostty was
launched from a desktop environment (i.e. clicking on the icon) through
the `.desktop` Freedesktop file. Otherwise, it disables single instance.

This enables Ghostty to work well with the CLI and accept all the
typical CLI flags. It will make Ghostty launch slower from the CLI but I
think this is an acceptable tradeoff.
2023-09-30 08:46:39 -07:00
Mitchell Hashimoto
56b0cb51d5 apprt/gtk: previous_tab/next_tab action do not consume if there are no tabs 2023-09-29 22:12:38 -07:00
Mitchell Hashimoto
a85c508892 apprt/gtk: add ctrl+page-up/down as prev/next tab 2023-09-29 22:04:30 -07:00
Mitchell Hashimoto
659fa2cc66 config: keybinding clone must clone all members 2023-09-29 22:04:17 -07:00
Mitchell Hashimoto
47ee1e7355 input: Binding string can be unconsumed with "unconsumed:" prefix 2023-09-29 21:34:23 -07:00
Mitchell Hashimoto
d03083c7f5 apprt/gtk: default working-directory to home if launched from desktop
Fixes #573
2023-09-29 15:52:45 -07:00
Patrick Fong
741606a7ab fix grammar 2023-09-29 11:44:32 -07:00
Patrick Fong
d832507644 improve docs on font config 2023-09-29 11:42:49 -07:00