Commit Graph

14517 Commits

Author SHA1 Message Date
Ben Kircher
7d87a58a73 url: fix trailing colon in path matches
Paths like `./.config/ghostty:` and `./Downloads:` were incorrectly
including the trailing colon. Add a `no_trailing_colon` lookbehind to
all path branches and prevent space segments from starting after a colon
so that `": text"` is not consumed as part of the path.
2026-02-14 09:42:07 +01:00
Hanna
faa0f99d36 i18n: add missing nb_NO translations (#10702) 2026-02-13 19:48:08 +00:00
Priyanshu
d2841220a8 move copyTitleToClipboard logic into Surface 2026-02-13 21:30:13 +05:30
Kat
03c3d0b113 i18n: update de_DE translations (#10698)
This PR adds the missing translations for Ghostty 1.3 and aligns the
existing translation of "Terminal Title" with similar instances, such as
"Terminalinspektor" and "Terminalsitzungen".

Related to: #10632
2026-02-13 15:49:26 +00:00
Klaus Hipp
1ce7531b6c i18n: update de_DE translations 2026-02-13 08:06:43 +01:00
Kat
c8461749eb i18n/zh_CN: update for 1.3 (#10640)
Part of #10632

Given I'm the only member in the zh_CN team, y'all just have to trust me
on this one... Wouldn't mind the zh_TW folks taking a look of course
2026-02-13 06:59:12 +00:00
Kat
2fdb5c10d4 i18n: update zh_TW translation (#10645) 2026-02-13 06:49:28 +00:00
Kat
8714d7202a Update Hebrew translations and copyright year for 1.3. (#10676)
Added Hebrew translations for various strings for 1.3, as requested in
https://github.com/ghostty-org/ghostty/issues/10632.
Updated copyright year to 2026.
2026-02-13 06:35:43 +00:00
Priyanshu
de49b7f27b rename copy_title action to copy_title_to_clipboard 2026-02-13 09:59:02 +05:30
Jeffrey C. Ollie
c69322fb6a build(deps): bump docker/build-push-action from 6.19.1 to 6.19.2 (#10697)
Bumps
[docker/build-push-action](https://github.com/docker/build-push-action)
from 6.19.1 to 6.19.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/docker/build-push-action/releases">docker/build-push-action's
releases</a>.</em></p>
<blockquote>
<h2>v6.19.2</h2>
<ul>
<li>Preserve port in <code>GIT_AUTH_TOKEN</code> host by <a
href="https://github.com/crazy-max"><code>@​crazy-max</code></a> in <a
href="https://redirect.github.com/docker/build-push-action/pull/1458">docker/build-push-action#1458</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/docker/build-push-action/compare/v6.19.1...v6.19.2">https://github.com/docker/build-push-action/compare/v6.19.1...v6.19.2</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="10e90e3645"><code>10e90e3</code></a>
Merge pull request <a
href="https://redirect.github.com/docker/build-push-action/issues/1458">#1458</a>
from crazy-max/git-auth-port</li>
<li><a
href="5262538458"><code>5262538</code></a>
chore: update generated content</li>
<li><a
href="cd130e45cb"><code>cd130e4</code></a>
preserve port in GIT_AUTH_TOKEN host</li>
<li><a
href="806c75105a"><code>806c751</code></a>
Merge pull request <a
href="https://redirect.github.com/docker/build-push-action/issues/1452">#1452</a>
from crazy-max/update-yarn</li>
<li><a
href="c4ca8486a6"><code>c4ca848</code></a>
update yarn to 4.9.2</li>
<li>See full diff in <a
href="601a80b39c...10e90e3645">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=docker/build-push-action&package-manager=github_actions&previous-version=6.19.1&new-version=6.19.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>
2026-02-12 19:41:23 -06:00
dependabot[bot]
419e01f037 build(deps): bump docker/build-push-action from 6.19.1 to 6.19.2
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 6.19.1 to 6.19.2.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](601a80b39c...10e90e3645)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-version: 6.19.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-13 00:13:30 +00:00
Priyanshu
b4be13ed50 fix: copy_title_to_clipboard now respects user-overridden title
When a user renames a surface via "Change Terminal Title" and then
uses copy_title_to_clipboard, the raw terminal title was copied
instead of the custom name.

This adds a new `copy_title` apprt action so each platform resolves
the effective title (user override or terminal-set) before copying
to clipboard.

Fixes #10345
2026-02-13 01:19:15 +05:30
Kat
13e8d85a01 Updated macedonian localization strings (#10686) 2026-02-12 17:33:40 +00:00
Jon Parise
a271f85cd2 bash: preserve existing PS0 value
We were previously overwriting PS0 on every PROMPT_COMMAND. We now
append to PS0, but only if it doesn't already contain our hook.

This is also more consistent with the bash-preexec behavior we maintain
for older bash versions.
2026-02-12 12:02:23 -05:00
Andrej Daskalov
f59c893740 Updated macedonian localization strings 2026-02-12 17:31:53 +01:00
Leah Amelia Chen
056e2dbf3e i18n/zh_CN: prefer single ellipses 2026-02-12 23:52:09 +08:00
Mitchell Hashimoto
d54f079517 renderer: fix draw timer activation (#10668)
The draw timer should only be activated in case a custom shader is
configured and the option custom-shader-animation is either always or
true. If the timer is kept alive CPU usage spiked enourmously.

Fixes #10667
2026-02-12 07:19:43 -08:00
Mitchell Hashimoto
5e3576ce20 build(deps): bump docker/build-push-action from 6.18.0 to 6.19.1 (#10679)
Bumps
[docker/build-push-action](https://github.com/docker/build-push-action)
from 6.18.0 to 6.19.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/docker/build-push-action/releases">docker/build-push-action's
releases</a>.</em></p>
<blockquote>
<h2>v6.19.1</h2>
<ul>
<li>Derive <code>GIT_AUTH_TOKEN</code> host from GitHub server URL by <a
href="https://github.com/crazy-max"><code>@​crazy-max</code></a> in <a
href="https://redirect.github.com/docker/build-push-action/pull/1456">docker/build-push-action#1456</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/docker/build-push-action/compare/v6.19.0...v6.19.1">https://github.com/docker/build-push-action/compare/v6.19.0...v6.19.1</a></p>
<h2>v6.19.0</h2>
<ul>
<li>Scope default git auth token to <code>github.com</code> by <a
href="https://github.com/crazy-max"><code>@​crazy-max</code></a> in <a
href="https://redirect.github.com/docker/build-push-action/pull/1451">docker/build-push-action#1451</a></li>
<li>Bump brace-expansion from 1.1.11 to 1.1.12 in <a
href="https://redirect.github.com/docker/build-push-action/pull/1396">docker/build-push-action#1396</a></li>
<li>Bump form-data from 2.5.1 to 2.5.5 in <a
href="https://redirect.github.com/docker/build-push-action/pull/1391">docker/build-push-action#1391</a></li>
<li>Bump js-yaml from 3.14.1 to 3.14.2 in <a
href="https://redirect.github.com/docker/build-push-action/pull/1429">docker/build-push-action#1429</a></li>
<li>Bump lodash from 4.17.21 to 4.17.23 in <a
href="https://redirect.github.com/docker/build-push-action/pull/1446">docker/build-push-action#1446</a></li>
<li>Bump tmp from 0.2.3 to 0.2.4 in <a
href="https://redirect.github.com/docker/build-push-action/pull/1398">docker/build-push-action#1398</a></li>
<li>Bump undici from 5.28.4 to 5.29.0 in <a
href="https://redirect.github.com/docker/build-push-action/pull/1397">docker/build-push-action#1397</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/docker/build-push-action/compare/v6.18.0...v6.19.0">https://github.com/docker/build-push-action/compare/v6.18.0...v6.19.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="601a80b39c"><code>601a80b</code></a>
Merge pull request <a
href="https://redirect.github.com/docker/build-push-action/issues/1456">#1456</a>
from crazy-max/auth-token-dyn-host</li>
<li><a
href="8f7fd7c8c7"><code>8f7fd7c</code></a>
chore: update generated content</li>
<li><a
href="710e335474"><code>710e335</code></a>
derive GIT_AUTH_TOKEN host from GitHub server URL</li>
<li><a
href="ee4ca427a2"><code>ee4ca42</code></a>
Merge pull request <a
href="https://redirect.github.com/docker/build-push-action/issues/1398">#1398</a>
from docker/dependabot/npm_and_yarn/tmp-0.2.4</li>
<li><a
href="f1b3bb51af"><code>f1b3bb5</code></a>
chore: update generated content</li>
<li><a
href="db35f80311"><code>db35f80</code></a>
chore(deps): Bump tmp from 0.2.3 to 0.2.4</li>
<li><a
href="a129300020"><code>a129300</code></a>
Merge pull request <a
href="https://redirect.github.com/docker/build-push-action/issues/1397">#1397</a>
from docker/dependabot/npm_and_yarn/undici-5.29.0</li>
<li><a
href="ba15693834"><code>ba15693</code></a>
chore: update generated content</li>
<li><a
href="367ff5effe"><code>367ff5e</code></a>
chore(deps): Bump undici from 5.28.4 to 5.29.0</li>
<li><a
href="0149a90b0f"><code>0149a90</code></a>
Merge pull request <a
href="https://redirect.github.com/docker/build-push-action/issues/1396">#1396</a>
from docker/dependabot/npm_and_yarn/brace-expansion-...</li>
<li>Additional commits viewable in <a
href="263435318d...601a80b39c">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=docker/build-push-action&package-manager=github_actions&previous-version=6.18.0&new-version=6.19.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>
2026-02-12 07:18:23 -08:00
Kat
c2c59e5d62 Spanish (Bolivia) translation for 1.3 (ES_BO) (#10675)
This pull request improves the Spanish (Bolivia) translation file by
adding translations for several user interface strings related to
terminal search, navigation, and read-only mode messages.

**Translation updates:**

* Added Spanish translations for search overlay actions such as "Find…",
"Previous Match", and "Next Match"
(`src/apprt/gtk/ui/1.2/search-overlay.blp`).
* Added translations for terminal state messages, including "Oh, no.",
"Unable to acquire an OpenGL context for rendering.", and the read-only
mode notification and label (`src/apprt/gtk/ui/1.2/surface.blp`).
* Added translation for "Notify on Next Command Finish"
(`src/apprt/gtk/ui/1.2/surface.blp`).
2026-02-12 15:01:45 +00:00
Kat
2868677af5 feat(i18n): complete Lithuanian (lt_LT) translation for v1.3 (#10644)
- Added translations for 10 previously untranslated strings
- Translated search overlay messages (Find, Previous Match, Next Match)
- Translated error messages (OpenGL context, read-only mode)
- Translated notification messages (Command Finished, Command Succeeded,
Command Failed)
- Updated PO-Revision-Date to 2026-02-10

All 71 messages are now fully translated in Lithuanian.
2026-02-12 09:24:00 +00:00
Kat
cfe4ced198 i18n: update Hungarian translations and revision date (#10648)
Adding new translations for hu_HU.

Part of: #10632
2026-02-12 07:23:54 +00:00
tdslot
6be2d30b16 Update po/lt_LT.UTF-8.po
Good

Co-authored-by: Andrius Budvytis <154380884+abudvytis@users.noreply.github.com>
2026-02-12 07:04:26 +01:00
tdslot
01861e376b Update po/lt_LT.UTF-8.po
Good

Co-authored-by: Andrius Budvytis <154380884+abudvytis@users.noreply.github.com>
2026-02-12 07:04:13 +01:00
Miguel P Z
f0f006aa6e i18n: update Spanish translations and revise PO-Revision-Date 2026-02-12 07:36:09 +02:00
Kat
20c07be451 i18n: fix fr_FR translations (#10674)
Fix a few mistakes and missing whitespaces
2026-02-12 04:45:12 +00:00
dependabot[bot]
0272a394ab build(deps): bump docker/build-push-action from 6.18.0 to 6.19.1
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 6.18.0 to 6.19.1.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](263435318d...601a80b39c)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-version: 6.19.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-12 00:13:53 +00:00
Sl (Shahaf Levi)
0425a981be Update Hebrew translations for 1.3 2026-02-11 23:01:51 +02:00
Sl (Shahaf Levi)
6d0c91ab0f Update Hebrew translations and copyright year for 1.3.
Added Hebrew translations for various strings for 1.3. Updated copyright year to 2026.
2026-02-11 22:47:07 +02:00
Miguel P Z
484e951286 Fix suggestion by GH Copilot
renderizado DOES not exist in SPANISH:

https://dle.rae.es/renderizado
2026-02-11 22:44:16 +02:00
Miguel P Z
d3b9ee2a8e Fixed mispelling 2026-02-11 22:37:46 +02:00
Miguel P Z
360f99ebc9 Update es_BO.UTF-8.po translations
Fill previously empty msgstr entries in po/es_BO.UTF-8.po. Adds Bolivian Spanish translations for several UI strings (Find…, Previous Match, Next Match, Oh, no., OpenGL context error, read-only mode text and label, Notify on Next Command Finish, etc.) to enable localized UI messages.
2026-02-11 22:33:34 +02:00
flou
eccf9cb702 i18n: fix fr_FR translations 2026-02-11 21:32:23 +01:00
Leah Amelia Chen
ea35af03de i18n/zh_CN: update for 1.3
Part of #10632
2026-02-12 02:00:15 +08:00
Tobias Kohlbau
f661d948a2 renderer: fix draw timer activation
The draw timer should only be activated in case a custom shader
is configured and the option custom-shader-animation is either always
or true. If the timer is kept alive CPU usage spiked enourmously.

Fixes #10667
2026-02-11 17:23:41 +01:00
trag1c
1576a09b01 i18n: update ko_KR translations (#10656) 2026-02-11 16:57:36 +01:00
Ben Kircher
bbcc22746a urls: fix over-matching single spaced paths
This commit adds a negative lookahead `(?!\w+://)` to both
`dotted_path_space_segments` and `any_path_space_segments`. This
prevents the space-segment matching from consuming text that starts with
a URL scheme (like http://), which was causing /tmp/test.txt
http://www.google.com to over-match.

Fixes
https://github.com/ghostty-org/ghostty/issues/1972#issuecomment-3882254792
2026-02-11 09:47:28 +01:00
Ben Kircher
50ba394ed3 url: do not match on //
Double-slash comments are not paths so do not match on them.
2026-02-11 09:34:52 +01:00
Ben Kircher
23d22c457a url: fix , handling for spaced paths
Update path_space_segments patterns to consistently handle
comma-delimiters.
2026-02-11 09:34:52 +01:00
Ben Kircher
38831436ea url: fix tilde mid-word partial matches
Don't match `~` mid-word or before `/`.
2026-02-11 09:34:52 +01:00
Ben Kircher
270ee5468f url: fix $VAR mid-word partial matches
Add `(?<!\w)` to prefixes so that $VAR cannot match mid-word.
2026-02-11 09:34:52 +01:00
Ben Kircher
02749cb1dc url: fix comma handling
This string

    foo/bar,baz.txt

should not match but

    src/foo.c,baz.txt

should.

Remove `,` from dotted_path_lookahead and non_dotted_path_lookahead.
2026-02-11 09:34:52 +01:00
Ben Kircher
19a41eb26b url: allow numeric characters at start
Amends and fixes the last commit which was too simpel. This commit uses
a lookbehind to prevent matching $-numeric patterns.
2026-02-11 09:34:52 +01:00
Ben Kircher
99320714bc url: fix incomplete $-numeric behavior
This

    $10/bar.txt

was partially matching but should not match at all.

This commit fixes this by simply `[\w]` to `[A-Za-z_]` as the first
character of a bare relative path, so digit-starting fragments can't
match.

Another option would be a lookbehind but I think the check above is much
simpler.
2026-02-11 09:34:52 +01:00
Ben Kircher
77ee47c18f url: fix partial match of mid string $-variable
A string like this

    foo/$BAR/baz

should match fully, not partially.

This commit fixes this by expanding `\$[A-Za-z_]\w*\/` to
`(?:[\w][\w\-.]*\/)*\$[A-Za-z_]\w*\/` in rooted_or_relative_path_prefix
so that we optionally eat everything before a variable `$VAR/`.
2026-02-11 09:34:52 +01:00
Ben Kircher
af643a1a21 url: fix $-numeric character matches
Strings like

    $10/$20

Should not match.

This commit fixes this by narrowing `\w` after `$` to `[A-Za-z_]` which
is— according to Google Gemini— what environment variables can start
with.
2026-02-11 09:34:52 +01:00
Ben Kircher
0f904d92e0 url: fix mid-string dot partial matches
A string like

    foo.local/share

should match fully, not partially.

This commit fixes this by moving `dotted_path_lookahead` before
`bare_relative_path_prefix` so the dot-check scans the entire match
rather than only the text after it.
2026-02-11 09:34:52 +01:00
Ben Kircher
d8eb89f384 url: fix matching ~, $VAR, .directory/
Related to #1972

This commit adds three new alternatives for
`rooted_or_relative_path_prefix`:

- `~/`
- `$VAR` and
- `.local/`, `.config/` etc. for dot-prefixed directory names
2026-02-11 09:34:52 +01:00
Ben Kircher
72a894b13b url: remove , from path_chars
Related to #1972

Fixes an issue when paths have embedded comma, e.g.:

    shared/src/foo/SomeItem.m:12, shared/src/

with path_chars greedily consuming the rest of the string.

Now file path matching stops at comma. Scheme URLs are unchanged and
still using the comma.
2026-02-11 09:34:52 +01:00
Ben Kircher
c6e0de0bae url: carefully extend test cases
Extend existing test cases with `~`, `$VAR`, and bare .-prefixed paths
and embedded `,` comma handling.

See following issue comments:

- https://github.com/ghostty-org/ghostty/pull/10570#issuecomment-3853842036
- https://github.com/ghostty-org/ghostty/issues/1972#issuecomment-3859329233
- https://github.com/ghostty-org/ghostty/issues/1972#issuecomment-3857881196
2026-02-11 09:34:52 +01:00
Ben Kircher
f38366b5dc url: update top-level comment 2026-02-11 09:34:52 +01:00