Mitchell Hashimoto
0c888af470
cli: arg parsing supports more int types
2024-03-22 20:27:31 -07:00
Mitchell Hashimoto
b48d24a546
update zig
2024-03-13 09:14:12 -07:00
Mitchell Hashimoto
26c7215cf8
forgot commit to get #1363 building to new API
2024-01-26 09:04:32 -08:00
Mitchell Hashimoto
d50307c219
Merge pull request #1363 from jcollie/list-keybinds-docs
...
Add option to include docs when listing keybinds.
2024-01-26 09:02:49 -08:00
Mitchell Hashimoto
0f133ae4a7
config: re-expand relative paths correctly when reloading config
...
Fixes #1366
When we use `loadTheme`, we "replay" the configuration so that the theme
is the base configuration and everything else can override everything
the theme sets. During this process, we were not properly re-expanding
all the relative paths.
This fix works by changing our input tracking from solely tracking args
to tracking operations such as expansion as well. When we "replay" the
configuration we also replay operations such as path expansion with the
correct base path.
This also removes the `_inputs` special mechanism `cli/args.zig` had
because we can already do that ourselves using `parseManuallyHook`.
2024-01-23 21:59:34 -08:00
Mitchell Hashimoto
c9371500c9
empty cli or config args reset the value to the default
...
Fixes #1367
We previously special-cased optionals but we should do better and have
this reset ANY type to the defined default value on the struct.
2024-01-23 18:57:33 -08:00
Jeffrey C. Ollie
d51b6d4799
Add option to include docs when listing keybinds.
2024-01-23 00:26:38 -06:00
Mitchell Hashimoto
3176ef86d9
cli: remove list-keybinds changes
2024-01-21 20:50:18 -08:00
Jeffrey C. Ollie
f41f70c977
Use keybind actions help strings in +list-keybinds.
2024-01-21 19:48:48 -06:00
Jeffrey C. Ollie
510f270c54
markdown-ify help strings
2024-01-21 15:07:37 -06:00
Mitchell Hashimoto
27453b64e6
cli/show-config: enable --help
2024-01-20 19:44:54 -08:00
Mitchell Hashimoto
ddd17eda06
cli: list-keybinds uses new config formatting API
2024-01-20 19:39:47 -08:00
Jeffrey C. Ollie
863c3933d3
use keybind struct's built-in capabity to format itself in +list-keybinds action
2024-01-20 19:38:12 -08:00
Mitchell Hashimoto
73a30ccd82
cli/show-config: add the changes-only and docs options
2024-01-20 19:37:48 -08:00
Jeffrey C. Ollie
de428d9fe9
add +show-config action to print out the config from the cli
2024-01-20 19:24:17 -08:00
Mitchell Hashimoto
9369baac60
cli: empty field resets optionals to null
2024-01-20 12:50:11 -08:00
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