Skip over navigation

Unit2NS

Finds the namespace(s) that a given Pascal unit belongs to.

Version 0.1.1-beta
Released 01 Oct 2021
O/S Windows 7 / Windows Server 2012 R2 & later

Overview

Unit2NS is a little tool for Delphi programmers to find the namespace(s) that a unit belongs to.

Since the introduction of namespaces to Delphi I've been struggling to remember which namespaces some units belong to. OK, sometimes the code editor pops up a list of unit names in a namespace, but what I wanted was to type in a unit name and be told what namespace(s) the unit may belong to.

This program does that. When you have found the required namespace you can copy the fully qualified unit name to the clipboard ready for pasting into your code editor. It will also let you examine a namespace to see what units it contains.

You have to teach Unit2NS about what units exist and the namespaces they belong to. The program makes this easy to do by being able to scan directory trees of source code. Unit2NS can remember more than one set of unit-namespace "mappings", which makes it useful for using with different versions of Delphi.

The program is available as either 32 or 64 bit versions.

Download

This program is hosted on GitHub in the delphidabbler/unit2ns repository. The 32 and 64 bit versions are available as separate downloads from the repository's Releases section.

Each release gives the option of downloading either the programs in executable format or the source code. Your options are:

  • Choose unit2ns-32bit-0.1.1-beta.zip to download a zip file containing the 32 bit version of UNit2NS or unit2ns-64bit-0.1.1-beta.zip for the 64 bit version. Extract the content of the chosen .zip file. The included read-me file (README.txt) explains how to install the program.
  • Choose Source code.zip to download the source code in .zip format.
  • Choose Source code.tar.gz to download the source code as a g-zipped tarball.

Get v0.1.1-beta from GitHub

Documentation

The following documentation is available. All the links open on GitHub.

Bugs & Feature Requests

If you find any bugs or want to suggest a new feature, please use the GitHub project's issue tracker. You can browse existing issues to see if a similar one has already been raised. If so please add any further information as comments. If there is no similar issue please raise new one.

You will need a GitHub account if you want to create or edit an issue.