Welcome to FilesToAI! This tool helps you select files and directories,
consolidate their content, and generate a project map, making it easy to provide context to
Large Language Models (LLMs).
Steps:
- Enter Directory Path: Type or paste the absolute path to your project's
root directory in the "Directory Path" input field and click "Load".
- Configure Settings (Optional):
- Use the toggles to respect
.gitignore files or enable custom
pathignore patterns.
- Adjust the "Maximum File Size" slider to control the size of individual files
included in the output. Files larger than this limit will have their content
replaced with a notice.
- Use "Quick Select by Extensions" to add common file types to a selection list,
then click "Select Files with These Extensions".
- Use "Ignore by Extensions" to hide and unselect files of specific types (e.g.,
.min.js, .log).
- Select Files/Folders:
- Click the checkboxes next to files or directories in the tree view. Selecting a
directory checkbox selects all files and subdirectories within it.
- Use "Select All" / "Deselect All" for quick actions.
- Use "Expand All" / "Collapse All" to manage the tree view.
- Generate Output:
- Click "Generate Output" to process the selected files. The content will appear
in the "files.txt" area, and a directory structure map will appear in
"project_map.txt".
- "Generate Project Map" creates a map of only the selected files.
- "Generate Full Project Map" creates a map of all files in the loaded directory
(respecting ignore rules).
- Copy/Download: Use the "Copy" or "Download" buttons for each output
section, or use "Copy All Content" / "Download All Content" for a combined output.
Global Hotkey:
Press Ctrl+Shift+Space anywhere on your system to automatically generate and
copy the content of the files currently selected in this application (or all files in the
loaded root directory if no specific files were last selected). The configuration (root
path, ignore settings, max file size) used by the hotkey is based on your last active
session in this web interface.
Make sure the FilesToAI Python application (app.py) is running for the
hotkey to work.