Commit Graph

7882 Commits (34c3da43023b0c058c0647b604b8bc4b2f87ff7b)

Author SHA1 Message Date
Mitchell Hashimoto 92524aa2c0
PACKAGING.md 2024-10-24 14:49:19 -07:00
Mitchell Hashimoto 8bb8b01e54
build: use Zig system packaging options
This allows dynamically linking against system libraries, which is
particularly useful for packaging.
2024-10-24 14:46:37 -07:00
Mohammad Al-Ahdal 3c8d9ae5a3
Fix: aerospace no longer resizes quick terminal and instead treats it as float 2024-10-24 03:00:17 -06:00
axdank 23927d1fda removing unnecessary enum 2024-10-24 00:11:04 -03:00
axdank 465d60def8 gui: add move_current_tab action 2024-10-24 00:01:54 -03:00
Max 553687b5e2 feat: make too big tab indices go to last tab 2024-10-23 20:27:13 +02:00
Mitchell Hashimoto 61aff898bd
Merge pull request #2481 from ghostty-org/push-wzmwoosxuxmz
macos: use notification to detect when quick terminal shows/hides
2024-10-23 10:17:55 -07:00
Mitchell Hashimoto df7120d130
macos: use notification to detect when quick terminal shows/hides
Fixes #2474
2024-10-23 10:14:11 -07:00
Mitchell Hashimoto 3868c1a246
Merge pull request #2476 from johnseth97/native-title-proxy-icons-macos
Native title proxy icons macos
2024-10-23 09:57:53 -07:00
Mitchell Hashimoto 56cbd459d1
Merge pull request #2478 from jparise/bash-preexec-histcontrol
bash: stop modifying HISTCONTROL in bash-preexec.sh
2024-10-23 09:51:21 -07:00
Jon Parise d7331f06e3 bash: stop modifying HISTCONTROL in bash-preexec.sh
This hack is only needed to improve the accuracy of the command argument
passed to the preexec functions, and we don't use that argument in our
bash shell integration script (and nor does the __bp_original_debug_trap
function above, which is the only other active preexec function).

See also:
- https://github.com/rcaloras/bash-preexec/issues/147
- https://github.com/rcaloras/bash-preexec/issues/115

Fixes #2269
2024-10-23 08:09:01 -04:00
johnseth97 7f898ce01f
Basic proxy icons showing
Removed changes that accidentally carried over from another local
branch.

Basic Proxy Icons showing
2024-10-23 00:40:38 -04:00
johnseth97 81984b2f11
Merge remote-tracking branch 'refs/remotes/origin/macos-window-deocrations-rework' 2024-10-22 21:46:55 -04:00
EJ ad01e06499
Merge branch 'ghostty-org:main' into macos-window-deocrations-rework 2024-10-22 21:46:40 -04:00
johnseth97 9e801d2928
Merge remote-tracking branch 'refs/remotes/origin/macos-window-deocrations-rework' 2024-10-22 21:45:42 -04:00
johnseth97 2de5e5c9a0
Merge remote-tracking branch 'refs/remotes/origin/main' 2024-10-22 16:30:08 -04:00
Mitchell Hashimoto 5e001fcb64
Revert "config: change macos-option-as-alt default to left"
This reverts commit 31b6833ea1.
2024-10-22 08:34:52 -04:00
Ethan Johnson 1b6778b800
Merge branch 'ghostty-org:main' into macos-window-deocrations-rework 2024-10-21 17:43:37 -04:00
Mitchell Hashimoto c2cbc214d5
Merge pull request #2466 from johnseth97/NSToolbar-Deprication-Warning-Fix
Ns-toolbar depreciation warning fix
2024-10-21 08:57:38 -04:00
johnseth97 b1f0c490b3 Merge branch 'NSToolbar-Deprication-Warning-Fix' of github.com:johnseth97/ghostty into NSToolbar-Deprication-Warning-Fix 2024-10-21 08:56:01 -04:00
Mitchell Hashimoto 7e26c90c00
Merge pull request #2468 from Besselking/overline
Implement overline text-decoration (SGR 53/55)
2024-10-21 08:40:09 -04:00
Marijn Besseling 4496e7d314 implement overline decoration (SGR 53/55) 2024-10-21 08:36:08 -04:00
Ethan Johnson a53b4f684e
Merge branch 'ghostty-org:main' into macos-window-deocrations-rework 2024-10-19 20:40:44 -04:00
johnseth97 96a0ca613a
Fixing deprecation warnings, experiencing new errors. 2024-10-19 18:53:29 -04:00
Mitchell Hashimoto 1134a9cbea
Merge pull request #2461 from JoshuaBrest/main
feat: Update MacOS about dialog
2024-10-19 14:16:54 -07:00
Mitchell Hashimoto 85db4d0277
macos: personal nitpicks and improvements 2024-10-19 14:07:04 -07:00
Josh cc42dc57b9
fix: add text-selection back in the about dialoge. 2024-10-19 11:52:12 -07:00
Josh d291fcfd52
style: add line break in the caption of the about dialog. 2024-10-19 11:45:24 -07:00
Josh 4b08b3f8d8
refactor: hide buttons when URLs are invalid and change variable mutability and visibility. 2024-10-19 11:23:04 -07:00
Mitchell Hashimoto fc6eda6623
cli: +help needs to use the proper args iterator 2024-10-19 10:43:08 -07:00
Mitchell Hashimoto fbe51ff1f5
Merge pull request #2463 from ghostty-org/push-zynwrqnmkryv
macos: clamp window size to screen size on screen parameter changes
2024-10-19 10:18:44 -07:00
Mitchell Hashimoto 70acb0d76e
macos: clamp window size to screen size on screen parameter changes
Fixes #2462

