Currently the picture navigation keys are perhaps poorly chosen. Refactor the key handling code (in src/program.rsrun function) to use J, K, L and ; to navigate images. I propose that J & K should move to next and previous image respectively, and the ; and L should do the same. Please retain the arrow keys, and also implement the up and down arrow keys.
This refactor will require that the K key, currently used for keeping an image, be changed. I propose M and renaming the keep function to move_current_image.
Add g and G (as in shift + G) to move to the first and last image in the collection respectively. This will require handling knowing whether or not the SHIFT key is current pressed and will require some slightly more tricky code.
In all of this remember to handle the case where the self.images Vec is length zero or one. Also update the table in the README to reflect the new controls. (formatting the table nicely would also be apprectiated).
Currently the picture navigation keys are perhaps poorly chosen. Refactor the key handling code (in
src/program.rs
run
function) to useJ
,K
,L
and;
to navigate images. I propose thatJ
&K
should move to next and previous image respectively, and the;
andL
should do the same. Please retain the arrow keys, and also implement the up and down arrow keys.This refactor will require that the
K
key, currently used forkeep
ing an image, be changed. I proposeM
and renaming the keep function tomove_current_image
.Add
g
andG
(as inshift + G
) to move to the first and last image in the collection respectively. This will require handling knowing whether or not theSHIFT
key is current pressed and will require some slightly more tricky code.In all of this remember to handle the case where the
self.images
Vec is length zero or one. Also update the table in the README to reflect the new controls. (formatting the table nicely would also be apprectiated).