4285 Commits

Author SHA1 Message Date
Mitchell Hashimoto
d053325d95 Merge pull request #1130 from mitchellh/mrn/nix-update-zls
nix: update ZLS
2023-12-19 21:32:54 -08:00
Thorsten Ball
d6d659d824 nix: update ZLS
Just keeping up with Zig.
2023-12-20 06:20:06 +01:00
Mitchell Hashimoto
e6e2b571d1 Merge pull request #1128 from mitchellh/update-zig
update zig
2023-12-19 15:00:50 -08:00
Mitchell Hashimoto
482a53b72f update zig 2023-12-19 14:33:35 -08:00
Mitchell Hashimoto
fe9004ab88 Merge pull request #1121 from rockorager/xdg-terminal-exec
cli: handle launching as `xdg-terminal-exec`
2023-12-19 13:14:21 -08:00
Mitchell Hashimoto
cea98d3afa config: handle xdg-terminal-exec detection higher up 2023-12-19 13:10:55 -08:00
Mitchell Hashimoto
5ab7d89112 Merge pull request #1127 from vancluever/vancluever-powerline-trapezoid
Powerline: add trapezoid rendering
2023-12-19 12:34:28 -08:00
Chris Marchesi
dfefe953fc Powerline: add trapezoid rendering
This adds Powerline rendering for the trapezoid characters (E0D2 and
E0D4).

