From: Scott Worley Date: Sun, 21 Dec 2014 20:05:41 +0000 (-0800) Subject: 'e'xtra. Mostly like delete, but doesn't rm. X-Git-Url: http://git.scottworley.com/picsort/commitdiff_plain/22c8d6e6bacfa3323049a8a084e10ff0f495a9fc?hp=613324490beb9af12d5da99028a2d36eac58d592 'e'xtra. Mostly like delete, but doesn't rm. Set EXTRADIR appropriately. --- 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]); });