I run some analysis, which outputs errors into quickfix list in neovim. I can then navigate to each error and all works fine. What I need next, is that error message contains some ID, which I need to access. So for example, I navigate to some error, and I can get idx from copen get(getqflist({‘idx’: 0}), ‘idx’, 0) which entry it is, but I do not know how to access that error message and take ID from it.
I think the way to do it is to use getqflist function, but I have no idea how.
Example of error message in quickfix list:
srcmain.c|161 col 14| ID 3345654 (#1 of 1): MISRA C-2012 Declaration……
And I need that ID number. I want to do some keyboard shortcut that would run function, that can pull out current idx from quickfix list, form there get the ID, and then use this ID to do some stuff (I need to send to server to excuse that error).