-
Notifications
You must be signed in to change notification settings - Fork 0
/
gad-hotkeys.txt
39 lines (34 loc) · 1.34 KB
/
gad-hotkeys.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Compile
gcc gad-hotkeys.c -o gad-hotkeys
# Run
./gad-hotkeys dog dude frog frame rug pug couch cone bone strong
Dog
dUde
Frog
fRame
ruG
Pug
Couch
cOne
Bone
Strong
# Notes
/* gad-hotkeys: Hotkey helper for CLI stuff
* Generate and handle hotkeys for menus, etc
* [email protected] 2024
*
* 1. Run once with list of items. Returns hotkeyed version.
* 2. Run again with selected char first, then the same list
* ...it returns which item user must have selected.
*
* Ex: Return provided list with one char per item CamelCased
*
* Input: gad-hotkeys <owls oaks toads toes [...]>
* Output: Owls oAks Toads toEs
*
* Ex: Report which item was selected, assuming our lists
*
* Input: gad-hotkeys <T owls oaks toads toes [...]>
* Output: toads
*
*/