Commit graph

23 commits

Author SHA1 Message Date
20f8d4ad44 Coding style
- Split add_highlights.
- Minimise try-except scope.
- Move test into correct class.
- Make some methods private.
2022-05-16 00:27:46 +10:00
2355358816 editor: Add a class and function browser 2022-04-19 11:23:32 +10:00
3cb877406f Coding style 2022-03-12 14:28:42 +10:00
80048c64f8 Optimize editing large files
- Fixed slow editing on large files.
  - Only calculating appearance of lines that are seen.
  - Not resizing all lines when max line length changes.
- Fast changing of syntax highlighting themes.
- Faster startup, since not highlighting all lines.
2022-03-11 19:20:51 +10:00
7986f1c7d9 editor: Fix syntax highlighting of wide characters in tabs
- Needed a wide character aware expandtabs.
2022-03-06 22:43:21 +10:00
9ac5e0e017 editor: Fix wide characters
- Display correctly.
- Fix cursor movement.
- Work correctly with tabs.
2022-02-23 23:00:21 +10:00
3dd181b27a editor: Allow tabs 2022-02-16 19:40:39 +10:00
c0bdb52391 editor: Add indent and dedent commands 2022-01-31 19:42:59 +10:00
af621a6be0 editor: Fix overwriting mode side effects
- insert_text normally shouldn't always overwrite when in
  overwriting mode.
2022-01-29 10:44:25 +10:00
dfe075b11c editor: Add overwriting mode
- Using latest version of fill3 that recognizes the insert key.
2022-01-28 19:42:55 +10:00
dad2a59bca Coding style
- Rename appearance_min to appearance.
2022-01-18 16:37:17 +10:00
38706e89d4 editor: Remove blanket catch of IndexError in tests
- Occurs when the cursor tries to move out of bounds.
2022-01-13 19:25:18 +10:00
0497a8f7a9 editor: Add the abort command
- For now it only unsets the current selection.
2022-01-13 13:25:00 +10:00
3c1e34ca5e Coding style.
- The temporaries don't save lines anymore.
2022-01-13 08:26:13 +10:00
bc32e358a1 editor: Add basic undo command. 2022-01-13 00:51:04 +10:00
ea1f729b06 Coding style.
- Having a seperate line for every subtest ensures the traceback
  contains the right line number.
2022-01-12 12:09:22 +10:00
6bb8befb2b editor: Stop using sub-tests.
- Sub-tests were hard to use because the traceback doesn't
  include the line number within the test method.
2022-01-10 13:45:28 +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
5e23b974f7 editor: Add delete line command. (ctrl-k) 2022-01-07 11:15:30 +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