Go to file
2025-12-23 15:17:46 +01:00
.github primo commit 2025-12-23 09:31:38 +01:00
.vscode primo commit 2025-12-23 09:31:38 +01:00
codebridge aggiunto highlight parziale codice modificato 2025-12-23 15:17:46 +01:00
doc Initial project structure created by ProjectInitializerTool 2025-12-23 08:35:02 +01:00
externals Feat: Add submodule 'externals/python-tkinter-logger' tracking branch 'master' 2025-12-23 09:34:18 +01:00
scripts aggiunto venv, aggiunti tasti di copia in fidd, sistemata minimappa, aggiunta la scroolbox orizzontale, rivista disposizione tasti, sistemato anche il tasto diff 2025-12-23 14:51:48 +01:00
.gitignore aggiunto venv, aggiunti tasti di copia in fidd, sistemata minimappa, aggiunta la scroolbox orizzontale, rivista disposizione tasti, sistemato anche il tasto diff 2025-12-23 14:51:48 +01:00
.gitmodules Feat: Add submodule 'externals/python-tkinter-logger' tracking branch 'master' 2025-12-23 09:34:18 +01:00
codebridge_design.md primo commit 2025-12-23 09:31:38 +01:00
CodeBridge.ico sistemata funzione copy all and refresh, aggiunta icona 2025-12-23 14:55:53 +01:00
profiles.json aggiunto highlight parziale codice modificato 2025-12-23 15:17:46 +01:00
README.md aggiunto venv, aggiunti tasti di copia in fidd, sistemata minimappa, aggiunta la scroolbox orizzontale, rivista disposizione tasti, sistemato anche il tasto diff 2025-12-23 14:51:48 +01:00
requirements.txt aggiunto venv, aggiunti tasti di copia in fidd, sistemata minimappa, aggiunta la scroolbox orizzontale, rivista disposizione tasti, sistemato anche il tasto diff 2025-12-23 14:51:48 +01:00

SXXXXXXX_CodeBridge

SXXXXXXX_CodeBridge is a small desktop utility that compares two directory trees, creates ZIP "export packages" containing changed files and a JSON manifest, and can apply those packages to target trees. It is intended for lightweight synchronization and code/package exchange workflows.

Supported platforms: Windows, macOS, Linux (requires Python 3.11+ and tkinter)

Features / Caratteristiche

  • Compare two directory trees and show added, modified and deleted files
  • Produce a ZIP export package with a bridge_manifest.json describing the changes
  • Apply an export package to a destination tree (handles deletions and file extraction)
  • GUI with side-by-side diff viewer, minimap, profile-based ignore lists, and embedded logs

Quick Start / Avvio rapido

English

  1. Install Python 3.11+ and ensure tkinter is available.
  2. From the repository root run:
python -m codebridge

Running in a local virtual environment / Eseguire in un ambiente .venv

It is recommended to run the application inside an isolated Python virtual environment.

Windows (PowerShell or Command Prompt):

# from repository root
scripts\create_venv.bat
# then activate
.venv\Scripts\activate.bat
python -m codebridge

Unix / macOS (bash / zsh):

# from repository root
./scripts/create_venv.sh
source .venv/bin/activate
python -m codebridge

Notes / Note:

  • tkinter is part of the Python standard library but may need the platform GUI packages installed (e.g., sudo apt install python3-tk on Debian/Ubuntu).
  • Add any external dependencies to requirements.txt and re-run the script to install them into .venv.

Italiano

  1. Installa Python 3.11+ e assicurati che tkinter sia disponibile.
  2. Dalla cartella del repository esegui:
python -m codebridge

Data contract / Manifest

Exported ZIP packages contain a bridge_manifest.json with the following keys:

{
	"timestamp": "2023-10-27T10:00:00",
	"commit_message": "...",
	"changes": {"added": [], "modified": [], "deleted": []}
}

This manifest is used when applying a package so deletions are handled and modified/added files are extracted.

Profiles and ignore lists / Profili e liste di ignore

The application supports named profiles that persist to profiles.json at the repository root. Each profile can include ignore_extensions so you can exclude build artifacts or temporary files from comparisons.

Contributing / Contribuire

  • Please follow PEP8 style for Python changes.
  • GUI and core logic are separated under codebridge/gui and codebridge/core — keep UI-only changes in gui and logic changes in core.

License

Please check repository root for license information.