Commit graph

113 commits

Author SHA1 Message Date
c181ab9de9 Coding style.
- Remove all dead code from tests.
2021-10-31 22:22:52 +10:00
2335dec922 Coding style.
- Break out termstr, fill3, sorted_collection and lscolors into
  seperate packages and modules.
2021-10-31 02:21:09 +10:00
7415b2af7d Add missing golden file. 2021-10-19 17:48:41 +10:00
d83bea2ba8 release: Move eris to ubuntu 21.10.
- Update readme.
- php7 -> php8.
- Fix python-coverage.
- Also need python decorator module.
- Replaced Mcrt1 with rotatingtree since Mcrt1 started raising
  a new warning.
2021-10-18 01:40:39 +10:00
42bf4d2582 Rename 'xdg-open' action to 'open'.
- Debian is renaming xdg-open to open.
- Rename 'orient' to 'turn'.
2021-09-23 23:17:04 +10:00
a963dd7377 Make running status color stand out.
- Lime stands out better than blue on a green background.
2021-08-11 14:25:37 +10:00
c91beda9b4 Display wide characters correctly.
- Made termstr's length match the on-screen width.
  - Achieved by adding a zero width character after each wide
    character.
  - This fixes ljust and rjust, so that there is correct padding,
    otherwise Portal appearances aren't the correct width.
- When getting a sub-string containing half a wide character,
  the half character is a space.
- Some wide characters are still broken. e.g. country flags
2021-07-25 23:07:12 +10:00
c4fb3fdfe3 tools: Stop initial blank lines being stripped. 2021-07-25 01:51:40 +10:00
4197cebd1b Combine normal and okay statuses.
- Changed all normal results to ok.
- Normal results were intended for tools that produced info and
  weren't expected to have problem results.
  - Ultimately not worth distinguishing from tools that sometimes
    show problems.
- One less color status makes the summary table simpler.
- Also changed the not-applicable status color to the lighter grey
  that normal used to have.
- Made the success status non-configurable since ok status is the
  only sensible status at the moment.
2021-07-20 01:59:46 +10:00
1d3e44f7ad Can also quit with the escape key.
- Also removed unnecessary color from the help docs.
2021-06-06 00:20:42 +10:00
7ef9cf02d1 release: Keep golden file up to date.
- The mime type of python scripts changed.
2021-05-19 02:14:10 +10:00
3e7d306273 release: Use ubuntu golang for godoc and go vet.
- The github versions weren't installing anymore.
2021-05-19 02:14:10 +10:00
5d553a6542 release: Move to python3.9 2021-05-19 02:14:10 +10:00
2b0fd6b724 Make the placeholder dots darker.
- Makes the white cursor stand out.
2021-05-19 02:14:10 +10:00
77ce5c68b0 Make the summary pane narrower and listing pane wider.
- In portrait mode.
- In the average project there was a bit of wasted space.
  Python files (with lots of statuses) in a subdirectory had
  space left over. They can still be seen with the summary
  pane narrowed.
- Puts emphasis on viewing the listing over the summary pane.
- Contents were often a little too wide for the listing pane
  and now fit.
2021-05-19 02:14:10 +10:00
2da603c5bf Coding style.
- Incorporate gut into tools.
- Remove gut tests which were only useful for developing the old
  implementation.
2021-05-07 21:07:45 +10:00
d471934946 tools: Make python_gut more correct.
- Using the ast module to correctly determine the line numbers
  of the function bodies.
- Should have done it this way in the beginning, but didn't know
  about ast module tracking line numbers.
- No more heuristics.
- Copes with different size indentations.
2021-05-07 19:58:41 +10:00
787c304d06 Files don't need individual license headers.
- All files are licensed by the LICENSE file at root.
- Updated the license to 2021.
- Have kept the license in LS_COLORS since its 3rd party.
2021-04-12 02:25:49 +10:00
445f3ad745 tools: Remove golden file tests for perldoc.
- perldoc output is dependant on the terminal.
  - Don't need golden files for everything.
2020-10-15 13:22:39 +10:00
0cdb5c3a37 More robust parsing of ascii term codes. 2020-10-15 12:17:02 +10:00
bea859f54f Fix broken tests. 2020-10-12 22:45:34 +10:00
7058967134 Update golden file of perldoc output. 2020-10-12 22:29:37 +10:00
c20f5bbb36 Fix missed update of golden file. 2020-05-04 02:15:51 +10:00
4511128c9f Coding style.
- Use new 'cached_property' in python3.8.
2020-04-30 00:35:44 +10:00
310451ae4d Remove log file.
- It was really only for debugging.
- The log would be redundant when eris outputs the log, when run
  without a tty.
