File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 9595 key .NewBinding (key .WithKeys ("ctrl+r" ), key .WithHelp ("ctrl r" , "(re) run query" )),
9696 }
9797
98+ pagiatorKeyBinds = []key.Binding {
99+ key .NewBinding (key .WithKeys ("ctrl+r" ), key .WithHelp ("ctrl r" , "Fetch Next Minute" )),
100+ key .NewBinding (key .WithKeys ("ctrl+b" ), key .WithHelp ("ctrl b" , "Fetch Prev Minute" )),
101+ }
102+
98103 QueryNavigationMap = []string {"query" , "time" , "table" }
99104)
100105
@@ -415,12 +420,10 @@ func (m QueryModel) View() string {
415420 helpKeys = m .timeRange .FullHelp ()
416421 }
417422
418- helpKeys = append (helpKeys , additionalKeyBinds )
419423 if m .queryIterator != nil {
420- helpKeys = append (helpKeys , []key.Binding {
421- key .NewBinding (key .WithKeys ("ctrl+r" ), key .WithHelp ("ctrl enter" , "Fetch Next Minute" )),
422- key .NewBinding (key .WithKeys ("ctrl+b" ), key .WithHelp ("ctrl b" , "Fetch Prev Minute" )),
423- })
424+ helpKeys = append (helpKeys , pagiatorKeyBinds )
425+ } else {
426+ helpKeys = append (helpKeys , additionalKeyBinds )
424427 }
425428
426429 helpView = m .help .FullHelpView (helpKeys )
You can’t perform that action at this time.
0 commit comments