Skip to content

Latest commit

 

History

41 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Folder Context

C# .NET License

Folder Context is a Windows utility that visualizes directory structures and concatenates selected files into a single output file.

It is designed for quickly exploring folders and exporting their contents in a clean, readable format.

The application loads the directory tree eagerly, so very large directories may take longer to process.

Features

  • Export directory tree
  • Concatenate selected files
  • Dark and light themes
  • Show or hide hidden files
  • File and folder exclusion rules
  • Configurable tree indentation
  • Async operations with progress reporting

Preview

Main window

Example tree output

FolderContext
├── FolderContext
│    ├── Source
│    │    ├── Core
│    │    │    ├── Exclusions.cs
│    │    │    ├── ExplorerNode.cs
│    │    │    ├── ExplorerNodeFlags.cs
│    │    │    ├── FileInfoExtensions.cs
│    │    │    ├── FileNode.cs
│    │    │    ├── FileStatus.cs
│    │    │    ├── FileStatusException.cs
│    │    │    ├── FileStreamExtensions.cs
│    │    │    ├── FolderNode.cs
│    │    │    └── TreeRenderer.cs
│    │    └── Settings
│    │        ├── AppSettings.cs
│    │        └── SettingsManager.cs
│    └── Program.cs
├── FolderContext.slnx
└── LICENSE

Example concatenated output

==================================================
/FolderContext/Source/Settings/AppSettings.cs
==================================================
namespace FolderContext.Source.Settings
{
    internal sealed class AppSettings
    {
        public bool DarkTheme { get; set; } = true;
        public bool HiddenFiles { get; set; } = false;
        public int IndentSize { get; set; } = 4;
        public string[] ExclusionsList { get; set; } = [];
    }
}
==================================================
/FolderContext/Program.cs
==================================================
namespace FolderContext
{
    internal static class Program
    {
        /// <summary>
        ///  The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            // To customize application configuration such as set high DPI settings or default font,
            // see https://aka.ms/applicationconfiguration.
            ApplicationConfiguration.Initialize();
            Application.Run(new MainForm());
        }
    }
}
==================================================
/FolderContext.slnx
==================================================
<Solution>
  <Project Path="FolderContext/FolderContext.csproj" />
</Solution>

See the full example: concat-output.txt


How to Run

No installation required.

  1. Download the latest release from the Releases page.
  2. Extract the downloaded archive.
  3. Run FolderContext.exe.

How to Use

  1. Open a folder.
  2. Select the files or folders you want to process.
  3. Configure the available options if needed.
  4. Choose the desired operation:
    • Save Tree to export the folder structure.
    • Concat Files to merge the selected files into a single output file.
  5. Choose a destination and save the result.

Built With

   

Author

Created by scrnr

License

This project is licensed under the MIT License. See the LICENSE file for more details.

About

A Windows utility for visualizing folder structures and concatenating selected files

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages