You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
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
I'm having issues with using multiple projects.
I tried setting them up like this (btw, notice the lowercase
name
instead of the TitlecasedName
that is suggested in the instructions but doesn't work).: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 projectriv.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.The text was updated successfully, but these errors were encountered: