7095 Commits

Author SHA1 Message Date
Mitchell Hashimoto
42a23f2d3d Merge pull request #2156 from qwerasd205/hyperlink-fixes
Various fixes for hyperlink instability
2024-08-28 10:01:19 -07:00
Mitchell Hashimoto
df09a37597 terminal: tests for same page clone with hyperlinks 2024-08-28 09:58:36 -07:00
Mitchell Hashimoto
6a2d57edfd terminal: cursorCopy has option to not copy hyperlink 2024-08-28 09:41:57 -07:00
Mitchell Hashimoto
7540a015a3 Merge pull request #2157 from injust/patch-1
config: document left/right values for `macos-option-as-alt`
2024-08-28 07:44:11 -07:00
Justin Su
f8f289e8b9 config: document left/right values for macos-option-as-alt 2024-08-27 20:36:29 -04:00
Mitchell Hashimoto
89e16ebef5 Revert "Merge pull request #2153 from ghostty-org/metal-cursor"
This reverts commit ee3eb8fe3db53b8896def28cb79c8637cd9ad1fc, reversing
changes made to 3746fed0b92a8bf69862f4832840597a4bf2ffd8.
2024-08-27 09:31:12 -07:00
Qwerasd
a3fb96f543 this should be a doc comment 2024-08-27 01:23:29 -04:00
Qwerasd
ff0c1141da renderer: add updateFrame critical region timings for dev benchmark 2024-08-27 01:23:29 -04:00
Qwerasd
5714c2feed PageList: refactor clone to avoid excess work
Also avoids leaving content in out-of-bounds rows, since it doesn't copy
the content to them in the first place. Over all, just a lot cleaner.
2024-08-27 01:23:29 -04:00
Qwerasd
38bb9b40a6 Terminal: release hyperlink before copying cursor when switching screen
To avoid an unnecessary copy.
2024-08-27 01:07:29 -04:00
Qwerasd
170f55aa84 Screen: update cursorCopy to handle hyperlink state 2024-08-27 01:07:29 -04:00
Qwerasd
cb1cb3526a test(Screen): add failing tests for cursorCopy hyperlink handling 2024-08-27 01:07:29 -04:00
Qwerasd
d43d5b26ee fix(terminal): avoid trying to clone bad managed memory in reflow
If we call `moveLastRowToNewPage` at any point because we failed to copy
some managed memory, it tries to copy managed memory that hasn't been
cloned yet when moving our progress to a new page.

Avoid this by setting our content tag, hyperlink flag, and style id to
indicate no managed memory is present on the cell.
2024-08-27 01:01:31 -04:00
Qwerasd
a6992baa30 fix(terminal): don't MOVE hyperlinks in clonePartialRowFrom 2024-08-27 01:01:31 -04:00
Qwerasd
30bba9bf06 terminal: move refcount responsibility out of setHyperlink
avoids double counting in several places
2024-08-27 01:01:31 -04:00
Mitchell Hashimoto
23c924140a Merge pull request #2154 from ghostty-org/synth
config: font-synthetic-style to enable/disable synthetic styles
2024-08-26 20:56:21 -07:00
Mitchell Hashimoto
bdcc21942d config: font-synthetic-style to enable/disable synthetic styles
This adds a new configuration "font-synthetic-style" to enable or
disable synthetic styles. This is different from "font-style-*" which
specifies a named style or disables a style completely.

Instead, "font-synthetic-style" will disable only the creation of
synthetic styles in the case a font does not support a given style.
This is useful for users who want to obviously know when a font doesn't
support a given style or a user who wants to explicitly only use the
styles that were designed by the font designer.