This is the last of the Powerline additions for now. These are the
shapes that 1) render the most egregiously with stock fonts (off-center,
bleeding background, visible gaps), and 2) are simple enough to be
rendered without resorting to more complex measures like embedding SVG.
2023-12-19 11:36:05 -08:00
Mitchell Hashimoto
469970b1e5 Merge pull request #1126 from mitchellh/sparkle
macOS: Sparkle update framework
2023-12-19 09:47:25 -08:00
Mitchell Hashimoto
d1b90e1689 ci: uncomment the release-to-github code 2023-12-19 09:38:02 -08:00
Mitchell Hashimoto
8c74531620 macos: update the release notes with link to GH project 2023-12-19 09:36:44 -08:00
Mitchell Hashimoto
8644c573b7 Merge pull request #1125 from clebs/chore/remove-imports
chore: remove unused imports from config/edit
2023-12-19 08:11:40 -08:00
Mitchell Hashimoto
0acf783700 macos: set the update URL 2023-12-19 08:04:36 -08:00
Mitchell Hashimoto
8218c96cc6 ci: manually codesign since --deep is deprecated 2023-12-19 08:04:21 -08:00
Mitchell Hashimoto
0ccdcd3f0f dist/macos: appcast needs namespace, better formatting 2023-12-19 07:44:07 -08:00
Tim Culverhouse
d9e4431800 cli: store manually parsed args for config replays
CLI args are stored in the configuration `_inputs` field for replaying
on configuration reload. When entering `parseManuallyHook`, we consume
all args, preventing storage for replays. Store the args when parsing
manually to allow replay of configuration.
2023-12-19 09:38:11 -06:00
Tim Culverhouse
1137da9238 cli: add xdg-terminal-exec parsing tests
Add two tests for parsing of xdg-terminal-exec.
2023-12-19 08:41:29 -06:00
Borja Clemente
a1fd9f733c Remove log from imports as it is unused
Signed-off-by: Borja Clemente <borja.clemente@gmail.com>
2023-12-19 09:23:30 +01:00
Borja Clemente
9f8465c507 Remove unused imports from config/edit
Signed-off-by: Borja Clemente <borja.clemente@gmail.com>
2023-12-19 09:21:10 +01:00
Mitchell Hashimoto
79416cc0a7 ci: codesign nested frameworks 2023-12-18 22:45:22 -08:00
Mitchell Hashimoto
b5aaad9d34 ci: correct filename for appcast 2023-12-18 21:32:22 -08:00
Mitchell Hashimoto
3baa6213b0 ci: disable releases temporarily 2023-12-18 21:25:26 -08:00
Mitchell Hashimoto
c352d88afd ci: generate appcast, upload it 2023-12-18 21:18:52 -08:00
Mitchell Hashimoto
51fa5ea3d4 ci: setup sparkle binaries in release 2023-12-18 20:18:46 -08:00
Mitchell Hashimoto
25342f545b macos: add update delegate so we can configure some behavior 2023-12-18 19:09:45 -08:00
Mitchell Hashimoto
f192ffd5bc macos: boilerplate to setup updater menu item 2023-12-18 19:09:45 -08:00
Mitchell Hashimoto
caf6ebc6ef macos: add Sparkle via Swift PM 2023-12-18 19:09:38 -08:00
Mitchell Hashimoto
18f205e78c Merge pull request #1124 from mitchellh/macos-build
macos: put build numbers back into info.plist, other metadata
2023-12-18 19:07:38 -08:00
Mitchell Hashimoto
68a23e786d macos: put build numbers back into info.plist, other metadata
This adds more metadata back into the Info.plist for a build. This
metadata is used with the About window. The reason I want the build
number back is so that we have a monotonically increasing number to do
self-updating with (i.e. Sparkle).
2023-12-18 18:56:34 -08:00
Mitchell Hashimoto
a8419754b9 renderer/opengl: allow OpenGL 4.1/4.2 2023-12-18 13:59:33 -08:00
Mitchell Hashimoto
463e4fd689 Merge pull request #1123 from mitchellh/opengl-version
renderer/opengl: error if OpenGL version is too old
2023-12-18 13:01:00 -08:00
Mitchell Hashimoto
4ba44fb8c1 renderer/opengl: error if OpenGL version is too old
This returns an error from the renderer implementation. This error just
crashes Ghostty currently with a stack trace. We can handle the error
later but for now it makes it a lot more obvious why certain error
scenarios happen.
2023-12-18 12:51:53 -08:00
Tim Culverhouse
e92f8b28d5 cli: parse args as command when launched as 'xdg-terminal-exec'
[xdg-terminal-exec](https://github.com/Vladimir-csp/xdg-terminal-exec)
is a proposal to allow users to define a "default" terminal to use when
launching applications which have `Terminal=true` in their desktop file.
Users can symlink their terminal of choice to `xdg-terminal-exec`, which
is the first option used in the GIO launch options, and is gaining
traction elsewhere.

When launched as `xdg-terminal-exec`, ghostty must parse any args as the
command. Add a special case using the same logic as the '-e' flag to
enable ghostty to be launched in this manner.

Fixes: https://github.com/mitchellh/ghostty/issues/658
2023-12-18 12:54:02 -06:00
Tim Culverhouse
5946bc1a53 cli: invert special case arg parsing logic
Invert special case logic so that we can add additional cases. The
previous logic bailed if we weren't the only special case ('-e').
2023-12-18 12:37:23 -06:00
Mitchell Hashimoto
b711ac8a42 apprt/glfw: implement openconfig 2023-12-18 08:20:29 -08:00
Mitchell Hashimoto
9c0de96c79 Merge pull request #1116 from clebs/feature/settings-shortcut
macos: Add settings shortcut
2023-12-18 08:08:48 -08:00
Mitchell Hashimoto
aa9b7cd2e9 input: clarify some limitations of opening config 2023-12-18 08:07:41 -08:00
Mitchell Hashimoto
2c311ab369 apprt/gtk: hook up open config 2023-12-18 08:04:24 -08:00
Mitchell Hashimoto
7600c761ef fix callback struct ordering, use internal_os.open 2023-12-18 08:00:40 -08:00
Mitchell Hashimoto
f3b242a9a4 Merge pull request #1120 from mitchellh/macos-close-all
macos: close all windows
2023-12-17 20:56:20 -08:00
Mitchell Hashimoto
97433d3aa1 macos: close all windows
Fixes #1052

This implements a `close_all_windows` binding in the core and implements
it for macOS specifically. This will ask for close confirmation if any
surface in any of the windows requires confirmation.

This is bound by default to option+shift+command+w to match Safari. The
binding is generall option+command+w but users may expect this to also
mean "Close All Other Tabs" which is the changed behavior if any tabs
are present in a standard macOS application. So I chose to follow Safari
instead.

This doesn't implement this feature for GTK, that's left as an exercise
for a contributor.
2023-12-17 20:54:57 -08:00
Mitchell Hashimoto
b6ed5f7e4a Merge pull request #1119 from mitchellh/macos-close-win
macos: close_window binding works properly again
2023-12-17 20:30:21 -08:00
Mitchell Hashimoto
20ba6f3d78 macos: close_window binding works properly again
This binding closes the physical window and all surfaces in that window.
2023-12-17 20:29:23 -08:00
Mitchell Hashimoto
765fbdb4f1 Merge pull request #1118 from mitchellh/gtk-tab
input: translate '\t' to Key.tab
2023-12-17 20:16:27 -08:00
Mitchell Hashimoto
c97f6ac027 input: translate '\t' to Key.tab
This allows bindings with `tab` to work properly on Linux. The issue is
that in the key translation, we weren't mapping this and thought it was
invalid IME input so we were ignoring it.
2023-12-17 20:14:41 -08:00
Mitchell Hashimoto
7ae45b522a Merge pull request #1117 from mitchellh/macos-about
macos: custom about window so we can be a first responder
2023-12-17 15:51:50 -08:00
Mitchell Hashimoto
2e74a0f9d4 macos: custom about window so we can be a first responder
Fixes #1052

This implements the about window as a custom window with a view
controller. This lets us implement the proper responder chain so that
our custom close window IBActions do the right thing.

This has an additional benefit that we can easily customize this window
going forward.
2023-12-17 15:51:04 -08:00
Mitchell Hashimoto
4c228660c5 Merge pull request #1109 from cespare/linux-install-deps
update README with Linux dependency tips
2023-12-17 15:00:02 -08:00
Mitchell Hashimoto
548f59566d Merge pull request #1114 from vancluever/vancluever-powerline-no-constrain
renderer: don't constrain Powerline glyphs
2023-12-17 07:47:38 -08:00
Borja Clemente
646e3c365c Add settings shortcut on MacOS
- Settings shortcut opens the config file in the default editor.

Signed-off-by: Borja Clemente <borja.clemente@gmail.com>
2023-12-17 16:19:22 +01:00