Davejkane / riv

Riv - The Rust Image Viewer
MIT License
99 stars 10 forks source link

Add flag for Keep directory #4

Closed Davejkane closed 5 years ago

Davejkane commented 5 years ago

Currently when browsing images, the K key creates a folder called keep in the current directory and moves the image to that folder.

Add a command line option to the Clap app in src/cli.rs that allows one to pass the name and destination (relative or absolute path) or the keep folder, so that pressing K will move the file to that folder instead. The absence of the flag should leave the behaviour as it is now.

You may want to add the path of the keep folder to the program struct.

Please be aware that the Vim style navigation keys issue recommends to change the name of keep to move, and assigns the key to M instead of K.