Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Another small fix for ack #66

Merged
merged 1 commit into from May 25, 2015
Merged

Another small fix for ack #66

merged 1 commit into from May 25, 2015

Conversation

bgbnbigben
Copy link

Was the intention to exclude searching through .? If so ack doesn't search this by default, but just in case I added a $ to the start since the search had the unintended side effect of skipping all files with a dot in their name.

@fmoralesc
Copy link
Owner

Can you change the commit message so it is clear at first glance what this does? (If not possible, I'll do it myself). Looks good otherwise.

@bgbnbigben
Copy link
Author

Sure -- to be certain, the original intention was to not search through `.', right? (so searching through, say .mydotfile is intended behaviour?)

@fmoralesc
Copy link
Owner

The original intention was to not search through hidden files, yes. (It shouldn't search in .mydotfile).

@bgbnbigben
Copy link
Author

Ah, okay, this fix will still search through those files.

@fmoralesc
Copy link
Owner

Maybe that should be optional behavior. I don't see the point in searching through hidden files in a directory full of notes, though. It can also mess things up with VCS stuff.

Non-anchored version will skip files that have a . in their name.
@bgbnbigben
Copy link
Author

The current behaviour (no dotfiles at all) makes sense IMO; it was just skipping all files with a dot anywhere in their name previously!

Fixed up the commit; I had my anchor wrong so who knows why it was even working before. Should be good to go now.

@fmoralesc
Copy link
Owner

Looks good. Thanks for the patch, it's really appreciated.

fmoralesc added a commit that referenced this pull request May 25, 2015
Another small fix for ack
@fmoralesc fmoralesc merged commit b05e346 into fmoralesc:devel May 25, 2015
@bgbnbigben
Copy link
Author

No worries -- it's somewhat out of necessity; I just got a mac and unfortunately the default grep is a PoS so I'm stuck with ack!

@fmoralesc
Copy link
Owner

I like ag much better, I remember ack was the slowest of the "next gen" grep tools (slower than grep, even). But that was a while ago.

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.

None yet

2 participants