Skip to content

feat: add highlight for executables (#679)#698

Open
yilisharcs wants to merge 1 commit intostevearc:masterfrom
yilisharcs:exec-hl
Open

feat: add highlight for executables (#679)#698
yilisharcs wants to merge 1 commit intostevearc:masterfrom
yilisharcs:exec-hl

Conversation

@yilisharcs
Copy link

No description provided.

@github-actions github-actions bot requested a review from stevearc December 16, 2025 17:01
barrettruth added a commit to barrettruth/canola.nvim that referenced this pull request Feb 21, 2026
Problem: executable files were visually indistinguishable from regular
files in oil buffers.

Solution: add OilExecutable highlight group (linked to DiagnosticOk)
that detects executables via Unix permission bits (S_IXUSR|S_IXGRP|
S_IXOTH) and Windows executable extensions (.exe, .bat, .cmd, .com,
.ps1). Applied to both regular files and symlink targets.

Based on: stevearc#698
Closes stevearc#679
barrettruth added a commit to barrettruth/canola.nvim that referenced this pull request Feb 21, 2026
Problem: the rendering code constructs "OilExecutable" .. "Hidden" for
hidden executables, but that group was never defined. Hidden executables
silently lose all highlighting instead of being dimmed like every other
hidden entry type.

Solution: add OilExecutableHidden linked to OilHidden, consistent with
OilFileHidden, OilDirHidden, and all other hidden variants.

Based on: stevearc#698
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant