[config] order the keymaps

pull/1179/head
Tim Stack 12 months ago
parent 711470e985
commit a5c7378557

@ -36,7 +36,6 @@
#include <map>
#include <set>
#include <string>
#include <unordered_map>
#include <vector>
#include "archive_manager.cfg.hh"
@ -103,7 +102,7 @@ struct _lnav_config {
std::string lc_ui_keymap;
std::string lc_ui_theme;
movement_config lc_ui_movement;
std::unordered_map<std::string, key_map> lc_ui_keymaps;
std::map<std::string, key_map> lc_ui_keymaps;
std::map<std::string, std::string> lc_ui_key_overrides;
std::map<std::string, std::string> lc_global_vars;
std::map<std::string, lnav_theme> lc_ui_theme_defs;

@ -3610,64 +3610,6 @@
"mode": "top"
},
"keymap-defs": {
"us": {
"x21": {
"command": ":goto last 10 minutes after the hour",
"alt-msg": ""
},
"x23": {
"command": ":goto last 30 minutes after the hour",
"alt-msg": ""
},
"x24": {
"command": ":goto last 40 minutes after the hour",
"alt-msg": ""
},
"x25": {
"command": ":goto last 50 minutes after the hour",
"alt-msg": ""
},
"x31": {
"command": ":goto next 10 minutes after the hour",
"alt-msg": ""
},
"x32": {
"command": ":goto next 20 minutes after the hour",
"alt-msg": ""
},
"x33": {
"command": ":goto next 30 minutes after the hour",
"alt-msg": ""
},
"x34": {
"command": ":goto next 40 minutes after the hour",
"alt-msg": ""
},
"x35": {
"command": ":goto next 50 minutes after the hour",
"alt-msg": ""
},
"x36": {
"command": ":goto next hour",
"alt-msg": ""
},
"x37": {
"command": ":goto previous minute",
"alt-msg": ""
},
"x38": {
"command": ":goto next minute",
"alt-msg": ""
},
"x40": {
"command": ":goto last 20 minutes after the hour",
"alt-msg": ""
},
"x5e": {
"command": ":goto last hour",
"alt-msg": ""
}
},
"de": {
"x21": {
"command": ":goto last 10 minutes after the hour",
@ -3726,74 +3668,6 @@
"alt-msg": ""
}
},
"uk": {
"x22": {
"command": ":goto last 20 minutes after the hour",
"alt-msg": ""
},
"xc2xa3": {
"command": ":goto last 30 minutes after the hour",
"alt-msg": ""
}
},
"fr": {
"x22": {
"command": ":goto next 30 minutes after the hour",
"alt-msg": ""
},
"x26": {
"command": ":goto next 10 minutes after the hour",
"alt-msg": ""
},
"x27": {
"command": ":goto next 40 minutes after the hour",
"alt-msg": ""
},
"x28": {
"command": ":goto next 50 minutes after the hour",
"alt-msg": ""
},
"x2d": {
"command": ":goto next hour",
"alt-msg": ""
},
"x31": {
"command": ":goto last 10 minutes after the hour",
"alt-msg": ""
},
"x32": {
"command": ":goto last 20 minutes after the hour",
"alt-msg": ""
},
"x33": {
"command": ":goto last 30 minutes after the hour",
"alt-msg": ""
},
"x34": {
"command": ":goto last 40 minutes after the hour",
"alt-msg": ""
},
"x35": {
"command": ":goto last 50 minutes after the hour",
"alt-msg": ""
},
"x36": {
"command": ":goto last hour",
"alt-msg": ""
},
"x37": {
"command": ":goto previous minute",
"alt-msg": ""
},
"xc3xa8": {
"command": ":goto next minute",
"alt-msg": ""
},
"xc3xa9": {
"command": ":goto next 20 minutes after the hour",
"alt-msg": ""
}
},
"default": {
"x04": {
"command": ";UPDATE lnav_views SET top = top + (height / 2), selection = (CASE movement WHEN 'top' THEN selection ELSE top + (height / 2) + (selection - top) END) WHERE name = (SELECT name FROM lnav_top_view)",
@ -3976,6 +3850,64 @@
"alt-msg": "${keymap_def_prev_location}"
}
},
"fr": {
"x22": {
"command": ":goto next 30 minutes after the hour",
"alt-msg": ""
},
"x26": {
"command": ":goto next 10 minutes after the hour",
"alt-msg": ""
},
"x27": {
"command": ":goto next 40 minutes after the hour",
"alt-msg": ""
},
"x28": {
"command": ":goto next 50 minutes after the hour",
"alt-msg": ""
},
"x2d": {
"command": ":goto next hour",
"alt-msg": ""
},
"x31": {
"command": ":goto last 10 minutes after the hour",
"alt-msg": ""
},
"x32": {
"command": ":goto last 20 minutes after the hour",
"alt-msg": ""
},
"x33": {
"command": ":goto last 30 minutes after the hour",
"alt-msg": ""
},
"x34": {
"command": ":goto last 40 minutes after the hour",
"alt-msg": ""
},
"x35": {
"command": ":goto last 50 minutes after the hour",
"alt-msg": ""
},
"x36": {
"command": ":goto last hour",
"alt-msg": ""
},
"x37": {
"command": ":goto previous minute",
"alt-msg": ""
},
"xc3xa8": {
"command": ":goto next minute",
"alt-msg": ""
},
"xc3xa9": {
"command": ":goto next 20 minutes after the hour",
"alt-msg": ""
}
},
"sv": {
"x22": {
"command": ":goto last 20 minutes after the hour",
@ -4001,6 +3933,74 @@
"command": ":goto last 40 minutes after the hour",
"alt-msg": ""
}
},
"uk": {
"x22": {
"command": ":goto last 20 minutes after the hour",
"alt-msg": ""
},
"xc2xa3": {
"command": ":goto last 30 minutes after the hour",
"alt-msg": ""
}
},
"us": {
"x21": {
"command": ":goto last 10 minutes after the hour",
"alt-msg": ""
},
"x23": {
"command": ":goto last 30 minutes after the hour",
"alt-msg": ""
},
"x24": {
"command": ":goto last 40 minutes after the hour",
"alt-msg": ""
},
"x25": {
"command": ":goto last 50 minutes after the hour",
"alt-msg": ""
},
"x31": {
"command": ":goto next 10 minutes after the hour",
"alt-msg": ""
},
"x32": {
"command": ":goto next 20 minutes after the hour",
"alt-msg": ""
},
"x33": {
"command": ":goto next 30 minutes after the hour",
"alt-msg": ""
},
"x34": {
"command": ":goto next 40 minutes after the hour",
"alt-msg": ""
},
"x35": {
"command": ":goto next 50 minutes after the hour",
"alt-msg": ""
},
"x36": {
"command": ":goto next hour",
"alt-msg": ""
},
"x37": {
"command": ":goto previous minute",
"alt-msg": ""
},
"x38": {
"command": ":goto next minute",
"alt-msg": ""
},
"x40": {
"command": ":goto last 20 minutes after the hour",
"alt-msg": ""
},
"x5e": {
"command": ":goto last hour",
"alt-msg": ""
}
}
}
},

Loading…
Cancel
Save