6927 Commits

Author SHA1 Message Date
Mitchell Hashimoto
2ca1a7aeed Merge pull request #1810 from il-k/elvish-integration
fix(shell-integration/elvish): fix mistakes
2024-05-31 08:06:02 -07:00
ilk
e5411284dd fix(elvish-integration): fix mistakes
fix some missing imports and (shamefully) faulty logic.
2024-05-31 12:20:12 +03:00
Mitchell Hashimoto
b50f34de3a Merge pull request #1809 from mitchellh/any-preso
font: when presentation isn't found, always fallback to any
2024-05-30 15:14:06 -07:00
Mitchell Hashimoto
80c0ba8758 font: when presentation isn't found, always fallback to any
Fixes #1808

When resolving a codepoint, we first attempt to find the default
presentation (if an explicit one is not given), but we were not falling
back to "any" in case that presentation was not found.
2024-05-30 14:22:42 -07:00
Mitchell Hashimoto
523f9e32cc Merge pull request #1803 from mitchellh/mixed-font
Handle mixed-color fonts
2024-05-29 08:11:33 -07:00
Mitchell Hashimoto
3a4294a567 Merge pull request #1807 from cryptocode/cc-scrollback_include_active
scrollback: Include active area when writing scrollback to file
2024-05-29 08:01:45 -07:00
cryptocode
0b6081d427 scrollback: Include active area when writing scrollback to file
Writing scrollback to file is, among other usecases, an interrim solution for searching.
Status quo is to only write history pages, and not the active area. This PR proposes that
the scrollback write includes the active area, which I think is more useful. For example,
you can then do less +G <super+shift+j> if you have long log output and then page and
reverse-search through all of it. It's a bit surprising if the active area is missing.
2024-05-29 15:19:45 +02:00
Mitchell Hashimoto
d978d05d7e font/coretext: glyphIndex must return u32 for noop shaper 2024-05-28 21:05:32 -07:00
Mitchell Hashimoto
f6e708c0fb font/coretext: cleanup unused comments 2024-05-28 20:58:06 -07:00
Mitchell Hashimoto
9a628d8a8e font: remove unused structs 2024-05-28 20:56:47 -07:00
Mitchell Hashimoto
6a8dc12ae1 font: remove deferred face todo, note why 2024-05-28 20:54:05 -07:00
Mitchell Hashimoto
a205e1e2c1 pkg/freetype: use c_ulong which isn't 64-bit on windows 2024-05-28 20:49:21 -07:00
Mitchell Hashimoto
adaeffb2b5 font/freetype: CBDT/CBLC tables imply color 2024-05-28 20:40:46 -07:00
Mitchell Hashimoto
4daa49fe27 font/freetype: update to new presentation APIs 2024-05-28 20:25:49 -07:00
Mitchell Hashimoto
326659c522 font: handle presentation at glyph layer 2024-05-28 20:09:05 -07:00
Mitchell Hashimoto
dc6b1b0b7a font/coretext: hasColor/isColored 2024-05-28 13:20:37 -07:00
Mitchell Hashimoto
d22c645a02 font/coretext: determine glyph colorization 2024-05-28 13:04:55 -07:00
Mitchell Hashimoto
8920f45fd8 font/freetype: API to load font table 2024-05-28 09:48:01 -07:00
Mitchell Hashimoto
9f885ff64f font/opentype: add SVG table parser, membership check 2024-05-27 21:35:33 -07:00
Mitchell Hashimoto
1a7cde9e3e font/coretext: can read font tables 2024-05-27 20:23:10 -07:00
Mitchell Hashimoto
83dbcaad7a Merge pull request #1774 from il-k/elvish-integration-auto
feat(shell-integration): add automatic integration for Elvish
2024-05-27 16:19:26 -07:00
Mitchell Hashimoto
66a9b1b99f rename env var 2024-05-27 16:18:51 -07:00
Mitchell Hashimoto
982e4c9570 prettier 2024-05-27 16:16:43 -07:00
ilk
2863d2c148 refactor(shell-integration): refactor to make cases alphabetical
also fix: build errors
also fix: name mismatch (GHOSTTY_FISH_XDG_DIR -> GHOSTTY_INTEGRATION_DIR)
also refactor elvish file to evade unobvious returns
2024-05-27 16:15:13 -07:00
ilk
7377ca8917 refactor(shell-integration): refactor to make cases alphabetical
also refactors elvish file to evade unobvious returns
and tries to fix some build errors
2024-05-27 16:15:12 -07:00
ilk
1fa830cc73 feat(shell-integration): add automatic integration for Elvish
Fish automatic integration taken as an example.
Just like fish, Elvish checks `XDG_DATA_DIRS` for its modules.
Thus, Fish integration in zig is reused, and integration in
Elvish now removes `GHOSTTY_FISH_XDG_DIR` environment variable
on launch.
2024-05-27 16:15:01 -07:00
Mitchell Hashimoto
1032cdb68f Merge pull request #1772 from il-k/elvish-integration
feat(shell-integration): add integration for Elvish
2024-05-27 16:11:23 -07:00
Mitchell Hashimoto
17e7ff1de3 shell-integration: add README about Elvish 2024-05-27 16:11:08 -07:00
Mitchell Hashimoto
ded7c0abac Merge pull request #1760 from jcollie/notification-suppression
Rate limit desktop notifications
2024-05-26 20:50:19 -07:00
Mitchell Hashimoto
98b05ffd09 core: nitpick some var names 2024-05-26 20:49:00 -07:00
Mitchell Hashimoto
6ea739f08c Merge pull request #1799 from mitchellh/mixed-font
font: treated fonts with mixed color/non-color glyphs as text
2024-05-26 15:24:54 -07:00
Mitchell Hashimoto
9f4d4d3c61 font: treated fonts with mixed color/non-color glyphs as text
Related to #1768 but doesn't fix it properly.

