PicoEdit: Screen editor for PicoCalc - ported


#1

Ported the LispBox/LispDeck screen editor to the PicoCalc:

https://github.com/ErsatzMoco/ulisp-picoedit

Please note: The pre-compiled UF2 file in the repo applies to the Pico 2 / 2W only. (Other versions may follow, but currently please compile the repo yourself for use with different boards.)

It seems stable, but please report any bugs. The amber color scheme requires pushing the screen backlight a bit. Please take a look at the notes in README, this editor version is somewhat different from the original LispBox version (and a little more capable since it supports umlauts/special characters).

Have fun!


#2

I tried compiling it on the Pico 1 and runs fine. The header seems weird tho, are the F1 and F3 labels supposed to overlap?


#3

That’s not a bug, it’s a feature! :) Actually I decided to omit the hint for F1/F2 altogether to gain some space for displaying the symbol or file one is working on at the right side of the header which I considered more important.

But that’s a totally arbitrary decision, of course - if you like to change what’s displayed as hints in the header, please see function se:info-line in file “PicoEditLispLibrary.h”. It’s the only place now where the hint line gets printed.

Let me mention another small change I consider one of the most useful things: After pressing F5 you may omit an answer to the request “Symbol name:” and just press ENTER. Then, the program currently in the editor is executed with immediate effect. You can’t see outputs directed to the REPL that way, but apart from that you can test your code while staying within the editor. I think I originally intended to implement F5 that way but then somehow forgot to simply use “eval” without binding the code to a symbol.


#4

Added suitable version of the help system (CTRL-h/ALT-h, please see README on Github).

[Edit]
… and possibility to run the code of a single line in the editor (as opposed to the whole buffer): CTRL-r/ALT-r. Also applies to files/symbols open in “read only” (view) mode.

[Edit 2]
… sorry to bother you again, but you might like it: Added a search function and a selection range mechanism. It’s now possible to copy, paste, delete or execute whole ranges of lines. Please see the README at Github for details. I think we have a useful tiny uLisp IDE now. I will port these features back to the original LispDeck/LispBox editor as well. >>> DONE, see https://github.com/ErsatzMoco/ulisp-lispbox