[hotkeys] press 7/8 for previous/next minute

Fixes #382
This commit is contained in:
Timothy Stack 2019-01-25 07:45:17 -08:00
parent 85671755d3
commit 0c2f84a3c0
7 changed files with 15 additions and 4 deletions

1
NEWS
View File

@ -37,6 +37,7 @@ lnav v0.8.5:
editing easier.
* Hidden fields now show up as a unicode vertical ellipsis (⋮) instead of
three-dot ellipsis to save space.
* Pressing 7/8 will now move to the previous/next minute.
Fixes:
* The ":write-json-to" command will now pass through JSON cells as their

View File

@ -150,6 +150,9 @@ Chronological Navigation
* - |ks| 1 |ke| - |ks| 6 |ke|
- |ks| Shift |ke| + |ks| 1 |ke| - |ks| 6 |ke|
- Next/previous n'th ten minute of the hour
* - |ks| 7 |ke|
- |ks| 8 |ke|
- Previous/next minute
* - |ks| 0 |ke|
- |ks| Shift |ke| + |ks| 0 |ke|
- Next/previous day

View File

@ -259,6 +259,8 @@ Chronological Navigation
hour in the log. And, '6' would move to the next
hour boundary.
7/8 Move to the previous/next minute.
0/Shift 0 Move to the next/previous day boundary.
r/R Move forward/backward based on the relative time that

View File

@ -88,6 +88,9 @@
"x35": [":goto next 50 minutes after the hour"],
"x36": [":goto next hour"],
"x37": [":goto previous minute"],
"x38": [":goto next minute"],
"x21": [":goto last 10 minutes after the hour"],
"x40": [":goto last 20 minutes after the hour"],
"x23": [":goto last 30 minutes after the hour"],

View File

@ -52,8 +52,8 @@ static struct {
{ "time",
pcrepp("\\A(\\d{1,2}):(\\d{2})(?::(\\d{2})(?:\\.(\\d{3,6}))?)?") },
{ "num", pcrepp("\\A((?:-|\\+)?\\d+)") },
{ "us", pcrepp("\\Amicros(?:econds?)?|us(?![a-zA-Z])") },
{ "ms", pcrepp("\\Amillis(?:econds?)?|ms(?![a-zA-Z])") },
{ "us", pcrepp("\\A(?:micros(?:econds?)?|us(?![a-zA-Z]))") },
{ "ms", pcrepp("\\A(?:millis(?:econds?)?|ms(?![a-zA-Z]))") },
{ "sec", pcrepp("\\As(?:ec(?:onds?)?)?(?![a-zA-Z])") },
{ "min", pcrepp("\\Am(?:in(?:utes?)?)?(?![a-zA-Z])") },
{ "h", pcrepp("\\Ah(?:ours?)?(?![a-zA-Z])") },
@ -74,7 +74,7 @@ static struct {
{ "now", pcrepp("\\Anow\\b") },
{ "here", pcrepp("\\Ahere\\b") },
{ "next", pcrepp("\\Anext\\b") },
{ "previous", pcrepp("\\Aprevious|last\\b") },
{ "previous", pcrepp("\\A(?:previous\\b|last\\b)") },
};
static int64_t TIME_SCALES[] = {

View File

@ -259,6 +259,8 @@ Chronological Navigation
hour in the log. And, '6' would move to the next
hour boundary.
7/8 Move to the previous/next minute.
0/Shift 0 Move to the next/previous day boundary.
r/R Move forward/backward based on the relative time that

View File

@ -47,7 +47,7 @@ static struct {
{ "next day", "next day 0:00" },
{ "next month", "next month day 0 0:00" },
{ "next year", "next year month 0 day 0 0:00" },
{ "last hour", "last 0:00" },
{ "previous hour", "last 0:00" },
{ "next 10 minutes after the hour", "next 0:10" },
{ "1h50m", "1h50m" },
{ "next hour", "next 0:00" },