Welcome to TreeGen, the desktop application that helps you describe and share your folder structures in a clean, repeatable way. This guide covers installation, the main interface, and the export workflow, followed by tips to make the most of the new bilingual release.
Option A - Download the Executable
Grab the installer or standalone executable that matches your operating system from the Releases page and launch TreeGen directly.
Option B - Run from Source
Requirements:
- Python 3.10 or later
- Conda or another virtual environment tool (recommended)
Steps:
git clone https://github.com/Alliance-RDM-GDR/RDM_FileTree.git
cd RDM_FileTree
conda env create -f environment.yml
conda activate treegen-env
python TreeGen.pyOptional build step (creates a single-file executable):
pyinstaller --onefile --windowed TreeGen.pyTreeGen presents a split layout:
- Header: App title, the Alliance logo, usage instructions, and top-row controls (Select Directory, Language dropdown, About / Info).
- Left Pane: A
QTreeViewwith expandable folders and editable descriptions. - Right Pane: A read-only Markdown preview that refreshes automatically.
- Filter Bar: Search, exclude-extension entry, and an "Exclude Hidden" toggle.
You can switch between English and French at any time using the Language dropdown. TreeGen remembers your choice for the next session.
- Select a directory. Click Select Directory and choose the root folder you want to document. TreeGen loads any existing
.descriptions.jsonfile in that directory. - Explore and annotate. Expand folders, then double-click the Description column to add context or notes. Filters and search update instantly.
- Review the preview. The Markdown pane mirrors your filters and annotations so you can confirm exactly what will be exported.
- Export Markdown (.md): Generates a Markdown file with bold folder names, file sizes, annotations (as HTML comments), and a localized summary of totals.
- Export Plain Text (.txt): Produces a plain-text equivalent using the same content.
Both export options respect the current language, filters, and descriptions. TreeGen shows a localized success or error dialog after every export attempt.
- TreeGen stores descriptions in
.descriptions.json. Commit or back up that file to retain annotations. - Cleaning Up: If you wish to remove all annotations, simply delete the
.descriptions.jsonfile from your directory. - Privacy, consider adding
.descriptions.jsonto your.gitignoreto avoid sharing it inadvertently. - Use the language selector before exporting to ensure the report is generated in the desired language.
- The About / Info dialog contains quick links to Alliance resources, FRDR, and Borealis repositories.
- Hidden files and excluded extensions remain hidden in both the preview and export, preserving a clean hierarchy.
Need help? Check the README or email rdm-gdr@alliancecan.ca.
Please cite TreeGen using the information in CITATION.cff or the Zenodo DOI (10.5281/zenodo.17289197).
Bienvenue dans TreeGen, l'application de bureau qui vous aide à décrire et à partager la structure de vos dossiers de manière claire et reproductible. Ce guide présente l'installation, l'interface principale et le processus d'exportation, suivis de conseils pour profiter de la nouvelle version bilingue.
Option A - Télécharger l'exécutable
Récupérez l'installateur ou l'exécutable autonome correspondant à votre système d'exploitation sur la page des versions, puis lancez TreeGen directement.
Option B - Lancer depuis le code source
Exigences :
- Python 3.10 ou version ultérieure
- Conda ou un autre gestionnaire d'environnements virtuels (recommandé)
Étapes :
git clone https://github.com/Alliance-RDM-GDR/RDM_FileTree.git
cd RDM_FileTree
conda env create -f environment.yml
conda activate treegen-env
python TreeGen.pyÉtape facultative (crée un exécutable autonome) :
pyinstaller --onefile --windowed TreeGen.pyTreeGen propose une interface en panneaux :
- En-tête : Titre de l'application, logo de l'Alliance, instructions et commandes principales (Sélectionner un dossier, menu Langue, À propos / Info).
- Volet gauche : Un
QTreeViewavec dossiers extensibles et descriptions éditables. - Volet droit : Un aperçu Markdown en lecture seule qui se met à jour automatiquement.
- Barre de filtres : Recherche, champ d'exclusion d'extensions et case « Exclure les éléments cachés ».
Vous pouvez passer de l'anglais au français (et inversement) à tout moment grâce au menu Langue. TreeGen mémorise votre choix pour la session suivante.
- Sélectionnez un dossier. Cliquez sur Sélectionner un dossier et choisissez le répertoire racine à documenter. TreeGen charge tout fichier
.descriptions.jsonexistant dans ce dossier. - Explorez et annotez. Déployez les dossiers, puis double-cliquez la colonne Description pour ajouter des notes. Les filtres et la recherche s'appliquent immédiatement.
- Vérifiez l'aperçu. Le volet Markdown reflète vos filtres et annotations afin de valider le contenu avant exportation.
- Exporter en Markdown (.md) : Génère un fichier Markdown avec noms de dossiers en gras, tailles des fichiers, annotations (commentaires HTML) et un résumé localisé.
- Exporter en texte brut (.txt) : Produit un équivalent texte utilisant les mêmes informations.
Les deux formats respectent la langue active, les filtres et les descriptions. TreeGen affiche un message localisé de réussite ou d'erreur après chaque export.
- TreeGen enregistre les descriptions dans
.descriptions.json. Conservez ce fichier pour garder vos annotations. - Nettoyage : Si vous souhaitez supprimer toutes les annotations, effacez simplement le fichier
.descriptions.jsonde votre répertoire. - Confidentialité : Envisagez d'ajouter
.descriptions.jsonà votre.gitignorepour éviter de le partager par inadvertance. - Sélectionnez la langue voulue avant d'exporter afin que le rapport soit généré dans la bonne langue.
- La boîte de dialogue À propos / Info contient des liens vers les ressources de l'Alliance, ainsi que vers les dépôts FRDR et Borealis.
- Les fichiers cachés et extensions exclues sont également ignorés lors de l'export, pour une arborescence claire.
Besoin d'aide ? Consultez le README ou écrivez à rdm-gdr@alliancecan.ca.
Pour citer TreeGen, utilisez les renseignements fournis dans CITATION.cff ou le DOI Zenodo (10.5281/zenodo.17289197).
Alliance de recherche numérique du Canada