2020-04-25 15:18:43 +10:00
d10cd82150 Move to Ubuntu 20.04. 2020-04-25 00:59:49 +10:00
0054c8dfd2 Move to python3.8. 2020-04-24 23:47:12 +10:00
c4fc5a8b10 Fix golden file after status color tweaks. 2020-04-24 23:46:02 +10:00
6ac344c0fa Fix broken test.
- Missed change to golden file when status colors changed.
2020-04-14 01:34:34 +10:00
2704ccc9c3 Load the summary asynchronously for quick startup.
- Interface starts before loading begins.
- Split out summary info into separate storage.
- Fixed iteration of PagedList.
- Not saving partially loaded summary during load.
2020-04-09 11:08:39 +10:00
c9376e2bd3 Let PagedList work with iterators. 2020-03-31 14:50:54 +10:00
9eea42482c Coding style.
- Cleanup old tests.
2020-03-28 23:48:21 +10:00
51489b35cd Make sync_from_filesystem asynchoronous to speed up startup of large projects.
- Fixed viewing projects with no files.
- Changed fill3.Column to make it work with sorted lists.
- Simplified Log class to not need fill3.Column.
- Eris results will be cleared when the tools config changes.
2020-03-28 13:37:07 +10:00
c6f790c35c Optimize change to summary when filesystem changes.
- Was checking all files on any change detected.
- Now adding, deleting or modifing individual rows in response
  to the respective filesystem event.
- html_syntax tool was being run in an infinite loop because it
  triggered the ON_CLOSE_WRITE event.
2020-03-09 14:31:01 +10:00
85013e605a Rename turn action to orient. 2019-12-21 13:01:11 +10:00
15cbe17b5c Rename order action to sort.
- So that turn action can be renamed to orient.
2019-12-21 12:56:53 +10:00
81a1901d38 Center the status bar.
- Without any indicators on the right, the bar can be centered.
2019-12-21 12:50:46 +10:00
4881baf6ef Dropped the ordering indicator.
- Couldn't justify it alone, without the pause indicator too.
- Still get some feedback from the log message when changing order.
2019-12-21 12:43:50 +10:00
048413f09b Remove pause feature.
- Wasn't being used very much.
- The background workers should only be using idle cpu, so shouldn't
  have any outward effect.
- Could also use less workers if necessary.
2019-12-21 12:23:34 +10:00
1cf2fc445c Revert "Move to python3.8.0"
This reverts commit 04fb17cb3f.
- Am seeing a bug where only one worker continues processing
  on python3.8.
- Ubuntu and freedesktop-sdk are still on 3.7.
- Not using any features of 3.8 yet.
- Also removes color from mypy.
2019-12-19 14:47:00 +10:00
4a2f99d795 Coding style.
- Linting.
2019-12-04 18:39:22 +10:00
b2e6ab2c3e Let cache compression type be controlled, including none.
- No compression is good if the filesystem is already compressed.
2019-12-04 12:18:00 +10:00
cb9b0da52a tools: Add color to mypy 2019-11-06 14:19:28 +10:00
04fb17cb3f Move to python3.8.0 2019-11-06 14:07:33 +10:00
3dfb81563c tools: Change coverage tool to work with '.coverage' file.
- Was generating coverage by running a corresponding test file
  for the current file.  Wasn't obvious where test file was.
- This shows coverage if a .coverage file exists which is newer
  than the current file.
- The .coverage file needs to be created independantly. And then
  the reports can be refreshed.
2019-09-09 12:20:56 +10:00
4947327c4b tools: Fix out of date golden file for pydoc. 2019-09-04 16:24:03 +10:00
3a9b4ce361 tools: Add color to perldoc.
- Also showing stdout and stderr in any case.
2019-09-03 21:15:06 +10:00
a0a5e013fe Fix some warnings from tests. 2019-09-02 16:38:38 +10:00
71f8461bc3 Fix truncation of border titles.
- Ellipses weren't always standing in for truncations.
2019-09-01 14:42:37 +10:00
22bffd6748 Simpler interface details.
- Consistent capitalisation.
- No unnecessary colons.
2019-08-28 20:54:56 +10:00