X-Git-Url: http://git.scottworley.com/picsort/blobdiff_plain/eaa5e016a41682c1ccd99023bd346e0448fa0ca3..88880347cfae4f78b639e5bc18fb4912de7fb36f:/picsorter.js diff --git a/picsorter.js b/picsorter.js index 213a553..ff760dc 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(); } @@ -186,6 +188,8 @@ Mousetrap.bind(['d', 'j'], function() { change_exposure(-1); }); Mousetrap.bind('x', mark_deleted); Mousetrap.bind('X', mark_not_deleted); Mousetrap.bind('r', rotate); +Mousetrap.bind('f', function() { say(files[input_index]); }); 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(); });