diff --git a/packages/insomnia/src/ui/components/git-credentials/git-remote-branch-select.tsx b/packages/insomnia/src/ui/components/git-credentials/git-remote-branch-select.tsx index da223b6bc1..333d965d52 100644 --- a/packages/insomnia/src/ui/components/git-credentials/git-remote-branch-select.tsx +++ b/packages/insomnia/src/ui/components/git-credentials/git-remote-branch-select.tsx @@ -3,6 +3,7 @@ import { Button, ComboBox, Input, Label, ListBox, ListBoxItem, Popover } from 'r import * as reactUse from 'react-use'; import { z } from 'zod/v4'; +import { fuzzyMatch } from '~/common/misc'; import type { GitCredentials } from '~/models/git-repository'; import { useGitRemoteBranchesActionFetcher } from '~/routes/git.remote-branches'; @@ -66,11 +67,14 @@ export const GitRemoteBranchSelect = ({ className="w-full" defaultSelectedKey={remoteBranches[0]} isDisabled={isComboboxDisabled} - items={remoteBranches.map(branch => ({ + defaultItems={remoteBranches.map(branch => ({ id: branch, name: branch, }))} menuTrigger="focus" + defaultFilter={(branch: string, inputValue: string) => + Boolean(fuzzyMatch(inputValue, branch, { splitSpace: true, loose: false })?.indexes) + } >