Commit Graph

76 Commits

Author SHA1 Message Date
Isaiah Odhner
62ee8c2fcf Add publishing section to readme 2023-09-16 23:31:08 -04:00
Isaiah Odhner
d229bc4108 Ignore new snapshot testing related files for spell checking 2023-09-14 20:08:00 -04:00
Isaiah Odhner
e288d5d41c Update changelog and readme 2023-09-12 20:50:57 -04:00
Isaiah Odhner
7f91138a63 Use pyfakefs for file dialog tests
- The app's directory structure is not a constant, and shouldn't play into this test. Aside from codebase restructuring, directories like `__pycache__` can come and go.
- Even if a temporary directory were created with files enough to fill the view, the scrollbar would still change based on the folder structure outside of the temporary folder.
- pyfakefs is one way to ensure a consistent view of a folder structure for testing. It allows adding real folders in a readonly way. It's more complicated than I thought it would be going in, since I had to add workarounds for pyfiglet and pytest-textual-snapshot, and handle an edge case in my EnhancedDirectoryTree (which got an error which seems to be swallowed?), not to mention pyfakefs raises an error saying "No such file or directory in the fake filesystem" when actually it's the real directory not existing when trying to add it to the fake filesystem, and VS Code was hiding stack frames and refusing to step into library code, and it turned out that I was resolving the absolute path wrong, but it looked right to me because the only part that was missing was "textual-paint", when, at a glance it seemed present, since the "textual_paint" part was present. Ay-ay-ay!
- I don't know if this will fix the problem I saw where these tests' snapshots all changed with no visual or even structural changes, just the IDs of elements changing. I don't know what caused that.

