Commit graph

84 commits

Author SHA1 Message Date
1d37c8b147 Coding style
- Add functions converting between model and screen x-coordinates.
2022-04-27 16:16:49 +10:00
2355358816 editor: Add a class and function browser 2022-04-19 11:23:32 +10:00
7b7faba590 Depend on latest fill3 for fix in termstr.
- Termstr's center method now correctly matches str.
2022-04-18 00:29:31 +10:00
c4be1baca8 Update version to v2022.03.16 2022-03-16 23:57:29 +10:00
13f3334dde Remove out of order warning
- Known crashing bugs fixed.
2022-03-16 23:55:12 +10:00
a5fae0c0d0 Use arrows in connectors
- Arrows are larger and make the color easier to see.
- Arrows point in the direction text is copied when they're pressed.
2022-03-15 21:07:39 +10:00
8c126f9a73 Don't show scrollbars when scroll position is negative 2022-03-15 20:11:32 +10:00
aaa1680dbe Coding style 2022-03-15 18:19:19 +10:00
572d8de8ef Fix scrollbar jumping to the top when no difference in editors 2022-03-15 14:05:56 +10:00
f2ef65afca Revert "Fix crash caused by small negative fraction in scrollbar interval"
This reverts commit 97a211d03b.

- Fixed properly elsewhere.
2022-03-15 14:00:35 +10:00
83b0dcc002 Fix crash when cursor moves off the screen when window resized
- Drawing as much as possible of the highlights.
2022-03-15 11:54:13 +10:00
97a211d03b Fix crash caused by small negative fraction in scrollbar interval
- fill3 now absolutes negative fractions.
2022-03-15 10:30:51 +10:00
365a76c4ed Fix crash when switching to non-existant line
- When switching from an insert area at the bottom of a file.
2022-03-15 10:21:23 +10:00
54f3b94caf Fix horizontal scrollbar on left editor
- Needed to flip the corner space to the left side to match the
  left scrollbar.
2022-03-13 00:02:15 +10:00
7e9585db73 Also switch editors with (ctrl-x, o) 2022-03-12 22:58:27 +10:00
183381df57 Coding style 2022-03-12 17:30:06 +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
938a086188 editor: Fix incorrent max line length
- That optimisation was too optimistic.
2022-03-08 14:08:09 +10:00
d5da66e7a3 editor: Fix slowdown on large files
- Slowdown seen with undo. Each undo needs syntax highlighting
  of everything again.
- Added caches for speed up.
2022-03-08 13:49:57 +10:00
87e62e8570 Fix crashes during scrolling
- Occured due to negative scroll positions or not finding the
  equivalent line in the other editor.
2022-03-08 10:06:47 +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
8b93c3ae4e Update version to v2022.02.23 2022-02-23 23:04:11 +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
922fb2a782 editor: Fix large pastes and handle fast input
- Control characters and escape sequences are separated regardless
  of input speed.
2022-02-13 09:18:05 +10:00
27edc9e797 Coding style
- Let double key commands be specified with tuples.
2022-02-07 21:11:18 +10:00
d5f57f326c Coding style
- Put back function where its meant to be.
2022-02-03 22:58:16 +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
5c0d44df2e Update TODO and BUGS 2022-01-28 15:48:10 +10:00
6254e77275 Coding style
- Remove unnecessary scroll limiting code. Its now done in the
  portal.
2022-01-27 16:57:16 +10:00
9ea41f1181 Update TODO 2022-01-24 23:14:59 +10:00
c419f69d81 editor: Right align left editor using scroll limited portal 2022-01-24 23:10:44 +10:00
972e6144fc editor: Editor is not normally right aligned 2022-01-22 17:17:25 +10:00
9f4d13cd20 Put scrollbars on the side of screen, not middle.
- Left editor's vertical scrollbar on the left
2022-01-21 10:34:07 +10:00
2504dd0cff Right align the left editor 2022-01-21 09:20:57 +10:00
f8a3fc0bff editor: Show a normalized path in header bar
- This generally keeps the path as given but simplifies it if possible.
2022-01-18 18:42:04 +10:00
a4b9c4f61f Update version from v2022.01.03 to v2022.01.18. 2022-01-18 17:01:15 +10:00
dad2a59bca Coding style
- Rename appearance_min to appearance.
2022-01-18 16:37:17 +10:00
45af588792 Coding style
- Rename appearance to appearance_for.
2022-01-18 16:32:58 +10:00
d9e95c1485 editor: Fix all lines to have same background width 2022-01-17 22:22:16 +10:00
b92429f487 Update TODO and BUGS 2022-01-14 14:31:15 +10:00
d57b5a5a9a editor: Correctly syntax highlight based on file type.
- If a file type isn't recognized by pygments, don't syntax highlight.
2022-01-14 11:01:11 +10:00
2876aab6c8 editor: Let ctrl-z also mean undo
- ctrl-z was free and many people would try for ctrl-z first.
2022-01-14 10:06:42 +10:00
0c7f5272ae editor: Not currently using asyncio debug mode. 2022-01-13 21:32:33 +10:00
4dc97d0b9a editor: Don't ring bell during tests 2022-01-13 19:29:27 +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
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