mirror of
https://github.com/aljazceru/opencode.git
synced 2026-01-02 15:35:01 +01:00
fix: include symlinks in ripgrep searches
This commit is contained in:
@@ -187,7 +187,7 @@ export namespace Ripgrep {
|
|||||||
|
|
||||||
export async function files(input: { cwd: string; query?: string; glob?: string; limit?: number }) {
|
export async function files(input: { cwd: string; query?: string; glob?: string; limit?: number }) {
|
||||||
const commands = [
|
const commands = [
|
||||||
`${await filepath()} --files --hidden --glob='!.git/*' ${input.glob ? `--glob='${input.glob}'` : ``}`,
|
`${await filepath()} --files --follow --hidden --glob='!.git/*' ${input.glob ? `--glob='${input.glob}'` : ``}`,
|
||||||
]
|
]
|
||||||
if (input.query) commands.push(`${await Fzf.filepath()} --filter=${input.query}`)
|
if (input.query) commands.push(`${await Fzf.filepath()} --filter=${input.query}`)
|
||||||
if (input.limit) commands.push(`head -n ${input.limit}`)
|
if (input.limit) commands.push(`head -n ${input.limit}`)
|
||||||
|
|||||||
Reference in New Issue
Block a user