Oh yeah and this is still actually a problem:
============================================= short test summary info ==============================================
FAILED tests/test_snapshots.py::test_paint_open_dialog[light_unicode] - AttributeError: 'EnhancedDirectoryTree' object has no attribute '_id'. Did you mean: 'id'?
FAILED tests/test_snapshots.py::test_paint_open_dialog[dark_unicode] - AttributeError: 'EnhancedDirectoryTree' object has no attribute '_id'. Did you mean: 'id'?
FAILED tests/test_snapshots.py::test_paint_open_dialog[light_ascii] - AttributeError: 'EnhancedDirectoryTree' object has no attribute '_id'. Did you mean: 'id'?
FAILED tests/test_snapshots.py::test_paint_open_dialog[dark_ascii] - AttributeError: 'EnhancedDirectoryTree' object has no attribute '_id'. Did you mean: 'id'?
FAILED tests/test_snapshots.py::test_paint_save_dialog[light_unicode] - AttributeError: 'EnhancedDirectoryTree' object has no attribute '_id'. Did you mean: 'id'?
FAILED tests/test_snapshots.py::test_paint_save_dialog[dark_unicode] - AttributeError: 'EnhancedDirectoryTree' object has no attribute '_id'. Did you mean: 'id'?
FAILED tests/test_snapshots.py::test_paint_save_dialog[light_ascii] - AttributeError: 'EnhancedDirectoryTree' object has no attribute '_id'. Did you mean: 'id'?
FAILED tests/test_snapshots.py::test_paint_save_dialog[dark_ascii] - AttributeError: 'EnhancedDirectoryTree' object has no attribute '_id'. Did you mean: 'id'?
========================== 8 failed, 56 passed, 1 xfailed, 1 warning in 152.86s (0:02:32) ==========================
It worked when running in debug, but not when running normally.
2023-09-12 19:45:41 -04:00
Isaiah Odhner
d49c144a96 Create script for merging ambr files 2023-09-08 11:28:14 -04:00
Isaiah Odhner
ed97f0afb0 WIP: set up snapshot testing 2023-09-07 15:19:10 -04:00
Isaiah Odhner
220509f33f Sort files in gallery, taking into account X.Y numbers 2023-09-06 13:27:47 -04:00
Isaiah Odhner
ec988c2b4c Prepare v0.2.0 2023-09-05 21:30:54 -04:00
Isaiah Odhner
bcbf877fb8 EmASCIIen directory tree icons in --ascii-only mode 2023-09-04 17:32:36 -04:00
Isaiah Odhner
b75e849c29 Correct instruction for truecolor in XTerm 2023-09-04 13:26:21 -04:00
Isaiah Odhner
833f0fac48 Recommend pipx for installation
Closes https://github.com/1j01/textual-paint/issues/3
2023-09-04 11:35:30 -04:00
Isaiah Odhner
cbc1ab9314 Add linting notes and VS Code extension recommendations 2023-07-24 15:29:44 -04:00
Isaiah Odhner
65fc72bd26 Accept spelling 2023-07-24 15:10:54 -04:00
Isaiah Odhner
2b9e377d7d Check spelling of wallpaper setting code 2023-07-22 01:06:04 -04:00
Isaiah Odhner
08efd46aeb Hide --recode-samples testing info on readme 2023-07-21 16:43:43 -04:00
Isaiah Odhner
c70f3e35e3 Note powershell prompt/TUI clashing bugginess 2023-07-21 01:18:22 -04:00
Isaiah Odhner
aad51d2978 Note Ctrl+V issue in Windows Terminal app 2023-07-20 20:52:44 -04:00
Isaiah Odhner
5bee7f4819 Accept spelling
This is already accepted by the VS Code extension but not by cspell-cli.
I hate when these inscrutable differences crop up.
2023-07-20 17:52:38 -04:00
Isaiah Odhner
ec7986f9dd Add font names for Windows 2023-07-19 01:31:57 -04:00
Isaiah Odhner
1c64fdb78c Fix Python rocket icon showing in dock on macOS after Set As Wallpaper 2023-07-18 18:32:32 -04:00
Isaiah Odhner
e2308c2a91 Add font names for macOS 2023-07-18 14:15:36 -04:00
Isaiah Odhner
eb0f781ca8 Get screen size with tkinter instead
screeninfo caused a bouncing python rocket in the dock on mac, and didn't work.
2023-07-18 14:15:36 -04:00
Isaiah Odhner
7f3fe53d3e Get screen size properly, with screeninfo module 2023-07-18 14:03:51 -04:00
Isaiah Odhner
fece1c48c6 Rasterize before setting as wallpaper
This makes Set As Wallpaper work on Windows 10 and macOS 10.14
2023-07-18 14:03:51 -04:00
Isaiah Odhner
6c1b994598 Smooth over variable getpixel return type, for Pyright 2023-07-15 20:31:02 -04:00
Isaiah Odhner
6f5cee0f7c Disable reportUnknownMemberType Pyright error 2023-07-15 20:27:20 -04:00
Isaiah Odhner
3713e9ed00 Switch color palette to mIRC's palette when saving/opening as mIRC code format 2023-07-12 01:51:57 -04:00
Isaiah Odhner
967801cf17 Prevent digits in document from merging with mIRC color codes
If digits were present in the document, they were concatenated after
the color codes, and they ran together indistinguishably.
This changed the color index numbers that were read back, to potentially
invalid color indices, and lost the digits as part of the document.
It needs the delimiter of the ending escape code to separate the digits.
2023-07-12 01:51:57 -04:00
Isaiah Odhner
da85d319e4 Add mIRC code export support 2023-07-11 04:00:22 -04:00
Isaiah Odhner
6c7d48e49f Disable saving in ICNS format, and update format support list 2023-06-30 21:00:42 -04:00
Isaiah Odhner
2e022bdfe1 Disable saving as JPEG because of low quality 2023-06-30 16:52:13 -04:00
Isaiah Odhner
46e7e9bb30 Embed ANSI data in SVG for perfect round-trip 2023-06-30 14:04:45 -04:00
Isaiah Odhner
e41a7486c4 Fix ignore rule for textual_paint.egg-info
It's in src now.
2023-06-27 20:37:57 -04:00
Isaiah Odhner
2334e168be Disable tracking untranslated strings 2023-06-27 15:33:56 -04:00
Isaiah Odhner
2ed803631b Allow undoing color or character information loss
Of course, this highlights the need to prompt during Save as well,
not just Save As, or to make creating color or character information
impossible depending on the type of file that is open.
2023-06-13 14:50:08 -04:00
Isaiah Odhner
b1951cb555 Note about virtual environments 2023-06-08 23:54:56 -04:00
Isaiah Odhner
d3c060a2f3 Accept spellings 2023-06-04 13:36:05 -04:00
Isaiah Odhner
dba6721164 Inspect properties of DOM nodes 2023-05-28 00:08:12 -04:00
Isaiah Odhner
759991e902 Add DOM inspector panel 2023-05-26 13:04:55 -04:00
Isaiah Odhner
13485b4f79 Sync color grid with HSL state 2023-05-24 23:12:35 -04:00
Isaiah Odhner
058d54643b Wire up luminosity ramp, color field, and color preview state 2023-05-24 22:18:44 -04:00
Isaiah Odhner
b88b5cdfa0 Mention new project: ansi-art-thumbnailer 2023-05-19 22:19:27 -04:00
Isaiah Odhner
4fc5efd34e Use minimum rect size to define character cell size 2023-05-17 23:02:43 -04:00
Isaiah Odhner
8458ccf3c9 Visualize cell bucketing for debug 2023-05-17 20:40:46 -04:00
Isaiah Odhner
3892dc503e WIP: open SVG files saved with the app
Progress!

print
2023-05-17 12:34:09 -04:00
Isaiah Odhner
f00bf63fed Ignore .flf files for spell checking (even though there's no issues) 2023-05-16 20:14:18 -04:00
Isaiah Odhner
e2c5fc9af5 Add docstrings to FIGletFontWriter 2023-05-16 20:14:17 -04:00
Isaiah Odhner
e1245aa9e9 Load FIGlet font format 2023-05-16 20:14:17 -04:00
Isaiah Odhner
024120bc42 Generate FIGlet fonts of NanoTiny 2023-05-16 20:14:00 -04:00
Isaiah Odhner
4dbaf5145e Open and save image files with Pillow 2023-05-15 00:46:08 -04:00