Codi with python comments
stebett opened this issue · comments
First of all, thank you for bringing to us this beautiful piece of code, and this is my first bug report on Git, so sorry if I don't behave correctly, please advise me correctly.
I've installed Codi.vim on neovim, and I discovered that if there is a comment after a line of code, and this comment reaches the 65th column, Codi won't work.
This is an example
print(5) #this is gonna work
print(5) #this is not gonna work because it's way toooooooooo long
I resolved the issue with the command
:g/^[^#]/normal f#i^M
which finds every line not starting with '#' and then finds the '#' character in the line and split the line just before it
Sorry if it has already been reported, I looked for it but I didn't find anything
Thanks for the report!
I can't reproduce this on Vim, but I do have a question about your case.
Does the issue persist if the line is too long, without comments?
For example:
print("incredibly_super_long_string_that_will_be_over_sixty_five_characters")
If the issue persists, then we will have to find a different fix.
No, it doesn't persist this way!
Anyway I couldn't have a big notebook working, but I don't get if it's for an issue or just for the dimension.
I tried commenting every line off the code but the first ones and it still didn't work.
Do you have any suggestion?
P.S. The code is in Python, I tried to wait like an hour but nothing happened
Hmm... I'm not really sure. I currently can't dedicate the time to look into this issue, but I will most certainly welcome any pull requests if you find a solution!