overhaul file search and support @ mentioning directories
This commit is contained in:
parent
fe45a76c55
commit
6e19200fca
1 changed files with 132 additions and 27 deletions
|
|
@ -956,12 +956,11 @@ export namespace Server {
|
|||
),
|
||||
async (c) => {
|
||||
const query = c.req.valid("query").query
|
||||
const result = await Ripgrep.files({
|
||||
cwd: Instance.directory,
|
||||
const results = await File.search({
|
||||
query,
|
||||
limit: 10,
|
||||
})
|
||||
return c.json(result)
|
||||
return c.json(results)
|
||||
},
|
||||
)
|
||||
.get(
|
||||
|
|
|
|||
Loading…
Reference in a new issue