Addressing issue #63, I have created a patch that changes the data entry model in the tracker.
Now, data entry in Tracker mode is buffered, only applying the change to the cell when you press the Enter key. Additionally, while in data entry mode, the keystokes for negate, increment, and backspace still function. Any other keystrokes will abandon data entry.
Design Choices
- The entry mode for non-zero cells is append, like the existing model, but the cell could be cleared first. I’m in favour of clearing the cell first, personally.
- The increment and decrement wrap around, but it could be changed to clamp them at the limits (-32768 to 32767).
- There is no visual difference between a select mode cell and an data entry mode cell. Maybe reverse the video?
- Pressing the minus key on a non-zero cell in select mode is still an instantaneous change, not engaging the edit buffer. It could be changed so that pressing the minus key enters data entry mode, requiring the Enter keystroke to confirm the negation.
- If you enter a value greater than the limits, the previous input is discarded, e.g.: If you type 33000 (over the 32767 limit), the third zero becomes the new value. If you typed -32769, then -9 would remain. The only sane alternative I can think of would be to block the keystroke, which might be preferable.
I’d like to know which choices you prefer.
Also, let me know if you have any questions or comments about the functionality.