hyprland-community / Hyprkeys

A simple, scriptable keybind retrieval utility for Hyprland [maintainer=none]
GNU General Public License v3.0
120 stars 6 forks source link

from-ctl returns two objects. #17

Open sjcobb2022 opened 5 months ago

sjcobb2022 commented 5 months ago

When running

hyprkeys --from-ctl --json

I get the following output:

[
 /* ... my keybinds */
]
{} / * Extra random json object? */

It also outputs the table twice if I use the markdown option:

| Keybind | Locked | Mouse | Release | Repeat | Submap | Dispatcher | Command |
... my keys....

| Keybind | Dispatcher | Command |
|---------|------------|---------|

Is this an intended behaviour, or is this something that should be fixed?

NotAShelf commented 5 months ago

Seems like a bug, I'll add a check that prevents --json being passed alongside --from-ctl