PathOfBuilding icon indicating copy to clipboard operation
PathOfBuilding copied to clipboard

Word wrap in Notes

Open Ahks opened this issue 5 years ago • 6 comments

I searched and could not find this.

Similar to the feature in text editors if possible. I would like to be able to resize my PoB window and not have to scroll left and right to read a long line in my Notes.

Thanks for all your work keeping PoB up to date <3

Ahks avatar Oct 27 '20 13:10 Ahks

We really need this :)

jbharvey1 avatar Aug 16 '22 18:08 jbharvey1

This would be very beneficial. Especially for vertical monitor layouts.

darkdex52 avatar Aug 29 '22 00:08 darkdex52

Four years and still not implemented such an obiously needed thing?
Every league I get annoyed by this again and again.
Is this not trivial with lua as it would be with pretty much any other language/framework?

ganego avatar Mar 29 '24 10:03 ganego

The Notes tab is one of those things that is up against the capabilities of the engine, due to how we do colour codes and text rendering and measurement. Evolution of it is pending both that people have spare energy to spend on improving a non-core aspect of the project and having enough runtime support to achieve what's needed. There's a lot of technical debt in the runtime with various priorities; we've only scraped the surface with the recent big initial drop of functionality.

When working on scalable UI and new text rendering, I found it's one of the most complex parts of the project despite the deceptively simple appearance of "just a text area". I've got many ideas of what I want to achieve over time but until human cloning advances the primary gating factor is volunteer effort and capability.

We're essentially trying to build a lot of the same systems that other UI frameworks and browsers provide while still retaining the unique characteristics of our platform that enables PoB to be PoB.

zao avatar Mar 29 '24 11:03 zao

Thank you for the reply. I wrote this shortly before I found your explanation that PoB uses a game engine for its UI and then of course having to implement everything yourself becomes significantly harder than just setting some text field value to 'true'. Though now I'm intrigued to do it :)

ganego avatar Mar 29 '24 11:03 ganego

then of course having to implement everything yourself becomes significantly harder than just setting some text field value to 'true'. Though now I'm intrigued to do it :)

A wrapping function does exist within the code base which should be useable anywhere, but iirc it had issues in notes tab https://github.com/PathOfBuildingCommunity/PathOfBuilding/blob/dev/src/Modules/Main.lua#L1447-L1472

Regisle avatar Mar 29 '24 15:03 Regisle