mirror of
https://github.com/vale981/tridactyl
synced 2025-03-04 17:11:40 -05:00
Minor improvements
This commit is contained in:
parent
4885e30896
commit
de445c2016
1 changed files with 4 additions and 4 deletions
|
@ -52,7 +52,7 @@ export class FindCompletionSource extends Completions.CompletionSourceFuse {
|
||||||
this.options.forEach(o => (o.state = "normal"))
|
this.options.forEach(o => (o.state = "normal"))
|
||||||
}
|
}
|
||||||
|
|
||||||
select(option) {
|
select(option: FindCompletionOption) {
|
||||||
if (this.lastExstr !== undefined && option !== undefined) {
|
if (this.lastExstr !== undefined && option !== undefined) {
|
||||||
this.completion = "findjumpto " + option.value
|
this.completion = "findjumpto " + option.value
|
||||||
option.state = "focused"
|
option.state = "focused"
|
||||||
|
@ -78,8 +78,8 @@ export class FindCompletionSource extends Completions.CompletionSourceFuse {
|
||||||
// No point if continuing if the user hasn't started searching yet
|
// No point if continuing if the user hasn't started searching yet
|
||||||
if (query.length < minincsearchlen) return
|
if (query.length < minincsearchlen) return
|
||||||
|
|
||||||
let findresults = await config.getAsync("findresults")
|
let findresults = config.get("findresults")
|
||||||
const incsearch = (await config.getAsync("incsearch")) === "true"
|
const incsearch = config.get("incsearch") === "true"
|
||||||
if (findresults === 0 && !incsearch) return
|
if (findresults === 0 && !incsearch) return
|
||||||
|
|
||||||
let incsearchonly = false
|
let incsearchonly = false
|
||||||
|
@ -92,7 +92,7 @@ export class FindCompletionSource extends Completions.CompletionSourceFuse {
|
||||||
includeRectData: true,
|
includeRectData: true,
|
||||||
includeRangeData: true,
|
includeRangeData: true,
|
||||||
})
|
})
|
||||||
// TODO: don't do this twice
|
// TODO: don't do this twice / thrice
|
||||||
await finding.jumpToMatch(query, false)
|
await finding.jumpToMatch(query, false)
|
||||||
const matches = []
|
const matches = []
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue