|
|
|
|
@ -10,7 +10,7 @@ import { Soma } from '$soma/core/soma.svelte';
|
|
|
|
|
import { createSomaRuntime, type SomaRuntimeSources } from '$soma/runtime.svelte';
|
|
|
|
|
|
|
|
|
|
import { CommandProvider } from './command-provider.svelte';
|
|
|
|
|
import { computeCommandScore } from './score';
|
|
|
|
|
import { computeFuzzyScore } from '$libs/strings';
|
|
|
|
|
|
|
|
|
|
function withEffectRoot<T>(fn: () => T): { result: T; cleanup: () => void } {
|
|
|
|
|
let result!: T;
|
|
|
|
|
@ -46,7 +46,7 @@ function createCommandOpts() {
|
|
|
|
|
search: state(''),
|
|
|
|
|
label: state<string | undefined>('Commands'),
|
|
|
|
|
shouldFilter: state(true),
|
|
|
|
|
filter: state(computeCommandScore),
|
|
|
|
|
filter: state(computeFuzzyScore),
|
|
|
|
|
loop: state(false),
|
|
|
|
|
vimBindings: state(false),
|
|
|
|
|
columns: state(1),
|
|
|
|
|
|