nagydani / loveputer

A console-based Lua-programmable computer for children based on löve2d framework.
GNU General Public License v3.0
3 stars 2 forks source link

Sprint 11 - Text sculptor #38

Closed aldum closed 5 months ago

aldum commented 6 months ago

Text editing experience where the unit of change is a logically consistent atom, and only valid modifications are accepted, hence the file being worked on can never get into a syntactically invalid state. Editing is achieved by moving a highlight around the file, and selecting a portion of the text for modification.

For a proof of concept, create the plaintext version, where there are no syntactic constraints, text is edited line-by-line.

Terminology:

Features:

Workflow and keys: Action Key
Edit highlighted Esc
Finish editing (eval) [save] Enter
Reset edited text to original Esc
Insert original at cursor Shift+Esc
Delete highlighted line/chunk Ctrl+Delete
Ctrl+Y
Move highlight up Up
Move highlight down Down
Scroll up PgUp
Scroll down PgDown
aldum commented 5 months ago

33

nagydani commented 5 months ago

Accepted.