Qwerasd
2944128e05
fix(macOS): restoring tabbed windows with titlebar tabs enabled
2024-01-31 20:07:35 -05:00
Allan Calix
e11d5940ba
Automatically inject ghostty cli to end of $PATH
2024-01-31 16:24:15 -08:00
Mitchell Hashimoto
ecb77219cc
Merge pull request #1418 from qwerasd205/macos-titlebar-tabs
...
macOS: Added titlebar tabs
2024-01-31 15:45:05 -08:00
Mitchell Hashimoto
50125c0319
macos: whitespace
2024-01-31 15:44:34 -08:00
Mitchell Hashimoto
4a93181b79
macos: minor edits
2024-01-31 15:43:35 -08:00
Qwerasd
308f8cce36
macOS: center window title when titlebar tabs enabled
...
Uses a custom toolbar that populates itself with a centered text field and provides a method to set the text.
2024-01-31 16:16:41 -05:00
Mitchell Hashimoto
1a3d2d151e
macos: fix tabs vs spaces
2024-01-31 12:06:58 -08:00
Mitchell Hashimoto
939bb22615
macos: do not hardcode true for titlebar tabs
2024-01-31 10:22:09 -08:00
Mitchell Hashimoto
00661c13ab
config: clarify some limitations
2024-01-31 10:20:37 -08:00
Mitchell Hashimoto
fbac2d9810
macos: titlebar tab logic shuffling
2024-01-31 10:08:05 -08:00
Qwerasd
dacbdf3f38
fix(macOS): set titlebar background color to support transparent windows with titlebar tabs
2024-01-31 07:58:31 -05:00
Qwerasd
ba16d65d02
macOS: Added titlebar tabs
2024-01-30 18:48:36 -05:00
Mitchell Hashimoto
b8422717d3
Merge pull request #1417 from peteschaffner/move-color-extensions-into-crosskit
...
Move color extensions into OSColor
2024-01-30 14:05:00 -08:00
Pete Schaffner
63cc7dbe0d
Move color extensions into OSColor
...
We are also now using the `darken(by:)` implementation to generate
the split divider color on macOS, which means we'll have a consistent
rendering across iOS and macOS.
2024-01-30 22:36:52 +01:00
Mitchell Hashimoto
0c298e0f9a
Merge pull request #1415 from peteschaffner/split-divider-color-ios
...
Add ability to color the split divider on iOS
2024-01-30 09:35:47 -08:00
Pete Schaffner
c248441057
Add ability to color the split divider on iOS
...
This adds the needed UIColor extensions to achieve the equivalent of
what we did on macOS
2024-01-30 14:31:25 +01:00
Mitchell Hashimoto
411a757cdf
macos: fix uikit build, NSColor is not available
2024-01-29 22:23:06 -08:00
Mitchell Hashimoto
508c744a9d
Merge pull request #1411 from peteschaffner/themed-split-view-divider
...
Tint split view divider based on theme background
2024-01-29 21:33:51 -08:00
Mitchell Hashimoto
d625e9d7c4
macos: remove headers
...
Nothing personal, I remove them from all files.
2024-01-29 21:33:08 -08:00
Mitchell Hashimoto
18dfb642f5
macos: plumb through the split divider color
2024-01-29 21:32:10 -08:00
Pete Schaffner
375df57155
Tint split view divider based on theme background
2024-01-29 21:58:13 +01:00
Mitchell Hashimoto
80a91a6581
Merge pull request #1410 from mitchellh/macos-scale
...
apprt/embedded: do not allow NaN or small content scales
2024-01-29 08:40:45 -08:00
Mitchell Hashimoto
5c0e63458f
apprt/embedded: do not allow NaN or small content scales
...
Fixes #1408
2024-01-29 08:35:23 -08:00
Mitchell Hashimoto
0e46783a5d
Merge pull request #1388 from mitchellh/macos-mods
...
core: send key release events on focus loss
2024-01-28 13:51:29 -08:00
Mitchell Hashimoto
38c90eb89a
Merge pull request #1406 from mitchellh/constrain-emoji
...
renderer: constrain emoji to cell width
2024-01-28 10:24:52 -08:00
Mitchell Hashimoto
43c105c363
renderer: constrain emoji to cell width
...
Fixes #1402
2024-01-28 09:07:49 -08:00
Mitchell Hashimoto
cd642eb100
Merge pull request #1405 from mitchellh/term-crash
...
terminal: avoid reading reset memory for preserving prompt
2024-01-28 09:04:04 -08:00
Mitchell Hashimoto
1ed4827308
Merge pull request #1399 from leafgarland/use-background-for-cursor-text-default
...
Default to background colour for cursor-text
2024-01-28 09:03:43 -08:00
Mitchell Hashimoto
4b607a07fe
terminal: avoid reading reset memory for preserving prompt
...
Fixes #1400
2024-01-28 08:58:43 -08:00
Mitchell Hashimoto
4fa5e28748
Merge pull request #1404 from mitchellh/scosc-rc
...
terminal: handle SCOSC/SCORC
2024-01-28 08:14:30 -08:00
Mitchell Hashimoto
c871140419
terminal: handle SCOSC/SCORC
...
Fixes #1401
SCOSC is ambiguous with regards to DECSLRM. This commit copies the logic
of xterm: if left/right mode is enabled, then CSI S is always DECSLRM.
But if left/right mode is disabled then CSI S empty always uses SCOSC.
SCORC always works.
2024-01-28 08:04:14 -08:00
Leaf Garland
d1d7665510
Default to background color for cursor-text
...
Previously the default was black which doesn't work so well if the
cursor block is dark.
2024-01-28 20:20:40 +13:00
Mitchell Hashimoto
06ff385e0c
Merge pull request #1394 from em-dash/configure-scroll-speed
...
Configure scroll speed #1378
2024-01-27 21:24:05 -08:00
Mitchell Hashimoto
5095c8f477
core: be explicit about float rounding for mouse scroll multiplier
2024-01-27 21:14:42 -08:00
Mitchell Hashimoto
f65989fd92
Merge pull request #1387 from mattrobenolt/cmd-click
...
Open links with Super+click
2024-01-27 21:04:51 -08:00
Mitchell Hashimoto
75ca29da59
renderer/link: fix test
2024-01-27 19:34:05 -08:00
Mitchell Hashimoto
9beb395b12
config: update docs
2024-01-27 19:09:03 -08:00
Mitchell Hashimoto
3efe88c85c
input: add link highlight always/hover w/ mods
2024-01-27 19:07:49 -08:00
Mitchell Hashimoto
ae11cc9042
add a new highlight state that requires modifiers
2024-01-27 19:03:03 -08:00
Mitchell Hashimoto
f2aaa73a4d
Merge pull request #1395 from iynaix/meta-main-program
...
nix: Add meta.mainProgram
2024-01-27 18:54:12 -08:00
Lin Xianyi
6a720564b6
nix: Add meta.mainProgram
2024-01-28 10:22:38 +08:00
em-dash
890fd11fc1
Merge branch 'configure-scroll-speed' of github.com:em-dash/ghostty into configure-scroll-speed
2024-01-28 11:09:13 +11:00
em-dash
ce7ba52b12
Add mouse-scroll-multiplier config option
2024-01-28 11:08:41 +11:00
Mitchell Hashimoto
38607a0f34
Merge pull request #1393 from seruman/single-quoted-urls
...
config/url: exclude trailing single quotes
2024-01-27 11:23:46 -08:00
Mitchell Hashimoto
0726a8d1fa
apprt/embedded: ctrl-only should use binding-mods only
...
This allows it to ignore control side differences.
2024-01-27 11:15:54 -08:00
Selman Kayrancioglu
9348561bc7
config/url: exclude trailing single quotes
2024-01-27 21:59:37 +03:00
Mitchell Hashimoto
79d936e8e4
Merge pull request #1391 from mitchellh/macos-fs
...
macos: make global macOS fullscreen keybind work
2024-01-27 09:58:52 -08:00
Mitchell Hashimoto
a41ee3cabe
macos: make global macOS fullscreen keybind work
...
Fixes #1389
This is just a fun AppKit quirk. This menu item is set automatically
based on the keyboard shortcut (apparently) and when its overwritten
then its gone forever. So, let's just not set it.
2024-01-27 09:58:02 -08:00
Mitchell Hashimoto
8b9fd23f01
Merge pull request #1390 from mitchellh/dvorak
...
macos: do not trust AppKit's text translation with ctrl only
2024-01-27 09:46:12 -08:00
Mitchell Hashimoto
d177b20bab
macos: do not trust AppKit's text translation with ctrl only
...
Normally, when `ctrl+<character>` is pressed, such as `ctrl+z` or
`ctrl+c`, macOS (AppKit) doesn't do any key translation because that
doesn't map to any printable text on its own. Ghostty does the
translation to correctly determine the character is "z" or "c" or
whatever.
For some reason when the keyboard layout is "Dvorak - QWERTY Cmd"
specifically (_not_ plain "Dvorak") on a US layout keyboard, AppKit
decides that "ctrl+z" ("/" on a qwerty keyboard) translates to "/"...
I can't find any explanation for this.
To workaround this, this commit makes it so that if the following
conditions are true, then we IGNORE AppKit's text translation and
manually do it using UCKeyTranslate:
(1) We're on macOS specifically (not iOS, etc.)
(2) We have a key event with ONLY control pressed
This fixes `ctrl+z` on this unique Dvorak keyboard layout.
2024-01-27 08:13:53 -08:00