feat: allow control over displaying hidden/dotfiles and .gitignore matches (#179)
* feat: add chat setting to toggle hidden files (dotfiles) * feat: add toggle to show/hide gitignored files in file browser * refactor: don't reuse visibility setting for dotfiles toggle * fix: honor hidden/gitignored toggles across runtimes --------- Co-authored-by: Bohdan Triapitsyn <artmore@protonmail.com>
This commit is contained in:
committed by
GitHub
co-authored by
Bohdan Triapitsyn
parent
6544b12e78
commit
2de0d9d3dd
@@ -83,6 +83,9 @@ export const createWebFilesAPI = (): FilesAPI => ({
|
||||
if (typeof payload.maxResults === 'number' && Number.isFinite(payload.maxResults)) {
|
||||
params.set('limit', String(payload.maxResults));
|
||||
}
|
||||
if (payload.includeHidden) {
|
||||
params.set('includeHidden', 'true');
|
||||
}
|
||||
|
||||
const response = await fetch(`/api/fs/search?${params.toString()}`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user