Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 28 12:06
    baggiponte commented #301
  • Sep 25 00:57
    amarakon commented #301
  • Sep 13 14:55
    alerque commented #378
  • Sep 13 14:55
    alerque commented #378
  • Sep 09 16:04
    tnyeanderson commented #378
  • Sep 08 14:32
    baggiponte commented #301
  • Sep 05 16:00
    Hipomenes commented #436
  • Sep 05 15:59
    Hipomenes commented #436
  • Sep 04 12:45
    fmoralesc commented #436
  • Sep 04 03:47
    Hipomenes edited #436
  • Sep 04 03:47
    Hipomenes opened #436
  • Sep 02 09:35
    ccaprani opened #435
  • Aug 23 11:24
    john-cj opened #385
  • Aug 23 08:43
    john-cj opened #384
  • Aug 23 08:39
    john-cj edited #383
  • Aug 23 08:36
    john-cj edited #383
  • Aug 23 08:36
    john-cj opened #383
  • Aug 18 09:55

    alerque on master

    fix(ftplugin): Source plugin ea… (compare)

  • Aug 18 09:55
    alerque closed #433
  • Aug 18 09:55
    alerque closed #434
darosio
@darosio
Hi, Does anybody know how to setup bibtex key autocompletion in vim +python3? using vim compiled with python2 support (+python) omnifunc is set to pandoc#completion#Complete but omnifunc appears unset using vim compiled with python 3 support.
Felipe Morales
@fmoralesc
darosio, it is untested with python3, i can probably take a look this week
darosio
@darosio
Thank you. It would be great. I tried to force the setlocal (skipped in autoload/pandoc/completion.vim), but did not work. I use vim for python3 programming and does not like to go back and forth vim-python2 and vim-python3.
Felipe Morales
@fmoralesc
i understand. i've been going back and forth this week fixing python3 compatibility issues in my plugins, it's not been fun. i blame vim's way of supporting python, of course.
i'm taking a look, btw, i might even fix it today.
Felipe Morales
@fmoralesc
@darosio just pushed a fix for master, please confirm.
darosio
@darosio
@fmoralesc thankyou for the fix. I still have problems:
in python2 I got
Error detected while processing function pandoc#completion#Complete..pandoc#bibliographies#GetSuggestions:
line 3:
in python3 I do not get errors, but also no completion.
how can I help you?
darosio
@darosio
in python2 I got
Error detected while processing function pandoc#completion#Complete..pandoc#bibliographies#GetSuggestions:
line 3:
in python3 I do not get errors, but also no completion.
how can I help you?
Felipe Morales
@fmoralesc
oh, i can confirm. first, there was an oversight on my part about python 3. but i also get some error abour vim_pandoc not being defined, I'll see what I can do.
darosio
@darosio
I never wrote a vim plugin, but naively
let s:python = {} looks more python than vim
Felipe Morales
@fmoralesc
viml is pretty similar to python.
darosio
@darosio
Great good to know. Thanks I am eager to test your next push.
Felipe Morales
@fmoralesc
that idiom can be used to create "objects" of a sort. i don't use that much, though.
OK, i think I did it. Please confirm.
darosio
@darosio
Felipe, vim-python2 is back in working conditions.
vim-python3 is running echoing "searching", but then stops with a brief appearance of "pattern not found".
Felipe Morales
@fmoralesc
OK, let me take a look at that.
what is the query? Can you provide the bib file?
darosio
@darosio
what you mean by query? I was editing a manuscript with a bib containing over 2000 items. I try to simplify my testing.
Felipe Morales
@fmoralesc
i mean, what was the item you wanted to complete. like if you had "@Huy" and wanted to complete "@Huygens", the query is "Hyu".
s/Hyu/Huy
darosio
@darosio
I tried different queries, but now i try to reproduce with a simplified bib file, so that I can share more easily.
Felipe Morales
@fmoralesc
I just tried with a small bib, and it worked, so it might be choking on some input with the other file (that's why I asked for the queries). I might need to adapt the completer to handle python3's unicode handling. Also, are you using the "legacy" completer or the "citeproc" based one?
I can reproduce the problem now with the "citeproc" method.
darosio
@darosio
Yep I can confirm it is working on a different (cleaner) machine.
You are also right the non working machine was using citeproc, while the working one was using the legacy
darosio
@darosio
Setting back legacy from citeproc makes things working, and much much faster!
Felipe Morales
@fmoralesc
yeah, legacy is quite fast, but less featureful.
anyway, i'll try to fix the issues with the citeproc mode, it assumes python2's idioms.
darosio
@darosio
Ok Great. I will be away for a while. I can get back tonight (in italy in 2-3 hours from now)
Felipe Morales
@fmoralesc
No problem. I'm in GMT-3 timezone, so I might not be around, but if you are lucky it will be fixed by then.
If "we" are lucky, I should say. lol.
darosio
@darosio
You "we" have been lucky; it works both python2 and 3, through both citeproc and legacy. Thank you. I really appreciated your efforts.