Clean up defaults, add mac layout

Remove items that are the same as the default keymap

Adds a Swedish Mac layout because shift-4 is not the same as on a
Windows keyboard
This commit is contained in:
Fredrik Forsell 2022-09-30 01:37:05 +02:00
parent 91a03b7b86
commit 8f8be6fd20
3 changed files with 31 additions and 36 deletions

View File

@ -4,6 +4,7 @@ KEYMAP_FILES = \
$(srcdir)/%reldir%/default-keymap.json \
$(srcdir)/%reldir%/fr-keymap.json \
$(srcdir)/%reldir%/sv-keymap.json \
$(srcdir)/%reldir%/svmac-keymap.json \
$(srcdir)/%reldir%/uk-keymap.json \
$(srcdir)/%reldir%/us-keymap.json \
$()

View File

@ -3,52 +3,22 @@
"ui": {
"keymap-defs": {
"sv": {
"x31": {
"command": ":goto next 10 minutes after the hour"
},
"x32": {
"command": ":goto next 20 minutes after the hour"
},
"x33": {
"command": ":goto next 30 minutes after the hour"
},
"x34": {
"command": ":goto next 40 minutes after the hour"
},
"x35": {
"command": ":goto next 50 minutes after the hour"
},
"x36": {
"command": ":goto next hour"
},
"x37": {
"command": ":goto previous minute"
},
"x38": {
"command": ":goto next minute"
},
"x21": {
"command": ":goto last 10 minutes after the hour"
},
"x22": {
"command": ":goto last 20 minutes after the hour"
},
"x23": {
"command": ":goto last 30 minutes after the hour"
},
"xe2x82xac": {
"xc2xa4": {
"command": ":goto last 40 minutes after the hour"
},
"x25": {
"command": ":goto last 50 minutes after the hour"
},
"x26": {
"command": ":goto last hour"
},
"x3d": {
"command": ":goto last day"
},
"x2b": {
"command": ";UPDATE lnav_views SET paused = 1 - paused"
},
}
}
}
}
}
}

View File

@ -0,0 +1,24 @@
{
"$schema": "https://lnav.org/schemas/config-v1.schema.json",
"ui": {
"keymap-defs": {
"svmac": {
"x22": {
"command": ":goto last 20 minutes after the hour"
},
"xe2x82xac": {
"command": ":goto last 40 minutes after the hour"
},
"x26": {
"command": ":goto last hour"
},
"x3d": {
"command": ":goto last day"
},
"x2b": {
"command": ";UPDATE lnav_views SET paused = 1 - paused"
}
}
}
}
}