For multiple flavors of delete
!("name" in picinfo[files[i]]); });
}
!("name" in picinfo[files[i]]); });
}
-function mark_deleted() {
- picinfo[files[input_index]].deleted = 1;
+function mark_deleted(method) {
+ picinfo[files[input_index]].deleted = method;
}
function mark_not_deleted() {
}
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(['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);
Mousetrap.bind('X', mark_not_deleted);
Mousetrap.bind('r', rotate);
Mousetrap.bind('i', announce);