Windows Integration
The Windows integration registers the .sdf file extension with the Windows Registry, giving you:
- The Etapsky SDF icon in File Explorer
- Correct file type description (“Smart Document Format”)
- “Open with SDF CLI” context menu entry (if
sdf-cliis installed)
Installation
Open PowerShell as Administrator and run:
.\tooling\os-integration\windows\register-sdf.ps1Or, if you have cloned the repository:
git clone https://github.com/etapsky/sdf.gitcd sdf\tooling\os-integration\windows.\register-sdf.ps1The script writes the following registry keys under HKEY_CLASSES_ROOT:
HKCR\.sdf → ProgID: EtapskySDF.DocumentHKCR\EtapskySDF.Document → "Smart Document Format"HKCR\EtapskySDF.Document\DefaultIconHKCR\EtapskySDF.Document\shell\open\commandRequirements
- Windows 10 or Windows 11
- PowerShell 5.1 or later (included with Windows)
- Administrator privileges (required to write to
HKEY_CLASSES_ROOT)
Verifying the installation
- Open File Explorer and navigate to any
.sdffile. - The file should display the Etapsky SDF icon and show “Smart Document Format” as the file type.
- Right-click the file — if
sdf-cliis installed and onPATH, an Open with SDF CLI option appears.
After running the script, restart File Explorer if the icon does not update immediately:
Stop-Process -Name explorer -Force; Start-Process explorerUninstallation
Open PowerShell as Administrator and run:
.\tooling\os-integration\windows\unregister-sdf.ps1This removes all .sdf registry entries and reverts the file association to the Windows default (unknown file type).
What is not included
The Windows integration does not include a Quick Look-style preview panel. For inline document preview on Windows, use the VS Code extension with the SDF: Preview PDF command.