Web crawling plugin? #91
Unanswered
Nikola-Milovic
asked this question in
Q&A
Replies: 1 comment
-
You can do global variables in Rust. Have a look at once_cell, specifically the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Would it be possible to create something like a web crawling plugin? I read the examples, snooped around the issues and tried my hands at the project. This might be because I am not 100% familiar with Neovim API but I am not sure how to approach my idea. I would need a two-way communication between the Neovim and my plugin, also it would require statefulness as the browser would have to be persisted and kept in memory. But my problem is that rust doesn't have notion of global variables (for the better) and I cannot serialize the browser to keep it as state. My other solution would be to have a infinite loop function that would keep the browse in scope but since Neovim is single-threaded, it's probably not possible to block. Does anyone have some pointers or suggestions on where can I go from here or whether or not this is even possible?
Beta Was this translation helpful? Give feedback.
All reactions