# Pastebin xL52ZptY diff --git a/nixos/options.tt b/nixos/options.tt index 9c2e98a..c3422a5 100644 --- a/nixos/options.tt +++ b/nixos/options.tt @@ -122,6 +122,8 @@ function refilter() { return words.every(match); }); + + document.location.hash = words.join(' ').replace(/ +/, '+'); } curPage = 0; @@ -292,6 +294,8 @@ $.ajax({ success: function(data) { optionData = data; + var query = document.location.hash.replace(/^#/, '').replace(/\+/, ' '); + if (query.length && query.length > 0 ){ $('#search').val(query); } refilter(); $('#search').on('input', function() {