c3d / db48x

RPL runtime for the DM42 calculator, in the spirit of HP48/49/50
http://48calc.org
GNU Lesser General Public License v3.0
76 stars 10 forks source link

Program mode text selection behavior #1010

Open guirossibrum opened 2 months ago

guirossibrum commented 2 months ago

When you enter an invalid program - syntax error, the program text is selected. While navigating to the area to fix it, the entire text is selected in the meanwhile. I guess this is not intentional. thanks

c3d commented 1 month ago

This is intentional.

Usually, the cases where there is a text range selection, it means that there is some ambiguity regarding where the problem is, e.g. it could be at the beginning or at the end of some area of text.

So the idea is to make it relatively easy to move to either end of the offending code, or to just cut it to paste it somewhere else.

The editor menu has a Csr⇄Sel feature to flip the cursor between beginning and end of the selection, and The Select key can be used to select / deselect.