X-Git-Url: http://git.scottworley.com/picsort/blobdiff_plain/613324490beb9af12d5da99028a2d36eac58d592..22c8d6e6bacfa3323049a8a084e10ff0f495a9fc:/picsorter.js diff --git a/picsorter.js b/picsorter.js index bbd2554..6608edf 100644 --- a/picsorter.js +++ b/picsorter.js @@ -180,6 +180,10 @@ function show_commands() { commands.push("rm " + escaped_filename); return; } + if (picinfo[f].deleted == "extra") { + commands.push("mv " + escaped_filename + " \"$EXTRADIR\""); + return; + } var command = ["pic-mv"]; if ("exposure" in picinfo[f]) { command.push("-e " + picinfo[f].exposure); @@ -215,6 +219,8 @@ Mousetrap.bind('0', move_to_begenning); Mousetrap.bind('$', move_to_end); Mousetrap.bind('x', function(){ mark_deleted("deleted"); }); Mousetrap.bind('X', mark_not_deleted); +Mousetrap.bind('e', function(){ mark_deleted("extra"); }); +Mousetrap.bind('E', mark_not_deleted); Mousetrap.bind('r', rotate); Mousetrap.bind('i', announce); Mousetrap.bind('f', function() { say(files[input_index]); });