diff options
Diffstat (limited to 'src/navigator.h')
-rw-r--r-- | src/navigator.h | 3 |
1 files changed, 3 insertions, 0 deletions
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); |