diff options
author | Harry Jeffery <harry@exec64.co.uk> | 2019-08-16 19:08:54 +0100 |
---|---|---|
committer | Harry Jeffery <harry@exec64.co.uk> | 2019-08-16 19:08:54 +0100 |
commit | c6ce270ee1e54fc7ae9c4029923bccedbcac5ad2 (patch) | |
tree | 4a5158d82b0a566edab9d94ad49a2b3885fa1a0a /src/navigator.h | |
parent | 505340f9fdd7e8d8356c25035b254c8f9ee367a6 (diff) | |
download | imv-c6ce270ee1e54fc7ae9c4029923bccedbcac5ad2.tar.gz |
imv: Add index/all argument to close command
Diffstat (limited to 'src/navigator.h')
-rw-r--r-- | src/navigator.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/navigator.h b/src/navigator.h index 06b5c92..6234206 100644 --- a/src/navigator.h +++ b/src/navigator.h @@ -34,6 +34,13 @@ void imv_navigator_select_abs(struct imv_navigator *nav, ssize_t index); * based on the last direction the selection moved. */ void imv_navigator_remove(struct imv_navigator *nav, const char *path); +/* Removes the given index. The current selection is updated if necessary, + * based on the last direction the selection moved. */ +void imv_navigator_remove_at(struct imv_navigator *nav, size_t index); + +/* Removes all paths */ +void imv_navigator_remove_all(struct imv_navigator *nav); + /* Return the index of the path given. Returns -1 if not found. */ ssize_t imv_navigator_find_path(struct imv_navigator *nav, const char *path); |