Commit graph

119 commits

Author SHA1 Message Date
39043eea4f Update version to v2025.06.14
- Brought dependencies up to date
2025-06-14 19:15:29 +10:00
45375c1aec Revert "Add multi-file editor"
This reverts commit 0d5905113e.
2025-06-14 17:59:22 +10:00
2df35a9064 packaging: Bring installation instructions up to date 2024-12-28 18:02:37 +10:00
bfb0d941b0 packaging: Depend on the latest version of fill3
- Dependencies are still working despite making the eris repo use
  uv workspaces.
2024-12-28 17:42:04 +10:00
abf2943d3f packaging: Switch over to pyproject.toml from setup.py 2024-12-19 08:06:07 +10:00
84cb34005e Coding style
- Use if-expressions where possible.
2022-06-29 00:29:22 +10:00
07e0ce9f56 editor: Fix highlighting lines on themes with bright backgrounds
- For bright backgrounds brightening the line doesn't stand out,
  so darken the line instead.
2022-06-28 23:14:49 +10:00
c049aeeee7 editor: Also jump to ends of line with HOME and END 2022-06-28 10:22:48 +10:00
7138a3c08c editor: Color the parts list with the theme
- Can change theme while parts list is showing.
- Added more themes.
- Added a botom dividing line to the parts list.
- Parts aren't always classes or functions.
- Also tidied up theme related code
  - Always using Code class and the TextLexer if theres no lexer
    for the file.
  - Not nesting parse_rgb and charstyle_for_token_type.
2022-06-28 10:11:38 +10:00
04aeacac14 Coding style
- Add a version counter to the text widget.
- Only adding to history if the action changes the version counter.
- Don't recalculate the diff if the version stays the same.
2022-06-23 22:07:21 +10:00
eb5254961b Only recalculate diff after change actions 2022-06-21 19:37:59 +10:00
036b0a8862 Add mode for diff with git index
- Show diff between the working and checked in versions of a file.
2022-06-21 17:30:59 +10:00
aa9c43d0db editor: Always show the cursor 2022-06-13 14:15:43 +10:00
47e303aa3b Coding style
- Rename Editor -> TextEditor
- Rename IDE -> TextFilesEditor
2022-06-12 21:26:58 +10:00
fb8b796172 Remove selection when the text changes 2022-06-12 21:18:41 +10:00
0d5905113e Add multi-file editor 2022-06-12 17:30:14 +10:00
d3e78d91bc Fix parts browser for files with no lexer 2022-06-12 17:27:29 +10:00
5b2021c132 Coding style
- Use staticmethod where possible.
2022-05-28 22:37:57 +10:00
2e96cede00 Coding style
- Use latest versions of dependencies.
  - Portal content can be center aligned.
2022-05-26 14:46:11 +10:00
b171f46259 Coding style
- Remove pass statements.
2022-05-21 00:08:26 +10:00
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
324e3a8c68 Coding style
- lines too long.
- Unnecessary 'if'.
2022-05-13 14:29:26 +10:00
8028f035e2 Don't install pip with apt.
- diff-edit is tested on ubuntu but might work on other linuxes,
  so don't use apt.
- Hopefully pip is installed.
2022-05-13 14:16:29 +10:00
d0a73b89b6 Coding style
- Cleanup and optimize text widget.
  - max_line_length is fully calculated less often.
2022-05-13 10:16:30 +10:00
59314ad325 Add install script 2022-05-12 23:56:47 +10:00
8ed82c768b Update pip install commands to workaround new pip resolver
- lscolors dependency is now a package containing the LSCOLORS
  database and the path_colored function.
- The new pip dependency resolver finds a conflict with fill3 and
  lscolors both depending on termstr, eventhough its the same
  version of termstr??
2022-05-11 23:04:41 +10:00
41120f7e81 editor: Colourise the file name in the header
- Using a dark grey background for contrast with most colors.
2022-04-30 14:17:35 +10:00
01cc47a0e3 Coding style
- Remove redundant list comprehension.
2022-04-30 07:05:36 +10:00
2c850b73f4 Resolving diffs should add to undo history like other change actions 2022-04-30 06:59:58 +10:00
239b2b9aaf editor: Deactivate selections while undoing 2022-04-29 19:51:57 +10:00
80c05a1dfd editor: Do redo the emacs way
- Less surprising for emacs users.
- Safer since doesn't lose any history when editing after undoing.
2022-04-29 19:32:05 +10:00
8b65489577 editor: Add redo command
- Used ctrl-/ because ctrl-y was already taken for paste.
- Must use ctrl-z for undo now.
2022-04-29 11:14:11 +10:00
36450586a4 editor: Add backspace to change actions 2022-04-28 22:21:21 +10:00
2828d34a6a Coding style 2022-04-28 22:20:18 +10:00
2aae3ec730 editor: Only add to undo history when text changes 2022-04-28 22:08:08 +10:00
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