plugins/rest: add keybinds option

This commit is contained in:
Gaetan Lepage 2024-04-07 14:07:31 +02:00 committed by Gaétan Lepage
parent 6f7b236f65
commit c1ae78cd8c
2 changed files with 19 additions and 0 deletions

View file

@ -260,6 +260,20 @@ with lib;
"HTML formatter."; "HTML formatter.";
}; };
}; };
keybinds = {
buffer_local = helpers.defaultNullOpts.mkBool false ''
Enable keybinds only in request result buffer.
'';
prev = helpers.defaultNullOpts.mkStr "H" ''
Mapping for cycle to previous result pane.
'';
next = helpers.defaultNullOpts.mkStr "L" ''
Mapping for cycle to next result pane.
'';
};
}; };
highlight = { highlight = {

View file

@ -69,6 +69,11 @@
''; '';
}; };
}; };
keybinds = {
buffer_local = false;
prev = "H";
next = "L";
};
}; };
highlight = { highlight = {
enable = true; enable = true;