This is a temporary hack to avoid some issues with fonts that have mixed
color/non-color glyphs. If there are mixed presentations and the font
does not have emoji codepoints, then we assume it is text. This fixes
the typical scenarios.

This is not a long term solution. A proper long term solution is to
detect this scenario and on a per-glyph basis handle colorization (or
the lack thereof) correctly. It looks like to do this we'll have to
parse some font tables which is considerably more work so I wanted to do
this first.
2024-05-26 10:17:20 -07:00
Mitchell Hashimoto
6a8db0526a Merge pull request #1797 from PeterCardenas/font-nitpick
make strikethrough calculation more clear
2024-05-26 12:28:30 -04:00
Mitchell Hashimoto
e427312282 modify var name 2024-05-26 09:28:16 -07:00
Mitchell Hashimoto
8e849df493 Merge pull request #1798 from Jan200101/PR/rel-path
build: prevent breakage with relative paths
2024-05-26 12:06:33 -04:00
Jan200101
11a9dd9dad build: prevent breakage with relative paths
`root()` returns `@src().file` which isn't guaranteed to be an absolute path
2024-05-26 17:46:26 +02:00
Peter Cardenas
e56acef775 🧹 make strikethrough calculation slightly clearer
followup to https://github.com/mitchellh/ghostty/pull/1796
the sources of the strikethrough calculation are made more explicit
here: the ascent and the subtraction of the leading
2024-05-26 01:44:26 -07:00
Mitchell Hashimoto
c84c63877c Merge pull request #1796 from mitchellh/strike
font/coretext: adjust strikethrough position for fonts with leading
2024-05-25 18:23:30 -04:00
Mitchell Hashimoto
bc99082242 font/coretext: adjust strikethrough position for fonts with leading
Fixes #1795

This only affected CoreText. When testing with Freetype the
strikethroughs looked correct for fonts with and without leading
metrics.

This commit adjusts our strikethrough position for fonts that have a
leading metric set to better center it. Previously, we centered the
position _including_ the leading value. The leading value is blank, so
we must center it excluding that value.
2024-05-25 15:20:16 -07:00
Mitchell Hashimoto
7df3f75db0 Merge pull request #1793 from Jan200101/PR/bold-is-bright
terminal: support using the bright palette for bold text
2024-05-25 17:20:03 -04:00
Mitchell Hashimoto
41afb62903 very minor nitpicks 2024-05-25 14:19:23 -07:00
Mitchell Hashimoto
0fdbf80381 nix: update hash 2024-05-25 14:12:56 -07:00
Mitchell Hashimoto
147238a7b9 update libxev
For #1794
2024-05-25 14:10:43 -07:00
Jan200101
94a7166028 terminal: support using the bright palette for bold text 2024-05-25 16:58:19 +02:00
Mitchell Hashimoto
3537820e75 Merge pull request #1788 from mitchellh/dependabot/github_actions/namespacelabs/nscloud-cache-action-1.1.5
build(deps): bump namespacelabs/nscloud-cache-action from 1.1.4 to 1.1.5
2024-05-24 07:43:25 -04:00
dependabot[bot]
678a42bb78 build(deps): bump namespacelabs/nscloud-cache-action from 1.1.4 to 1.1.5
Bumps [namespacelabs/nscloud-cache-action](https://github.com/namespacelabs/nscloud-cache-action) from 1.1.4 to 1.1.5.
- [Release notes](https://github.com/namespacelabs/nscloud-cache-action/releases)
- [Commits](https://github.com/namespacelabs/nscloud-cache-action/compare/v1.1.4...v1.1.5)

---
updated-dependencies:
- dependency-name: namespacelabs/nscloud-cache-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-24 00:51:52 +00:00
Mitchell Hashimoto
51b6bf46bf update README
Fixes #1773
2024-05-22 16:15:18 -04:00
Mitchell Hashimoto
4da59c21de Merge pull request #1785 from mattrobenolt/shell-plist
macos: Declare Ghostty as a Shell
2024-05-22 15:46:58 -04:00
Mitchell Hashimoto
063a20e085 Merge pull request #1786 from mitchellh/kittyimg
renderer: kitty image with y offset should stretch image
2024-05-22 15:44:53 -04:00
Mitchell Hashimoto
06bcbe868f renderer: kitty image with y offset should stretch image
Fixes #1784

This was just a misunderstanding of the "spec." When both a y offset
into the image is specified and a height, the image should be stretched.
I mistakingly thought that the image should be offset (even with this
misunderstanding there was a data corruption bug).

This resolves the issue and output matches Kitty.
2024-05-22 15:40:31 -04:00