The default value is to enable all synthetic styles.
2024-08-26 20:52:34 -07:00
Mitchell Hashimoto
80327402b8 Merge pull request #2120 from edmz/last_tab
macos: jump to last_tab
2024-08-26 20:22:52 -07:00
Mitchell Hashimoto
ee3eb8fe3d Merge pull request #2153 from ghostty-org/metal-cursor
renderer/metal: cursor should be drawn on top of fg cells
2024-08-26 20:19:01 -07:00
Mitchell Hashimoto
866a7dfcf1 macos: remove unused gotolasttab 2024-08-26 20:17:19 -07:00
Mitchell Hashimoto
512b24818a apprt/gtk: fix int cast 2024-08-26 20:16:23 -07:00
Mitchell Hashimoto
d7e7f55956 apprt/gtk: support last_tab 2024-08-26 20:13:28 -07:00
Mitchell Hashimoto
3d1ee3daa8 apprt: make gotoTab handle all tab movements 2024-08-26 20:13:27 -07:00
Mitchell Hashimoto
02c6fb5a8c config: remove the super+0 binding for last_tab 2024-08-26 19:59:20 -07:00
Mitchell Hashimoto
788c1e92b8 renderer/metal: cursor should be drawn on top of fg cells
This is done by moving it from list 0 in the pool to list `rows`.
2024-08-26 19:55:12 -07:00
Mitchell Hashimoto
3746fed0b9 Merge pull request #2152 from nihaals/vim-commentstring
Add space to `commentstring` in Vim plugin
2024-08-26 13:57:11 -07:00
Nihaal Sangha
a4b1fc9dba Add space to commentstring in Vim plugin
See https://github.com/vim/vim/pull/14843.
2024-08-26 21:38:07 +01:00
Mitchell Hashimoto
b40b6c3438 config: clarify window-width/height behavior 2024-08-26 10:16:39 -07:00
Mitchell Hashimoto
2c22842198 Merge pull request #2151 from ghostty-org/clamp-win
Clamp initial window size configurations to screen size
2024-08-26 10:13:32 -07:00
Mitchell Hashimoto
18419d3589 Clamp initial window size configurations to screen size
Fixes #2145
2024-08-26 10:09:05 -07:00
Mitchell Hashimoto
c1e978e33d font/coretext: tweak synthetic bold amount to be slightly lighter 2024-08-26 09:37:01 -07:00
Mitchell Hashimoto
a2bb4a7cd1 Merge pull request #2148 from ghostty-org/ft-bold
font/freetype: synthetic bold
2024-08-25 09:54:50 -07:00
Mitchell Hashimoto
915ec029ee font/freetype: synthetic bold 2024-08-25 09:51:09 -07:00
Mitchell Hashimoto
68a69ad2fa Merge pull request #2147 from ghostty-org/ft-italic
freetype: synthetic italic
2024-08-24 21:12:03 -07:00
Mitchell Hashimoto
5f0daa23b9 font/freetype: synthetic italic 2024-08-24 21:03:54 -07:00
Mitchell Hashimoto
022e554cf1 Merge pull request #2146 from ghostty-org/ct-ft
font: coretext_freetype backend supports font variations
2024-08-24 21:03:28 -07:00
Mitchell Hashimoto
7747eaf11d apprt/embedded: use new copyAttribute API for CoreText 2024-08-24 20:52:36 -07:00
Mitchell Hashimoto
def4abf6a9 font: support variations for coretext_freetype backend 2024-08-24 20:35:54 -07:00
Mitchell Hashimoto
f5234e286a pkg/macos: copyAttribute should return optional 2024-08-24 20:35:41 -07:00
Mitchell Hashimoto
d0c510ed29 Merge pull request #2128 from jcollie/kitty-color-protocol-fixup
Clean up Kitty color protocol by using a union
2024-08-24 19:57:44 -07:00
Mitchell Hashimoto
8e2d63b6fa small stylistic changes 2024-08-24 19:55:09 -07:00
Mitchell Hashimoto
582773f858 Merge pull request #2144 from ghostty-org/synth-bold
CoreText: Synthetic Bold
2024-08-24 19:49:37 -07:00
Mitchell Hashimoto
ac3e2163f3 typos 2024-08-24 19:49:04 -07:00
Mitchell Hashimoto
ce6c5517af font: synthesize bold italic 2024-08-23 21:08:41 -07:00
Mitchell Hashimoto
d22551cd31 font/coretext: support synthetic bold 2024-08-23 20:53:22 -07:00
Mitchell Hashimoto
74291793db font: rename auto-italicize to synthetic italic 2024-08-23 20:34:37 -07:00
Mitchell Hashimoto
14b04439d0 Merge pull request #2142 from jparise/editorconfig-swift
editorconfig: add swift style
2024-08-23 20:26:42 -07:00
Mitchell Hashimoto
98f7ed23c7 Merge pull request #2143 from ghostty-org/font-tweaks
Font Improvements
2024-08-23 20:26:27 -07:00
Mitchell Hashimoto
9941440f47 font: bold italic fallback has to avoid nested alias entry 2024-08-23 20:20:44 -07:00
Mitchell Hashimoto
db36a596fb typos 2024-08-23 20:00:43 -07:00