amiorin / vim-project

lcd to the root of the project everytime you BufEnter a file inside a project.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't reuse callbacks

AndrewRayCode opened this issue · comments

If you do this:

Project  '~/thing1' , 'callback'
Project  '~/thing2' , 'callback'
Project  '~/thing3' , 'calback'
Callback 'callback', [ 'CallbackFn' ]

Only you last project shows up in the new window project list.

You can fix it by doing this:

Project  '~/thing1' , 'c1'
Project  '~/thing2' , 'c2'
Project  '~/thing3' , 'c3'
Callback 'c1', [ 'CallbackFn' ]
Callback 'c2', [ 'CallbackFn' ]
Callback 'c3', [ 'CallbackFn' ]

but that's not ideal. seems like you should be able to reuse callbacks

Wait, I think I'm mistaking "callback" for the project key name. Maybe this isn't an issue.