4516 Commits

Author SHA1 Message Date
Gregory Anders
f7033524ec macos: add generated Vim plugin files to app bundle 2023-12-21 21:49:36 -06:00
Gregory Anders
e9632a0f91 build: build Vim plugin files for Ghostty config file
Generate Vim syntax and ftplugin files for the Ghostty config file that
highlight Ghostty config keywords and offer completion for valid config
keys. The list of configuration keys is generated at compile time.

The plugin files are installed to ${prefix}/share/vim/vimfiles, which is
a standard location for installing 3rd party Vim plugin files.
2023-12-21 21:46:26 -06:00
Mitchell Hashimoto
a4c0b5c677 Merge pull request #1132 from gpanders/ghostty-resources-dir
Use "ghostty" subdirectory for resources
2023-12-21 19:41:10 -08:00
Mitchell Hashimoto
fc897067a6 macos: reordering some files 2023-12-21 17:59:16 -08:00
Gregory Anders
18f2fb3fbd macos: include ghostty subdirectory under Resources
This enables us to treat Ghostty's resources directory the same way
whether it is installed in a macOS app bundle or under e.g. /usr/share.
2023-12-21 17:56:57 -08:00
Gregory Anders
8751502878 core: look for resources in "ghostty" subdirectory for "share" paths
Installing resources directly under ${prefix}/share causes conflicts
with other packages. This will become more problematic whenever Ghostty
is opened and becomes packaged in distributions.

Instead, install all resources under a "ghostty" subdirectory (i.e.
${prefix}/share/ghostty). This includes themes, shell integration, and
terminfo files.

Only "/usr/share" style paths use the "ghostty" subdirectory. On macOS,
Ghostty is already isolated within its app bundle, and if
$GHOSTTY_RESOURCES_DIR is set then we assume that points to the actual
resources dir (without needing to append "ghostty" to it).
2023-12-21 17:56:17 -08:00
Mitchell Hashimoto
e2916f8d63 Merge pull request #1139 from rockorager/terminfo-fix
terminfo: fix `xr` and `rv`
2023-12-21 11:37:37 -08:00
Tim Culverhouse
416950a447 terminfo: fix xr and rv
Commit 5e473ebd ("terminfo: add additional entries, fix smkx/rmkx")
added entries `xr` and `rv`, but without proper escaping of the
backslashes. This commit adds the extras. Output of `infocmp` now
matches foot, kitty, et al.
2023-12-21 13:36:00 -06:00
Mitchell Hashimoto
19ca893e10 dist/macos: put the date in the short version string 2023-12-21 08:46:08 -08:00
Mitchell Hashimoto
080bd530f4 dist/macos: remove any existing matching builds in appcast 2023-12-21 08:39:29 -08:00
Mitchell Hashimoto
382c942790 Merge pull request #1136 from davideger/main
doc: Linux tip on zig btrfs hash mismatch issue.
2023-12-20 22:16:53 -08:00
Mitchell Hashimoto
b13f39f89d Merge pull request #1137 from mitchellh/click-cursor
Click to move cursor at prompt
2023-12-20 22:16:39 -08:00
Mitchell Hashimoto
900b127a04 core: cursor click to move can be disabled 2023-12-20 22:12:04 -08:00
Mitchell Hashimoto
3776b8a777 core: if click-to-move is done, stop mouse processing 2023-12-20 21:41:49 -08:00
Mitchell Hashimoto
3f9c42fd67 core: fast path out of click to move if no semantic prompts 2023-12-20 21:40:02 -08:00
Mitchell Hashimoto
82e5080cd6 core: click to move cursor only works on primary screen 2023-12-20 21:38:21 -08:00
Mitchell Hashimoto
4a3e1e15e5 core: click to move cursor 2023-12-20 21:33:13 -08:00
Mitchell Hashimoto
6b1fd2b9eb terminal: Screen.promptPath 2023-12-20 20:50:10 -08:00
David Eger
9aa56f98da doc: Linux tip on zig btrfs hash mismatch issue. 2023-12-20 20:43:44 -08:00
Mitchell Hashimoto
9a32ea515b terminal: Screen.selectPrompt to get the selection of the prompt 2023-12-20 20:35:05 -08:00
Mitchell Hashimoto
8fa3a8539b Merge pull request #1135 from slonik-az/macos-ReleaseLocal
fix(macos): ReleaseLocal build configuration with "Library Validation" disabled
2023-12-20 14:38:01 -08:00
Mitchell Hashimoto
3762f8c342 macos: make default config ReleaseLocal 2023-12-20 14:37:48 -08:00
Mitchell Hashimoto
744c5a82ae update README 2023-12-20 14:36:43 -08:00
Leo Razoumov
a96ec3a5df doc: minor fix to README.md 2023-12-20 17:25:13 -05:00
Leo Razoumov
d568ef5b97 fix(macos): ReleaseLocal build configuration with "Library Validation" disabled
Fixes #1133

MacOS: If ghostty build succeeds but it crashes at startup due to a library or framework failing
to load, build it with `xcodebuild -configuration ReleaseLocal`
2023-12-20 16:54:58 -05:00
Mitchell Hashimoto
f737b7c48a update README about mac builds 2023-12-20 12:32:55 -08:00
Mitchell Hashimoto
bfd0baf78f Merge pull request #1131 from mitchellh/chinese-quotes
apprt/gtk: only reset IME state if key consuming while IME composing
2023-12-19 22:10:13 -08:00
Mitchell Hashimoto
0c80f85d78 apprt/gtk: only reset IME state if key consuming while IME composing
Fixes #1047

This resets the IME state only if we were previously in a composing
state. I did not realize that IME state also included non-composing
state that we want to preserve, such as the next quotation direction
in the case of chinese. i.e. `“` vs `”`.

I'm not fully sure that this is the right logic, but previous pre-edit
states such as in Japanese appear to still work and this fixes Chinese
quotation marks.
2023-12-19 22:10:00 -08:00
Mitchell Hashimoto
0eab07b014 Merge pull request #1129 from davideger/main
README: nvidia + ubuntu + x11 requires recent gtk
2023-12-19 21:44:39 -08:00
Mitchell Hashimoto
035cb6af69 prettier 2023-12-19 21:38:42 -08:00
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
David Eger
02876f3c1b README: nvidia + ubuntu + x11 requires recent gtk 2023-12-19 20:21:10 -08: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