Sublime Forum

Sublime text 4 - in Find in files Use gitignore not working for symlinks, that are outside of working dir

#1

Hello. Use gitignore in Find in files not working in the following case:

  • we have symlink that points to somewhere outside of working dir (let’s say we have ‘out’ -> ‘/tmp’)
  • ‘out’ is in .gitignore and git status ignores it

In this case Sublime attempts to search in ‘out’ (and so in ‘/tmp’) even if Use gitignore enabled. Looks like ‘/tmp’ content is also indexed in this case, even configured not to be.

Expected behaviour: if Use gitignore enabled, do not search in pathes that are in gitignore, even they are symlinks outside of working dir. Probably indexing should also not be performed if option ‘index_exclude_gitignore’ enabled.

Could you please suggest or fix? Thank you.

0 Likes