X-Git-Url: http://git.scottworley.com/picsort/blobdiff_plain/370e0b55a32f35148c21e7346b484abcd87bbc38..d3aedd16f654a3802e848b955251294a02a3b9af:/picsorter.js diff --git a/picsorter.js b/picsorter.js index 31091fa..cfbf5db 100644 --- a/picsorter.js +++ b/picsorter.js @@ -214,13 +214,25 @@ Mousetrap.bind('X', mark_not_deleted); Mousetrap.bind('r', rotate); Mousetrap.bind('i', announce); Mousetrap.bind('f', function() { say(files[input_index]); }); -Mousetrap.bind('e', function() { say_exposure(); }); +Mousetrap.bind('B', function() { say_exposure(); }); Mousetrap.bind('c', function() { $("#name").show().focus(); return false; }); Mousetrap.bind('C', function() { if (last_name) { set_name(last_name); } }); Mousetrap.bind('%', function() { say((100 * input_index / files.length).toFixed(2) + "%"); }); Mousetrap.bind('!', show_commands); Mousetrap.bind('esc', function() { $("#name").hide(); $("#shell_out").hide(); }); +function clean_picinfo() { + files_index = {}; + $.each(files, function(i, f) { + files_index[f] = true; + }); + for (f in picinfo) { + if (!files_index[f]) { + delete picinfo[f]; + } + } +} + function undelete_all() { for (f in picinfo) { delete picinfo[f].deleted;