ChrisPenner / rasa

Extremely modular text editor built in Haskell
GNU General Public License v3.0
616 stars 42 forks source link

Positionable Widgets #62

Open ChrisPenner opened 6 years ago

ChrisPenner commented 6 years ago

cc @jmatsushita

In order to introduce widgets for autocomplete, file browsing and so on, there seems to be a need to extend the widget functionality to render them elsewhere than at the top/bottom/left/right of a View. Allow Widgets rendering to be:

  • floating (overlaid maybe above/below/right/left of a specific position in text?)
  • block (inserted/embedded inside a text block) Seems that making the Widgets depend on a text position would allow to not leak the rendering abstractions. Does that work?