mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
Revert async history update and number of history items
The async history issue was too annoying, and the number of history items being above 50 meant that it was too slow.
This commit is contained in:
parent
347c1f5d7a
commit
9e2c21123f
2 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ async function currentWindowTabs(): Promise<browser.tabs.Tab[]> {
|
|||
}
|
||||
|
||||
async function history(): Promise<browser.history.HistoryItem[]> {
|
||||
return await browser.history.search({text:"",maxResults:100,startTime:0})
|
||||
return await browser.history.search({text:"",maxResults:50,startTime:0})
|
||||
}
|
||||
async function allWindowTabs(): Promise<browser.tabs.Tab[]> {
|
||||
let allTabs: browser.tabs.Tab[] = []
|
||||
|
|
|
@ -368,7 +368,7 @@ export class HistoryCompletionSource extends CompletionSourceFuse {
|
|||
private async updateOptions(exstr?: string) {
|
||||
/* console.log('updateOptions', this.optionContainer) */
|
||||
// this sleep stops input from being blocked, but also breaks :open until something is typed
|
||||
await sleep(0)
|
||||
// await sleep(0)
|
||||
const history: browser.history.HistoryItem[] =
|
||||
await Messaging.message("commandline_background", "history")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue