jakewvincent / mkdnflow.nvim

Fluent navigation and management of markdown notebooks
GNU General Public License v3.0
684 stars 41 forks source link

Bug: Can't create new columns in table #211

Closed SebasF1349 closed 5 months ago

SebasF1349 commented 5 months ago

Looks like MkdnTableNewColAfter and MkdnTableNewColBefore are both broken. Everytime I try to use them it shows this error:

vivaldi_zwQboucc1P

Adding rows works as expected. I tried with empty and full columns/tables and I get the same error.

Looking a bit on the error I found that in the line referenced (l 180, tables.lua) there is a vim.api.nvim_win_get_cursor(0) that looks to be returning a list instead of a tuple as the docs say (I'm on latest nvim nightly). But fixing that on my end then throws an error on line 512 as match is nil which looks correct as string:find only returns two values. But I'm very new to lua so I'm probably missing something.

jakewvincent commented 5 months ago

Thanks @SebasF1349. This should be fixed now in the latest update. Let me know if the fix is successful on your end.

SebasF1349 commented 5 months ago

Works perfectly. Thanks a lot!