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

fails to use correct project directory for multiple projects #135

Open
pbogren opened this issue Aug 29, 2018 · 3 comments
Open

fails to use correct project directory for multiple projects #135

pbogren opened this issue Aug 29, 2018 · 3 comments

Comments

@pbogren
Copy link

pbogren commented Aug 29, 2018

I'm having issues with using multiple projects.

I tried setting them up like this (btw, notice the lowercase name instead of the Titlecased Name that is suggested in the instructions but doesn't work).:

let proj1 = { 'name': 'General Notes', 'path': '~/Documents/Riv/general',}
let proj2 = { 'name': 'School notes', 'path': '~/Documents/Riv/school',}
let g:riv_projects = [proj1, proj2]

I then use <C-e>wa to bring up the project list. If I choose the first project (general) everything works as expected. But If I choose the second project riv.vim opens a file with the name /index.rst i.e located at the systems' root directory instead of the expected file ~/Documents/Riv/school/index.rst.

I tried renaming the projects to make the school notes the primary project. In this case the school notes worked but the general notes tried to open /index.rst instead. If I add a third project it also uses /index.rst. So it seems the first project works fine, but adding more doesn't work for me.

@pbogren pbogren changed the title fails to set / user correct project directory for multiple projects fails to use correct project directory for multiple projects Aug 29, 2018
@gu-fan
Copy link
Owner

gu-fan commented Oct 17, 2018

my here works fine. try remove the 'name'?

@belang
Copy link

belang commented Aug 28, 2019

I have the same problem. I fix it by changing the code in file "autoload/riv.vim" from
209 let g:_riv_c.main_idx = id
to
209 let g:_riv_c.main_idx = id-1

it works.

@gu-fan
Copy link
Owner

gu-fan commented Sep 22, 2019

well, nice, you can request a PR

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

No branches or pull requests

3 participants