From 65c9826bab96fe9925b7bc03caec2298f57a04a0 Mon Sep 17 00:00:00 2001 From: Harry Jeffery Date: Thu, 23 Nov 2017 21:33:33 +0000 Subject: Move remaining actions to bindable commands --- src/navigator.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/navigator.h') diff --git a/src/navigator.h b/src/navigator.h index 5babf89..5d4f065 100644 --- a/src/navigator.h +++ b/src/navigator.h @@ -55,6 +55,9 @@ const char *imv_navigator_selection(struct imv_navigator *nav); /* Change the currently selected path. dir = -1 for previous, 1 for next. */ void imv_navigator_select_rel(struct imv_navigator *nav, int dir); +/* Change the currently selected path. 0 = first, 1 = second, etc. */ +void imv_navigator_select_abs(struct imv_navigator *nav, int index); + /* Removes the given path. The current selection is updated if necessary, * based on the last direction the selection moved. */ void imv_navigator_remove(struct imv_navigator *nav, const char *path); -- cgit v1.2.3