Skip to content

Commit ec9593b

Browse files
authored
ui: use includes instead of startswith for palette filter (#165)
1 parent 217f509 commit ec9593b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ui/palette.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const CommandPalette: m.Component = {
2020
const cmds = Object.values(workbench.commands.commands);
2121
const filtered = cmds.filter(cmd => {
2222
const value = cmd.title || cmd.id;
23-
return value.toLowerCase().startsWith(state.filter.toLowerCase());
23+
return value.toLowerCase().includes(state.filter.toLowerCase());
2424
})
2525
const onkeydown = (e) => {
2626
const mod = (a, b) => ((a % b) + b) % b;

0 commit comments

Comments
 (0)