-
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
Extending the list of "working path mode" markers. #141
Comments
It seems that I've submitted the "use a different function" method as a PR already, #127. It may not be absolutely necessary (as for my workflow now 'tags' is enough to look for) but the work is done... |
That's a nice idea @tplunket I'm really all for creating a parameter |
@Numkil any thoughts for or against me adding |
I have never seen 'tags' used as a project marker before but I guess expanding the default list should not be anything to worry about. I still would like to see the list of markers exposed as a parameter though :) |
See |
Fits the bill perfectly then. Exactly the reason I made this function. :) |
See PR #143 and feel free to give feedback on it. I did it against the rking/master so that branch doesn't have all of the Windows fixes in it, I keep hoping that that other PR will get accepted one day... |
When
g:ag_working_path_mode
is'r'
, the working directory is changed to a location which is divined to be the "project root." At present, that means that that a function is called to search up the hierarchy from the current working directory until one of a list of items is found. That hunt is implemented something like this:My needs have evolved over time but generally these days I get away with adding
'tags'
to the list would suffice. Is this common enough that it should just be added to the default?My local changes are two-fold. One thing I did was make the list a global configuration item (named
g:ag_working_path_root_markers
). The other thing that I did was make the function that locates the project root a configuration variable as well; unfortunately it seems that function references need to have a leading capital letter while non-function variables need to begin with a lower case, so I couldn't fold them together. I use this replacement function for a job I had where the project root could be queried directly by a function so it made sense just to put that into place.Should I put either or both of these up for review, or should I just add
'tags'
to the list and be done with it?The text was updated successfully, but these errors were encountered: