rainstormstudio / nerd-icons.el

GNU General Public License v3.0
206 stars 22 forks source link

Only match the non-directory part of file name #72

Closed aikrahguzar closed 5 months ago

aikrahguzar commented 5 months ago

The context here is I have some code which does completion on relative paths so stuff like ../../ab/cd.el etc, because of ("^\\." nerd-icons-octicon "nf-oct-gear") in nerd-icons-regexp-icon-alist all relative path end up with the gear icon. As far as I can tell, the regexps in that alist seemed designed to match the non-directory part of filename and not the whole path and hence this patch.

seagle0128 commented 5 months ago

thank you!