X-Git-Url: http://git.scottworley.com/picsort/blobdiff_plain/eaa5e016a41682c1ccd99023bd346e0448fa0ca3..9ac8dac07bfb3f58231b879ffe36f6abe41ed8df:/picsorter.js diff --git a/picsorter.js b/picsorter.js index 213a553..f184784 100644 --- a/picsorter.js +++ b/picsorter.js @@ -152,7 +152,8 @@ function shell_escape(x) { function show_commands() { var commands = []; $.each(files, function(i, f) { - if ("name" in picinfo[f] && picinfo[f].name.length > 0) { + if ("name" in picinfo[f] && picinfo[f].name.length > 0 && + !("deleted" in picinfo[f])) { var command = ["pic-mv"]; if ("exposure" in picinfo[f]) { command.push("-e " + picinfo[f].exposure); @@ -165,6 +166,7 @@ function show_commands() { commands.push(command.join(" ")); } }); + commands.push(""); $("#shell_out").text(commands.join("\n")).show(); } @@ -189,3 +191,4 @@ Mousetrap.bind('r', rotate); Mousetrap.bind('c', function() { $("#name").show().focus(); return false; }); Mousetrap.bind('%', function() { say((100 * input_index / files.length).toFixed(2) + "%"); }); Mousetrap.bind('!', show_commands); +Mousetrap.bind('esc', function() { $("#name").hide(); $("#shell_out").hide(); });