-
Notifications
You must be signed in to change notification settings - Fork 131
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
Added more options #49
base: master
Are you sure you want to change the base?
Conversation
- There are now a few options that you can specify - current_file_ext -- limits the search to files that have the current buffer's file's extension only - current_file_dir -- limits the search to files that are in the current buffer's file's directory - scmdir -- starts the search at the "root" of a source directory, based on the existence of a .git, .scm or .hg dir - specific_dirs -- limits the search to these directories - You can also customize the quickfix mappings - Each mapping is customizable using a dictionary
- If the current file's directory is the same as the one containing the scm directory, then we fail to return '.'
- See the doc file
Wow! This is quite the pull request. Thanks for taking the time to do this. It looks like this'll make mappings a lot more useful in addition to the extra commands. Running Some other small things I noticed:
|
Ah, I didn't realize you wanted everything to actually work :) So, :Ag should be fine now (as should everything else, I believe). I addressed the dictionary extension, which is a lot better and easier to read. I'm not sure what the 'extra lines' in the docs is about, but I'm sure you can pretty that up later. |
Nice, that was some quick work. I still want to play with it a little more, just to be sure I don't miss anything (I often miss stuff in my PRs, so I'm trying to be more thorough these days). I think you can search specific filetypes with something like |
Ok, so I've been taking another look at this, and it looks like it's just about ready to be merged. I just have a couple more questions/nits to pick if that's alright. Because of the way the other commands are named ( The documentation around The documentation around I had the same issue with Any other issues I found weren't an issue with this pull request (they're either tracked already or possible enhancements), so this is the last bit of stuff I found. Let me know if any of this is confusing, and thanks again for the code! |
Worth some consideration if, in the long run, the Ack-like file types support (ggreer/the_silver_searcher#283) might be preferable to file extensions with the |
buffer's file's extension only
buffer's file's directory
the existence of a .git, .scm or .hg dir