diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..4b894f0 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,11 @@ +root = true + +[*] +indent_style = tab +end_of_line = crlf +charset = utf-8 +trim_trailing_whitespace = false +indent_size = 2 + +[*.md] +trim_trailing_whitespace = false diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1795c8d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.history \ No newline at end of file diff --git a/firefox/background.js b/firefox/background.js index cc8e9f5..6a8f61e 100644 --- a/firefox/background.js +++ b/firefox/background.js @@ -428,7 +428,7 @@ browser.runtime.onMessage.addListener((message, sender, sendResponse) => { closeCurrentTab(); break; case "search-history": - browser.history.search({text:message.query, maxResults:1000, startTime:31536000000*5}).then((data) => { + browser.history.search({text:message.query, maxResults:9e9, startTime:0}).then((data) => { data.forEach((action, index) => { action.type = "history"; action.emoji = true; diff --git a/firefox/content.js b/firefox/content.js index 93e9f92..06394d9 100644 --- a/firefox/content.js +++ b/firefox/content.js @@ -84,7 +84,8 @@ $(document).ready(() => { function populateOmniFilter(actions) { isFiltered = true; $("#omni-extension #omni-list").html(""); - actions.forEach((action, index) => { + const renderRow = (index) => { + const action = actions[index] var keys = ""; if (action.keycheck) { keys = "