p3r7 / repl

access norns' repl from a script
MIT License
2 stars 1 forks source link

FR: Line wrapping or another UI solution for long lines #4

Open xmacex opened 6 months ago

xmacex commented 6 months ago

norns screen is narrow, so stuff like

crow.output[1].action =

is already almost out of the screen. What to do about it?

Ideas

Horizontal scrolling

  1. When the cursor is at 90% screen width, jump the command line horizontally right by a screen width
  2. If cursor reaches right edge, scroll character by character sideways so cursor is glued to the edge

Vertical scrolling

  1. When cursor reaches right edge, scroll the buffer up one line and wrap vertically
  2. Some line feed character e.g. S-RET manually breaks the line, but is not included in the command eventually send to Maiden

Other ideas

  1. Clear screen after each command (except previous line) and provide vertical wrapping
  2. Fisheye GUI design pattern
  3. Smaller font
  4. ...

I found co1=crow.output[1] helpful bud I am really not sure if I am causing trouble for myself...