This sets up a listener for screen parameter changes. This only triggers
when a screen is added, removed, or a parameter such as its resolution
changes. This doesn't trigger when a window is simply moved from one
screen to another.

On parameter change, we ensure that the window is within the bounds of
the screen. As an exception, if the window was previously already
outside the bounds of the screen, we don't move it back in.
2024-10-19 10:13:16 -07:00
Mitchell Hashimoto ebe8fb3ab3
Merge pull request #2458 from rockorager/cell-size
fix: report correct screen pixel size
2024-10-19 09:34:40 -07:00
Mitchell Hashimoto ed1bb5eed3
Merge pull request #2460 from 0xcharly/font-codepoint-map
Tentative fix for unexpected `font-codepoint-map` behavior
2024-10-19 09:34:15 -07:00
Mitchell Hashimoto 05787e7848
Merge pull request #2457 from ghostty-org/push-ztzyoslwwxtu
config: change macos-option-as-alt default to left
2024-10-19 09:31:31 -07:00
Josh 42bf37af32
feat: Update about menu design to match macOS. 2024-10-19 00:31:43 -07:00
Charly Delay 96b4ff39a6
Tentative fix for unexpected `font-codepoint-map` behavior
In particular when configured to replace several ranges with multiple fonts.

Given the following `font-codepoint-map` config:

```
font-codepoint-map=U+0030-U+0039=Monaco       # 0-9
font-codepoint-map=U+0040=mononoki            # @
font-codepoint-map=U+0041-U+005a=Pixel Code   # A-Z
font-codepoint-map=U+0061-U+007a=Victor Mono  # a-z
```

I noticed a couple of unexpected behavior:

1. Codepoint ranges were assigned the wrong font
2. The declaration order had a direct impact on the font assignment
   (seemed to be rotating in some fashion)

If my understanding of the current implementation is correct, for a
given range index `n` in the `MultiArrayList` `CodepointMap.get(…)`
returns the font descriptor at index `len - n - 1`. In other words, it
returns the descriptor symmetrically opposite relative to the middle of
the list.

I've added a couple test cases that I would expect to pass if my
understanding of the expected behavior is correct, verified that they
were broken under the current behavior, and updated the implementation
of `CodepointMap.get(…)` accordingly.

My understanding of the original intent is to give priority to the
latest range match in the list (which is a use case already tested by
the `codepointmap` test, but which I believe happened to pass "by
accident"), so I opted for a reverse traversal of the codepoint list.
2024-10-19 15:51:08 +09:00
johnseth97 def3a62fb9
Modified `window-decorations = none` option on macos 2024-10-19 01:03:05 -04:00
Tim Culverhouse 4f1cee8eb9 fix: report correct screen pixel size
Mode 2048 and CSI 14 t are size report control sequences which contain
the text area size in pixels. The text area is defined to be the extents
of the grid (rows and columns). Ghostty calculates the available size
for the text area by setting the available padding, and then filling as
much of the remaining space as possible. However, if there are remainder
pixels these are still reported as part of the text area size.

Pass the cell_size geometry through so that we can always report the
correct value: columns * cell width and rows * cell height.
2024-10-18 22:29:52 -05:00
Mitchell Hashimoto 31b6833ea1
config: change macos-option-as-alt default to left
As suggested: https://github.com/ghostty-org/ghostty/discussions/2363#discussioncomment-10824847

This allows users of non-US keyboard layouts to continue to use the
right option key for input methods, while still being able to use the
the left option key as alt for keybindings.

This is a bit of an experiment to see if this is a good default for
everyone. This is in response to very common confusion of US keyboard
layouts where "alt" doesn't work along with the very common use of
non-US layouts where the right option key is used for input methods.
I think this will strike the right balance for most users.
2024-10-18 14:53:13 -07:00
Mitchell Hashimoto 0084103ff1
Merge pull request #2455 from ghostty-org/push-msknttmmsoxy
cli: skip argv0 and actions when parsing CLI flags
2024-10-18 13:06:22 -07:00
Mitchell Hashimoto c90ed29341
cli: skip argv0 and actions when parsing CLI flags
This fixes a regression from #2454. In that PR, we added an error when
positional arguments are detected. I believe that's correct, but we
were silently relying on the previous behavior in the CLI commands.

This commit changes the CLI commands to use a new argsIterator function
that creates an iterator that skips the first argument (argv0). This is
the same behavior that the config parsing does and now uses this shared
logic.

This also makes it so the argsIterator ignores actions (`+things`)
and we document that we expect those to be handled earlier.
2024-10-18 12:59:16 -07:00
Mitchell Hashimoto 98a7573ed4
Merge pull request #2454 from ghostty-org/diags
Configuration errors improvements: exit on CLI errors, include line number and filepath
2024-10-18 08:35:13 -07:00
Mitchell Hashimoto be3fc5c04a
apprt/gtk: exit if there are CLI errors 2024-10-18 08:26:27 -07:00
Mitchell Hashimoto 463f4afc05
apprt/glfw: exit with invalid CLI args 2024-10-18 08:21:42 -07:00
Mitchell Hashimoto 940a46d41f
cli: positional arguments are invalid when parsing configuration 2024-10-18 08:11:11 -07:00
Mitchell Hashimoto 4e25840e08
apprt/gtk: support new config diagnostics API 2024-10-18 08:11:11 -07:00
Mitchell Hashimoto 70c175e2a6
c: remove the config load string API
It was unused and doesn't match our diagnostic API.
2024-10-18 08:11:11 -07:00
Mitchell Hashimoto a12b33662c
config: track the location of CLI argument errors 2024-10-18 08:11:11 -07:00
Mitchell Hashimoto f24098cbd8
config: show filepath and line numbers for config errors
Fixes #1063
2024-10-18 08:11:11 -07:00