2567 Commits

Author SHA1 Message Date
Mitchell Hashimoto
e2f7d01b9d Merge pull request #406 from mitchellh/dependabot/github_actions/actions/checkout-4
build(deps): bump actions/checkout from 3 to 4
2023-09-06 10:20:44 -07:00
Mitchell Hashimoto
a9750ad04a Merge pull request #408 from mitchellh/mrn/gtk-single-instance-flag
gtk: add gtk-single-instance setting to allow disabling of it
2023-09-06 10:19:30 -07:00
Thorsten Ball
cac5b00d94 gtk: add gtk-single-instance setting to allow disabling of it
This is based on our conversation on Discord and adds a setting for GTK
that allows disabling the GTK single-instance mode.

If this is off, it's possible to start multiple applications from the
same release binary.

Tested like this:

```
$ zig build -Dapp-runtime=gtk -Doptimize=ReleaseFast && ./zig-out/bin/ghostty --gtk-single-instance=false

[... starts new application ...]
```

and

```
$ zig build -Dapp-runtime=gtk -Doptimize=ReleaseFast && ./zig-out/bin/ghostty --gtk-single-instance=true
info: ghostty version=0.1.0-main+42a22893
info: runtime=apprt.Runtime.gtk
info: font_backend=font.main.Backend.fontconfig_freetype
info: dependency harfbuzz=8.0.0
info: dependency fontconfig=21400
info: renderer=renderer.OpenGL
info: libxev backend=main.Backend.io_uring
info(os): LANG is not valid according to libc, will use en_US.UTF-8
info: reading configuration file path=/home/mrnugget/.config/ghostty/config
info(config): default shell source=env value=/usr/bin/zsh

(process:49045): GLib-GIO-WARNING **: 13:55:56.116: Your application did not unregister from D-Bus before destruction. Consider using g_application_run().

[exits]
```
2023-09-05 13:59:07 +02:00
dependabot[bot]
af36a49148 build(deps): bump cachix/install-nix-action from 22 to 23
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 22 to 23.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v22...v23)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-05 00:35:08 +00:00
dependabot[bot]
025fffbcfd build(deps): bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-05 00:35:05 +00:00
Will Pragnell
7d9598fe6e macos: fix split focus when toggling fullscreen 2023-09-03 22:55:22 -07:00
Mitchell Hashimoto
42a228938f Merge pull request #403 from mitchellh/prompt-continuation
Semantic prompt resize should only clear most recent prompt
2023-09-03 14:07:28 -07:00
Mitchell Hashimoto
f8335c10d8 terminal: disable noisy logs 2023-09-03 14:02:55 -07:00
Mitchell Hashimoto
cdf81b610d terminal: mark prompt continuation lines, end prompt clear at first
prompt
2023-09-03 14:00:56 -07:00
Mitchell Hashimoto
de3d0b4243 terminal: parse semantic prompt "k" (kind) parameter 2023-09-03 13:47:06 -07:00
Mitchell Hashimoto
fe540011d7 Merge pull request #398 from mitchellh/mrn/gtk-readme-notice
README: add notice about gtk single instance application
2023-09-03 12:47:10 -07:00
Thorsten Ball
604a2c1353 README: add notice about gtk single instance application
Just as discussed on Discord: this adds a note to the README that can
potentially save minutes _and_ hairs.
2023-09-03 21:45:22 +02:00
Mitchell Hashimoto
2c5271ca82 Merge pull request #397 from mitchellh/mrn/gtk-window-decoration
gtk: allow hiding window decoration in configuration
2023-09-03 12:41:14 -07:00
Thorsten Ball
a1a48eb3f0 gtk: allow hiding window decoration in configuration
This is part of #319 by fixing it for GTK and introducing the
configuration option.

This adds `window-decoration = false` as a possible configuration
option. If set to `false`, then no window decorations are used.
2023-09-03 21:27:21 +02:00
Mitchell Hashimoto
5221a2f7f1 Merge pull request #395 from mitchellh/update-zig
update zig
2023-09-03 08:30:52 -07:00
Mitchell Hashimoto
375a4569f7 update zig 2023-09-03 08:21:21 -07:00
Mitchell Hashimoto
fc81802590 Merge pull request #394 from mitchellh/libxev
update vendor/libxev to retry on EINTR for io_uring
2023-09-03 08:14:43 -07:00
Mitchell Hashimoto
5bace502e4 update vendor/libxev to retry on EINTR for io_uring
Fixes #290

Previously, our io_uring loops were exiting on EINTR. EINTR is sent for
various reasons but particularly when a process is stopped such as for
sleeping. We should not exit these loops.

Longer term we should be more resilient to detecting that our renderer
and/or IO thread as died and behave in some better way but this
addresses a major issue in the mean time.
2023-09-03 08:10:13 -07:00
Mitchell Hashimoto
d3047c2245 Merge pull request #393 from mitchellh/refactor-cursor-style
config: clean up cursor style configuration
2023-09-03 07:53:11 -07:00
SoraTenshi
6faed268e0 config: clean up cursor style configuration 2023-09-03 07:51:36 -07:00
Mitchell Hashimoto
26f589e3e0 Merge pull request #391 from mitchellh/zoom-split
Zoom/Unzoom Split
2023-09-02 16:55:49 -07:00
Mitchell Hashimoto
e657a0f671 macos: close and refocus split work while zoomed 2023-09-02 16:47:48 -07:00
Mitchell Hashimoto
76ae039701 macos: new split on zoomed split unzooms 2023-09-02 16:37:22 -07:00
Mitchell Hashimoto
e2282f1f4d macos: zoomed splits put an emoji in the title bar 2023-09-02 16:33:33 -07:00
Mitchell Hashimoto
4570356e57 turn zoom into a toggle rather than an explicit zoom/unzoom 2023-09-02 16:03:51 -07:00
Mitchell Hashimoto
70bdc21d22 macos: support zoomed splits 2023-09-02 15:51:10 -07:00
Mitchell Hashimoto
519a97b782 core: add unzoom_split binding 2023-09-02 15:15:12 -07:00
Mitchell Hashimoto
50a1a52ae3 core: add zoom keybinding for splits 2023-09-02 14:52:43 -07:00
Mitchell Hashimoto
5e18f3c731 update README with additional shell integration notes 2023-09-02 14:09:49 -07:00
Mitchell Hashimoto
d338828b85 Merge pull request #387 from mitchellh/dpi
content scale change events should also impact viewport padding
2023-09-02 13:58:06 -07:00
Mitchell Hashimoto
bf71bdc1fb Merge pull request #389 from mitchellh/csi-p
terminal: CSI P must shift all remaining columns to right of cursor
2023-09-02 11:34:46 -07:00
Mitchell Hashimoto
aa04c79586 terminal: CSI P must shift all remaining columns to right of cursor
Fixes #388
2023-09-02 11:28:37 -07:00
Mitchell Hashimoto
22eb533473 content scale change events should also impact viewport padding
This calculates the new padding pixel values and propogates those
changes to the renderer.
2023-09-02 11:00:51 -07:00
Mitchell Hashimoto
6c7ccae848 Merge pull request #385 from mgeist/update-font-dpi
Update font DPI when the content scale is updated
2023-09-02 10:41:07 -07:00
Mat
9e5ced2600 use a const scoped block for font size 2023-09-02 13:39:29 -04:00
Mat
0d094f244e Update font DPI when the content scale is updated 2023-09-02 13:00:04 -04:00
Mitchell Hashimoto
d6bfa8183e Merge pull request #384 from mitchellh/macos12-split-focus
macos: hacks for split focus to work correctly on macos 12
2023-09-02 09:18:51 -07:00
Mitchell Hashimoto
1626c8cd3a macos: hacks for split focus to work correctly on macos 12 2023-09-02 09:15:50 -07:00
Mitchell Hashimoto
7ab70ecd0a Merge pull request #380 from mitchellh/goonz/non-native-fullscreen-menu-options
macos: add hidden-menu/visible-menu non-native-fullscreen opts
2023-09-02 07:51:44 -07:00
Will Pragnell
f6e2b50732 macos: fix non-native-fullscreen menu & dock visibility bugs 2023-09-01 21:45:45 -07:00
Will Pragnell
86122624e0 macos: add visible-menu non-native-fullscreen option 2023-09-01 21:45:45 -07:00
Mitchell Hashimoto
7408971d6d Merge pull request #379 from mitchellh/macos12-horror
macos: hacks to grab surface focus on macOS 12
2023-09-01 16:40:58 -07:00
Mitchell Hashimoto
e0015a0d00 macos: hacks to grab surface focus on macOS 12
See comment in code.
2023-09-01 16:23:30 -07:00
Mitchell Hashimoto
508f17bdef update README to hide glfw 2023-09-01 15:07:56 -07:00
Mitchell Hashimoto
b67811d3c8 Merge pull request #376 from mitchellh/macos-color-space
macos: default to sRGB color space
2023-09-01 15:06:02 -07:00
Karol Bakunowski
d7072cd29e macos: default to sRGB color space 2023-09-01 15:05:16 -07:00
Mitchell Hashimoto
4ae1f821d2 Merge pull request #375 from mitchellh/macos-free
macos: break reference cycle to window to allow window to free memory
2023-09-01 09:25:51 -07:00
Mitchell Hashimoto
d945640401 macos: break reference cycle to window to allow window to free memory
Fixes #366

The comment in the Swift code explains what was happening here:

> I don't know if this is the right place, but because of WindowAccessor in our
> SwiftUI hierarchy, we have a reference cycle between view and window and windows
> are never freed. When the window is closed, the window controller is deinitialized,
> so we can use this opportunity detach the view from the window and break the cycle.

An alternate solution would be to make our reference back to the window
"weak" but we appear to not be able to do that with SwiftUI property
wrappers such as `@State` and `@Binding` and so on.
2023-09-01 09:12:03 -07:00
Mitchell Hashimoto
a6007cab7a terminal: fix unimplemented origin mode check 2023-09-01 08:46:53 -07:00
Mitchell Hashimoto
6bb3885271 Merge pull request #373 from mitchellh/update-libxev
update libxev to fix CPU issue on macos
2023-09-01 08:29:20 -07:00