-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Summary
Display the target path for junctions, symlinks, and hardlinks in all display modes (normal, wide, bare, tree). Currently, reparse points are detected in tree mode and shown as [→ target], but this should be extended to all modes.
Details
Junctions & Symlinks
- Show
→ target_pathafter the filename in normal/tree modes - Use
DeviceIoControlwithFSCTL_GET_REPARSE_POINTto resolve targets (already partially implemented for tree mode reparse guard) - Distinguish junction vs symlink via reparse tag (
IO_REPARSE_TAG_MOUNT_POINTvsIO_REPARSE_TAG_SYMLINK)
Hardlinks
- Show hardlink count when > 1 (e.g.,
[2 links]) - Use
GetFileInformationByHandlefornNumberOfLinks - Optionally:
FindFirstFileNameW/FindNextFileNameWto enumerate all paths
Scope
- Extend to all display modes: normal, wide, bare, tree
- Add configurable color for link target text (new
Attributevariant) - Consider a
/Linksswitch to opt-in to hardlink enumeration (performance: requires opening each file)
Prior Art
- eza and lsd both display symlink targets inline
- Current TCDir tree mode already detects reparse points (
FILE_ATTRIBUTE_REPARSE_POINT) and prevents cycle traversal
Notes
- This feature should be implemented in TCDir first, then ported to RCDir per the standard workflow
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request