-
-
Notifications
You must be signed in to change notification settings - Fork 66
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
Feature request : add a "tags" property #119
Comments
This is basically identical to the built-in |
Great ;-) I assume the next step is for me to prepare a PR then (might take some time as my VimL skills are pretty poor) ? BTW, contrary to what I stated in my original post, I seem to fail to get the proper detection of my project's top dir :
(was only working because I had the same "make" rule in a There is probably something fundamental I don't understand here : how can I target a specific directory (and everything below it) ? Thanks, |
If it's a dir it needs a trailing slash: |
I've actually tried with a trailing slash :
But it's still not working. "Funny" thing is that the alternates seems to be working, but not the make. If I do
as if the rules were applied to the parent directory instead ? |
Yes, you're targeting the directory's contents. If you really just want to do one arbitrary directory, a |
Might have to do that then, yes, but it's annoying : the issue with a per root directory I can't/don't want to pollute the project with my own rules, so I can't commit it back to upstream. So putting the rules outside the project, in my own Will have to find another way to manage the rules then... BTW, is there a fundamental thing that would prevent the vim-projectionist plugin to support targeting a directory (as opposed to directory's contents) ? |
If you don't want to commit the file to the repo, add it to If having it in your |
First, thanks a lot for your patience. I guess the Tried this in my
If I put a |
Drop the single quotes.
…On Tue, Nov 27, 2018 at 11:28 Laurent Aphecetche ***@***.***> wrote:
First, thanks a lot for your patience. I guess the ProjectionDetect would
be my preferred route, if I knew some VimL ;-)
Tried this in my .vimrc :
function! s:pjdetect(f)
if a:f =~# "\/alo-aliroot\/"
let proj = '{
\ "*": { "make": "zob" },
\ "*.cxx": { "alternate": "{}.zob" }
\ }'
call projectionist#append(a:f,proj)
endif
endfunction
autocmd User ProjectionistDetect call s:pjdetect(g:projectionist_file)
If I put a echoe a:f (did not get a echom to work for some most probably
trivial reason) I see the regexp looks correct and the append is called,
but the make or the alternate are not associated with my files...
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#119 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAABevzkPTmlc2hmRO2wRvrg69hqVLK5ks5uzWhCgaJpZM4Yxgqf>
.
|
In the same spirit as [ the "make" property allows to set the "makeprg" for a path regexp ] I could certainly make use of a "tags" property that would set the "tags" for a given path.
The use case is to get an easy way to set the tags to be used when editing a file in a project that depends on another project.
in this example
alo-aliroot
is the project I work on, but it uses lots of code fromAliRoot
and so I need the tags from both projects for my workflow. Note that the tags themselves in each directory are managed just fine with vim-gutentags.So, something like :
The first rule with "make" is already possible and works fine, what I'm proposing here is to add one for "tags" as well.
Hope that makes sense ;-)
The text was updated successfully, but these errors were encountered: