Alexandre Bury

Results 285 comments of Alexandre Bury

Hi again! I think there are two separate potential improvements: * Being able to write views that "pre-process" the given text, for example apply styles to it. * Being able...

On the latest commit there is now a `set_style` option to `TextView`. We'll see later for a more general solution.

Hi, and thanks for the report! The LinearLayout code is definitely a bit messy, especially if we want to play nice with the child views cache; will take a look...

Hi, and thanks for the very detailed report! This kind of insight is super valuable to help improve Cursive. :heart: > Colors I suppose you're using the default `ncurses` backend?...

So on the latest main branch, there is now: * `Cursive::call_on_all_named`, which will call a closure on all views with the same name and type. * `SpannedString::remove_spans` to remove a...

Ah yes these are changes since the last published version. > The cursive-tabs create doesn't build. Getting help from the author. Working with dependencies on a git version is always...

Latest commit should bring back `Cursive::screen_size()` based on the last layout phase. Note that in general, changing the layout based on available size is exactly what `View::layout()` is supposed to...

Ah yes, the `WindowResize` now has a "pre-event" callback set by default to clear the screen, which effectively prevents the event from being seen (or intercepted) by the view tree....

Ah blast, seems like it's ncurses being smart and having its own internal cache, omitting output that it knows "is already there". Only it's not aware of other processes writing...

Hi, and thanks for the report! The `BufferView` from the example may not have been implemented super carefully, especially if it's going to be embedded in a `ScrollView`. It doesn't...