Skip to content

Ligatures v1 and VS15/VS16 Emoji Support - #12

Merged
mitchellh merged 17 commits into
mainfrom
ligs
Sep 7, 2022
Merged

mitchellh merged 17 commits into
mainfrom
ligs

Conversation

@mitchellh

Copy link
Copy Markdown
Contributor

This introduces ligature support (text shaping) into ghostty. This has about a ~15% performance cost on rendering right now but this is what I'd consider a pre-optimized form. There's a lot of low hanging fruit to improve performance and I plan on tackling that soon.

This also brings in support for unicode variation selector 15/16 for choosing between text and graphical emoji when supported (i.e. ✌️ and ✌, these might show up the same if your computer doesn't have fonts).

@mitchellh
mitchellh merged commit d42c99b into main Sep 7, 2022
@mitchellh
mitchellh deleted the ligs branch September 7, 2022 23:19
kkilchrist pushed a commit to kkilchrist/ghostty-applescript that referenced this pull request Mar 3, 2026
gaelic-ghost pushed a commit to gaelic-ghost/ghostty that referenced this pull request Mar 15, 2026
…prompt-followup

Fix Pure prompt redraw markers
ren18161849172-byte added a commit to ren18161849172-byte/ghostty that referenced this pull request May 7, 2026
Shell Detection (ghostty-org#8):
- detectWindowsShell() searches PATH: pwsh.exe → powershell.exe → cmd.exe
- Replaces hardcoded cmd.exe default with automatic detection
- User-configured command always takes priority

Config Path Resolver (ghostty-org#12):
- Change XDG config base from LOCALAPPDATA to APPDATA on Windows
- Config now loads from %APPDATA%\ghostty\config.ghostty
- Cache and state still use LOCALAPPDATA

Resolves: ghostty-org#8, ghostty-org#12
ehs5 added a commit to ehs5/ghostty that referenced this pull request Aug 8, 2026
git mv on all 8 files, then a global content rename (types, comments) so
naming matches the project's actual name.

Related to ehs5/coastty#12
ehs5 added a commit to ehs5/ghostty that referenced this pull request Aug 8, 2026
… (coastty#12)

Addresses the review findings from the previous pass on ticket ghostty-org#12
("Sidebar (full height) + coastty's own tab bar, matching Ghostty's
native tabs"):

- Architecture: coastty now owns tabs itself instead of relying on
  NSWindowTabGroup. Each TerminalController (one NSWindow) holds an
  array of CoasttyTab, each wrapping its own SplitTree<SurfaceView>.
  Switching tabs swaps which tab's tree is installed as the
  controller's own `surfaceTree` (the same @published property that
  already drives the SwiftUI terminal view), so a backgrounded tab's
  surfaces stay alive without being destroyed. `window.tabbingMode =
  .disallowed` turns off native tabbing entirely, so the native
  titlebar tab strip no longer exists above the window at all - the
  sidebar now genuinely spans the window's full height, and coastty's
  own tab bar (CoasttyTabBarView) sits only above the terminal content
  pane on the right.
- Tab bar: new CoasttyTabBarView/CoasttyTabBarModel - click to switch,
  a close (x) affordance per tab, a new-tab "+" control, and a
  per-tab keyboard-shortcut badge mirroring the real configured
  goto_tab:N binding. Wired to Cmd+T/W, Cmd+1-9/`, close/close-other/
  close-to-the-right, move-tab, and window/undo-redo close flows,
  all rebuilt against coastty's own tab array instead of
  NSWindowTabGroup.
- Live theme colors: CoasttyPalette now derives every token (sidebar
  and tab bar) from Ghostty's own live Config - background,
  foreground, and the configured 16-color ANSI palette - instead of
  hardcoded hex values. Added Ghostty.Config.foregroundColor/.palette
  accessors alongside the existing .backgroundColor one.
- Fixed the folder/spaceName render bug: the Agents row's "folder"
  slot now renders `row.tab.folderName` (the tab's real working
  directory) instead of `row.spaceName`.
- "Space" naming is now workspace-shaped: derived from the longest
  shared directory across a window's tabs (TerminalController.
  longestCommonDirectory, unit tested), not aliased to a tab's own
  title.
- folderName is now populated from each tab's real pty working
  directory (Ghostty.SurfaceView.pwd) instead of a hardcoded "".

Known, deliberately out-of-scope gaps (documented in code comments):
drag-to-detach (per the ticket's own architecture note), full-relaunch
persistence of backgrounded tabs (undo/redo and window-close/reopen
already cover every tab; full relaunch only restores the active one -
that's "real persistence" pillar work, tracked separately), and the
AppleScript scripting bridge still treats a coastty window as a single
"tab" (pre-existing ScriptTab/ScriptWindow model, not part of this
ticket's UI-focused acceptance criteria).

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WSiMu3mfaPBs7sL95JCvV2
ehs5 added a commit to ehs5/ghostty that referenced this pull request Aug 8, 2026
…te on reindex-only calls

Root cause (confirmed by code reading, matching build-it-implement-loop's
final review on ticket ghostty-org#12): coasttyCloseTabImmediately calls
coasttyActivateTab(at:) purely to refresh tab bar/sidebar bookkeeping
after a *different* tab's removal shifts indices. In that case
index == coasttyActiveTabIndex already, so the old code skipped the
snapshot step but still unconditionally ran `surfaceTree = tab.tree`
and reassigned focus - overwriting the live (possibly since-edited,
e.g. freshly split) surfaceTree with whatever was last explicitly
snapshotted, which is stale whenever a split happened without an
intervening tab switch.

Fix: coasttyActivateTab now returns early (after just refreshing UI
bookkeeping) whenever index == coasttyActiveTabIndex, before touching
surfaceTree/focusedSurface at all. Checked all 5 call sites
(coasttyNewTab, coasttyCloseTabImmediately x2, undo-redo restore,
tab bar click, goto_tab keyboard shortcut) - every one either wants a
real switch (index differs) or is exactly this reindex-only case,
where the early return is correct.

Verified: full Debug build (xcodebuild) and GhosttyTests suite both
green, no new failures.

Related to ehs5/coastty#12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant