From 22c8d6e6bacfa3323049a8a084e10ff0f495a9fc Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Sun, 21 Dec 2014 12:05:41 -0800 Subject: [PATCH] 'e'xtra. Mostly like delete, but doesn't rm. Set EXTRADIR appropriately. --- picsorter.js | 6 ++++++ 1 file changed, 6 insertions(+) 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]); }); -- 2.44.1