Mitchell Hashimoto
ed2cd6d436
macos: remove the ability to bind fn/globe
...
This was recently introduced a few days ago. Unfortunately, this doesn't
work as expected. The "function" modifier is not actually the fn key
but used by macOS to represent a variety of "functional" key presses.
This breaks other bindings such as #2411 .
I can't find a source on the internet that reliably tells me how we
can detect fn key presses, but I do find a number of sources that tell
us we can't.
2024-10-07 14:36:12 -10:00
Mitchell Hashimoto
e9f1fe327f
cli/list-keybinds: output function modifier
2024-10-05 10:13:39 -10:00
Mitchell Hashimoto
66143a33ef
input: move flags to a packed struct
2024-09-23 14:03:53 -07:00
Mitchell Hashimoto
11c3ca69f5
cli/crash-report: make it simpler (uglier, honestly)
2024-09-10 21:15:40 -07:00
Mitchell Hashimoto
7dfad49e40
input: converting set entries to Entry from Action
2024-08-18 20:30:32 -07:00
Mitchell Hashimoto
aee6857021
cli/list-keybinds: fix windows build
2024-08-06 15:03:38 -07:00
Mitchell Hashimoto
64c267a8c7
Merge pull request #2052 from rockorager/pretty-print
...
cli/list-keybinds: add pretty printing
2024-08-06 14:53:15 -07:00
Mitchell Hashimoto
d00ab8130a
cli: note --plain
2024-08-06 14:53:00 -07:00
karei
85f19bcd12
cli/list-keybinds: align actions at the same column
2024-08-06 14:16:17 -05:00
Tim Culverhouse
8b834c1588
cli/list-keybinds: set default winsize for windows
...
When on windows, set some default terminal size. The actual size is not
very important to our use case here, but we do need one
2024-08-06 13:41:41 -05:00
Tim Culverhouse
e2a59ba77c
cli/list-keybinds: set vaxis measurement state
2024-08-06 13:39:20 -05:00
Tim Culverhouse
b0ac75d5bc
cli/list-keybinds: restore terminal after exit
...
Deinit the tty and vaxis to restore the terminal upon exiting the
command
2024-08-06 13:28:25 -05:00
Tim Culverhouse
1e91efbbe5
cli/list-keybinds: prevent ios, tvos, and watchos from pretty printing
...
These oses don't supply a tty layer, which prevents us from using the
libvaxis tty. Eventually we can add in using stdout as a writer. For
now, we just don't pretty print there.
2024-08-06 12:40:36 -05:00
Tim Culverhouse
59e226154c
cli/list-keybinds: add pretty printing
...
Add pretty printing to the +list-keybinds command. This is done by
bringing in a dependency on libvaxis to handle the styling. Pretty
printing happens automatically when printing to a tty, and can be
disabled either by redirecting output or using the flag `--plain`
2024-08-06 12:19:39 -05:00
Łukasz Niemier
f9be02a20f
chore: clean up typos
2024-08-05 13:56:57 +02:00
Mitchell Hashimoto
26c7215cf8
forgot commit to get #1363 building to new API
2024-01-26 09:04:32 -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
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
b438998fb8
cli: support --help and -h for actions
2024-01-20 09:29:26 -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