-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Take Numeric arguments for Actions #48
Comments
Hiya, I'd work to work on this if anybody else hasn't. |
Questions.
If on image "2 of 5", images 1-2 would remain. While 3-5 are deleted. Maybe an option or other key or key combo to be inclusive. |
No, the current image would be deleted and 10 in total. At least that's how it works in vim |
@Davejkane Should the program continuing moving/deleting/copying files if it encounters at least one that already exists, or fails for another reason. |
@gurgalex I would suggest to keep processing in the event of an error and the error message should indicate how many images failed to copy/move/delete. You may want to still |
Goal
Allow current operations to take numeric arguments, a la vim. For example,
5j
would move through 5 images.10d
would delete the next 10 images (😱).11G
would go to the 11th image, etc.Implementation
We're probably going to want to group all numeric keypresses to enter some kind of new State-Machine state. From there, further numeric keypresses will augment the number, and non-numeric keypresses will potentially dispatch an Action.
Normal
being the current app behaviour, andNumeric
being the new state.Numeric
state, we probably want separate keyhandling code. But output should be the same Action enum as the regular keyhandling code (now containing data).The text was updated successfully, but these errors were encountered: