feat(desktop): built-in Han/Eng layout auto-switching, terminal/Vim support, and Unicode input
This commit is contained in:
parent
1da04b9e46
commit
a3ac44da2b
109 changed files with 8234 additions and 242 deletions
|
|
@ -325,7 +325,8 @@ const SEARCH_CONTEXT = /(google|naver|네이버|daum|다음 검색|bing|duckduck
|
|||
function looksLikeSearchInput(input: SuggestionPromptInput, raw: string): boolean {
|
||||
const where = `${input.appName ?? ''} ${input.windowTitle ?? ''}`
|
||||
const text = raw.trim()
|
||||
return SEARCH_CONTEXT.test(where) && text.length > 0 && text.length <= 60 && !/[.!?。\n]/u.test(text)
|
||||
if (/[.!?。\n@/]/u.test(text)) return false
|
||||
return SEARCH_CONTEXT.test(where) && text.length > 0 && text.length <= 60
|
||||
}
|
||||
|
||||
function formatAge(ageMs: number): string {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue