-
Notifications
You must be signed in to change notification settings - Fork 138
Ignore VCS directories even when they are not in ignoreNames #399
Conversation
Wow, this was fast!! Thanks a lot for the PR! 😍 Don't worry about the failure on travis, it's not caused by this PR. Can you also add a test, so this behaviour does not get broken in the future? You can add it just below this test: fuzzy-finder/spec/fuzzy-finder-spec.js Lines 1659 to 1672 in f8e0cb1
You can use that test as an inspiration, and do something like
I think it's such a rare case to want to search inside the |
I'm welcome to write specs ! 😄
Yeah, I totally agree with you and the alternative also sounds sane. |
The spec checks .git and .hg directories are ignored when `core.ignoredNames` has no glob pattern for them
2e175f0
to
82a39c4
Compare
@rafeca I've not created a spec for the case when |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is awesome! ❤️
Thanks a lot for this PR, and congratulations for your first contribution to Atom! I hope that many more will come afterwards 😃
I'm going to merge it and publish a new version of the fuzzy finder package. This fix will probably be available on v1.39 (since I'll cherry-pick this along some other stuff from fuzzy finder to the current beta).
Thanks again for your help ! I'm really happy to be able to contribute to Atom, my favourite editor, and yeah, will make more in the future ! 😁 Looking forward to the next release ! |
Hi, this is my very first PR for Atom's core system ! 😁
Rationale
If an user's
core.ignoredNames
is modified so that it doesn't include.git
or.hg
(they are included by default) but stillcore.excludeVcsIgnoredPaths
istrue
, then the newfast
mode usingripgrep
will show files in those directories (likeHEAD
,COMMIT_EDITMSG
and so on).Because those files are usually regarded as VCS-ignored files and more over, the previous
alternative
mode does exclude those files whencore.excludeVcsIgnoredPaths
istrue
, I believe these files are better to be ignored infast
mode as well.Please refer to #379 (comment) for more detail.
Description of the Change
Only 5 line changes: Add
ripgrep
arguments to exclude those files whencore.excludeVcsIgnoredPaths
istrue
.Possible Drawbacks
To include those files, an user need to disable both
core.ignoredNames
andcore.excludeVcsIgnoredPaths
, and it might be confusing ?