33 Commits

Author SHA1 Message Date
Mitchell Hashimoto
1778905f53 cli: add help command 2024-01-20 09:49:17 -08:00
Mitchell Hashimoto
b438998fb8 cli: support --help and -h for actions 2024-01-20 09:29:26 -08:00
Mitchell Hashimoto
203b38fdac rewrite generate_help for personal style
- Output to stdin instead of a file
- Less nesting
- Utilize ranged for loops instead of while loops
- Eliminate unnecessary state tracking
- Put help in a struct
2024-01-20 09:05:25 -08:00
Jeffrey C. Ollie
f9ac37cdf7 Generate help strings from doc comments
Doc strings attached to fields of the Config struct and doc strings
attached to the run function of actions will be used to generate Zig
code that makes those doc strings available to be used at runtime.

Based on PR #853 by @Raiden1411
2024-01-19 21:19:09 -08:00
Mitchell Hashimoto
411c48af51 cli/list-colors: use unstable sort, sort in-place on arraylist 2024-01-11 07:56:25 -08:00
Jeffrey C. Ollie
5258554135 sort output from +list-colors 2024-01-11 00:30:48 -06:00
Mitchell Hashimoto
02c0ceab11 cli: list-colors uses new generated rgb 2024-01-10 20:43:22 -08:00
Jeffrey C. Ollie
bc1544a3f0 add ability to specify RGB colors as names from the X11 rgb name list 2024-01-10 20:26:59 -08:00
Gregory Anders
5fe2d03e96 cli: strip CR in line iterator 2024-01-05 09:37:55 -06:00
Jeffrey C. Ollie
4ef8d099a7 Make the abnormal runtime threshold configurable. 2023-12-30 22:52:47 -06: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
Krzysztof Wolicki
073868888c Fix forgotten openIterableDir 2023-11-30 22:04:34 +01:00
Krzysztof Wolicki
0750698b62 Update to latest master,
update libxev dependency,
change mach_glfw to an updated fork until upstream updates
2023-11-30 21:41:33 +01:00
Mitchell Hashimoto
f25a136ea5 cli: +list-themes 2023-11-22 21:50:16 -08:00
Mitchell Hashimoto
0dc5516ac6 config: add "theme" config, track inputs 2023-11-22 21:08:39 -08:00
Mitchell Hashimoto
8cd3b65d0a config: packed struct of bools supported as config field 2023-11-07 15:59:56 -08:00
Mitchell Hashimoto
e73d3db497 cli/list-keybindings: stylistic changes 2023-11-03 17:51:34 -07:00
Mitchell Hashimoto
debeba99db input: Binding.Trigger format 2023-11-03 17:48:19 -07:00
Mitchell Hashimoto
cb4bb8aaf6 input: add Binding.Action.format to convert action to string 2023-11-03 15:57:14 -07:00
Raiden1411
59daecc304 feat(actions): add new list-keybinds action 2023-11-02 21:34:14 +00:00
Mitchell Hashimoto
4104f78cba cli: handle "-e" as the command to execute 2023-10-27 15:57:20 -07:00
Mitchell Hashimoto
224b39b86e font/coretext: allow setting a non-monospace font explicitly
This changes our font discovery to not filter out monospace and updates
our scoring mechanism to prefer monospace.
2023-10-05 08:39:48 -07:00
Mitchell Hashimoto
1127330b3a font/coretext: score discovered fonts 2023-10-03 09:17:41 -07:00
Mitchell Hashimoto
2b28106837 update zig 2023-10-02 08:18:35 -07:00
Mitchell Hashimoto
08954feb59 cli: args can parse unions 2023-09-26 08:45:20 -07:00
Mitchell Hashimoto
966166015f font/core-text: discovery supports style search 2023-09-24 09:02:35 -07:00
Mitchell Hashimoto
54976e8829 cli/list-fonts: flags, help 2023-09-24 08:48:45 -07:00
Mitchell Hashimoto
70a2a0556d font: fontconfig should not omit earlier fonts 2023-09-24 08:42:12 -07:00
Mitchell Hashimoto
4eb31322c9 cli/list-fonts: don't use arrayhashmap 2023-09-24 08:28:28 -07:00
Mitchell Hashimoto
11440a3a4c cli/list-fonts 2023-09-24 08:23:12 -07:00
Mitchell Hashimoto
8214471e2c cli/list-fonts: dumb implementation 2023-09-23 22:59:22 -07:00
Mitchell Hashimoto
9421bec3a1 cli: move cli_args.zig to cli 2023-09-23 22:46:16 -07:00
Mitchell Hashimoto
7fc66f3851 cli: dedicated directory 2023-09-23 22:42:09 -07:00