Commit graph

70 commits

Author SHA1 Message Date
4dc97d0b9a editor: Don't ring bell during tests 2022-01-13 19:29:27 +10:00
ac340dd0ca editor: Ring bell when trying to move cursor out of bounds.
- At the start or end of file.
2022-01-13 14:34:47 +10:00
8b24095d63 editor: Use bell sound.
- Ring bell when no more changes to undo, or when aborting command.
2022-01-13 14:09:55 +10:00
0497a8f7a9 editor: Add the abort command
- For now it only unsets the current selection.
2022-01-13 13:25:00 +10:00
bc32e358a1 editor: Add basic undo command. 2022-01-13 00:51:04 +10:00
2c873cc914 editor: Add corner cases for comment_lines. 2022-01-10 10:58:20 +10:00
975d13594e editor: Add command to comment lines 2022-01-08 17:11:07 +10:00
9cd9fff96c editor: Add tab alignment command 2022-01-08 10:59:29 +10:00
51bfa36a5d Coding style.
- Remove all commented out code.
2022-01-07 18:08:58 +10:00
401005ee3a editor: Fix scrolling crash. 2022-01-07 17:55:16 +10:00
5e23b974f7 editor: Add delete line command. (ctrl-k) 2022-01-07 11:15:30 +10:00
c66f79ea3d editor: Add delete key. 2022-01-07 09:27:29 +10:00
541d541dbf Stop line number display jiggling.
- Made space for column position up to 999.
2022-01-04 11:02:36 +10:00
99339680de Coding style.
- All attributes should be in the __init__.
- Fixed a traceback when pressing ctrl-c as first key.
2022-01-04 10:52:38 +10:00
d8fe0d73a5 Quit the editor with ESC or (ctrl-x, ctrl-c). 2022-01-04 09:21:16 +10:00
ffdf4f3d86 Coding style.
- Consistently use 'with' with open.
2022-01-04 01:10:22 +10:00
4f2e31482b Save the editor with ctrl-x, ctrl-s. 2022-01-04 00:11:59 +10:00
732d68b16a Don't let the cursor go behind the bottom scrollbar. 2022-01-02 23:01:44 +10:00
d6705d55bc Coding style.
- Change to a max line length of 100.
2022-01-01 21:38:40 +10:00
bbe73eff21 Initial commit. 2022-01-01 17:37:20 +10:00