!("name" in picinfo[files[i]]); });
}
-function mark_deleted() {
- picinfo[files[input_index]].deleted = 1;
+function mark_deleted(method) {
+ picinfo[files[input_index]].deleted = method;
save_picinfo();
- say("Deleted");
+ say(method);
}
function mark_not_deleted() {
Mousetrap.bind(['d', 'j'], function() { change_exposure(-1); });
Mousetrap.bind('0', move_to_begenning);
Mousetrap.bind('$', move_to_end);
-Mousetrap.bind('x', mark_deleted);
+Mousetrap.bind('x', function(){ mark_deleted("deleted"); });
Mousetrap.bind('X', mark_not_deleted);
Mousetrap.bind('r', rotate);
Mousetrap.bind('i', announce);