Damir Jelić

Results 351 comments of Damir Jelić

You need to create a new crate, docs for this can be found in the official Rust docs: https://doc.rust-lang.org/cargo/guide/creating-a-new-project.html#creating-a-new-package. Make sure that the type will be `--lib`. The examples in...

Are you trying to build `weechat-matrix-rs` or are you trying to create your own plugin?

In that case you need to point the env variable `WEECHAT_PLUGIN_FILE` to the `weechat-plugin.h` file you want to use and just call `make install` inside the `weechat-matrix-rs` repository. ```shell $...

> I've tried with and without quotes. Same result: > make > compiled without errors > Then > WEECHAT_PLUGIN_FILE="/thepathIfound/weechat-plugin.h" make install > WEECHAT_PLUGIN_FILE='/thepathIfound/weechat-plugin.h' make install > WEECHAT_PLUGIN_FILE=/thepathIfound/weechat-plugin.h make install >...

This annoyed me too and I did take a brief look how to do this, I didn't find a clear answer so if someone figures this out before me a...

Feel free to open a PR so this doesn't get lost, but yeah shame that it requires nightly. Could you just add some comments explaining what's going on, I know...

Thanks, we'll leave this open in the meantime. Out of interest are you building a plugin using this?

It should™ be feasible though beware that Weechat doesn't support inserting new messages anywhere else besides at the bottom of a buffer, which makes stuff a bit annoying if you...

No, you can modify printed lines, though the highlight state can't be modified sadly. The Python version as well as the Rust version [sort](https://github.com/poljar/weechat-matrix-rs/blob/new-state-store/src/room/mod.rs#L732) the messages in the buffer. Clearing...

Clearing would allow having the correct highlight state, yes. The patch to enable modifying the highlight state is trivial and I should try to get it merged into Weechat one...