Isaiah Odhner
974bff7d3d
Note about path separators
2023-05-01 14:38:58 -04:00
Isaiah Odhner
a296502529
Update spell checker configuration and accept spellings
...
- Re-ignore moved localization folder
- Ignore textual_paint.egg-info folder
- Enable spell checking in VS Code for file types that are already
checked via the cspell-cli
- Accept new words
2023-05-01 13:39:08 -04:00
Isaiah Odhner
0b6006325e
Resolve all non-strict mode Pyright errors
2023-05-01 13:24:24 -04:00
Isaiah Odhner
2a35778cbd
Add file drop support
2023-05-01 12:31:21 -04:00
Isaiah Odhner
b0c9d1562d
Fix textbox being discarded with (only) pasted text in it
2023-05-01 11:44:47 -04:00
Isaiah Odhner
1a7b6561bd
Simplify usage line in help
2023-05-01 10:51:33 -04:00
Isaiah Odhner
85449524bf
Fix "[filename]" missing, interpreted as markup and ignored
2023-05-01 10:48:54 -04:00
Isaiah Odhner
29376af66c
Make Help > Help Topics show full command-line help, at least
2023-05-01 10:39:21 -04:00
Isaiah Odhner
86d6e99b16
Clean up some things
2023-05-01 10:28:11 -04:00
Isaiah Odhner
f8d042ee66
Space out groups of imports
...
> Imports should be grouped in the following order:
>
> 1. Standard library imports.
> 2. Related third party imports.
> 3. Local application/library specific imports.
>
> You should put a blank line between each group of imports.
I already follow the first practice, as I've done coming from Node.js
2023-04-30 22:51:58 -04:00
Isaiah Odhner
02057c7b36
DRY version number
...
I hope this is cromulent.
2023-04-30 22:45:57 -04:00
Isaiah Odhner
b35544be01
Add some notes to Action class
2023-04-30 22:45:57 -04:00
Isaiah Odhner
c037e1bde4
Add metadata
2023-04-30 21:37:39 -04:00
Isaiah Odhner
7d39d5aaa1
Use built-in open function instead of codecs (which was missing import)
...
open() supports an encoding parameter; codecs.open is obsolete (or at least it is for most cases?)
This is some old code.
2023-04-30 21:05:24 -04:00
Isaiah Odhner
395703502f
Add synonyms for wallpaper modes
2023-04-30 15:54:22 -04:00
Isaiah Odhner
7fdbccaea4
Make wallpaper script use tput consistently
2023-04-30 15:54:19 -04:00
Isaiah Odhner
472b89ae65
Make wallpaper script expect env vars defining the file and mode
2023-04-30 15:54:16 -04:00
Isaiah Odhner
682564b6a8
Replace outdated return & FIXME comment with an assertion
2023-04-30 01:43:38 -04:00
Isaiah Odhner
817b05d291
Add highlights to scroll from candlelight
...
It's not super physical, but it looks better with than without, I think.
2023-04-30 01:06:04 -04:00
Isaiah Odhner
821e583df7
I drew a candle next to the scroll
2023-04-30 01:01:20 -04:00
Isaiah Odhner
8c07d3fc12
Add sample drawing of a scroll
...
X marks the spot, and all that.
2023-04-29 21:17:50 -04:00
Isaiah Odhner
8b220efee8
Update requirements.txt
...
- This includes dependencies that are only for wallpaper support.
- I still don't know when or how my dependencies are getting updated.
2023-04-29 19:48:11 -04:00
Isaiah Odhner
549c70a2d1
Add --version flag to CLI
2023-04-29 17:55:59 -04:00
Isaiah Odhner
1aa7e43068
Add python packaging files
2023-04-29 17:30:46 -04:00
Isaiah Odhner
4d1f57ee6b
Update file formats list
2023-04-29 17:29:06 -04:00
Isaiah Odhner
ceb79bc5aa
Add to known issues list
2023-04-29 17:18:41 -04:00
Isaiah Odhner
2cf3bc2a7d
Clarify known issues
2023-04-29 17:11:47 -04:00
Isaiah Odhner
66222b2384
Use an included sample ANSI file for cat example command
2023-04-29 16:53:38 -04:00
Isaiah Odhner
16d52dcad1
Fix a missing word
2023-04-29 16:52:03 -04:00
Isaiah Odhner
b7bbe4084b
Add missing import for Gio
...
I got GitHub Copilot to guess what the import should be, since I didn't know, and I don't think it was in the original code (as posted).
2023-04-29 16:38:31 -04:00
Isaiah Odhner
5abad1fcb2
Update paths
2023-04-29 13:43:24 -04:00
Isaiah Odhner
c55620dd35
Move package files to folder src/textual_paint/
2023-04-29 12:59:16 -04:00
Isaiah Odhner
1f5457d992
Fix crash with Polygon tool(s), dragging from outside to inside canvas
...
When clicking outside the canvas and dragging and releasing over it,
several tools exhibited issues, which this commit fixes.
- Free-Form Select, Polygon: crash with IndexError
- Select: useless selection created
- Magnifier, Pick Color: returned to last tool before use
2023-04-29 12:43:34 -04:00
Isaiah Odhner
9897266a14
Fix error during undo after redo after undo after resize
...
When you've finally tracked down an issue and to fix it all you have to
do is point the cursor in the right spot and hit tab to accept the AI's
auto completion, it really makes you wonder about proactive AI coding
assistance, and a future with AGI. Or even without any AGI or proactive
AI, just having a gutter view that shows how surprised a language model
is at a given line of code could really work wonders on a problem like
this. It might feel _judgy_, but it could solve problems.
2023-04-29 12:22:32 -04:00
Isaiah Odhner
fffd287ff0
WIP: make resizing the canvas undoable
...
Resize, undo, redo works, but:
Resize, undo, redo, undo errors.
2023-04-28 22:40:00 -04:00
Isaiah Odhner
7d4a463668
Tweak comment
2023-04-28 21:57:02 -04:00
Isaiah Odhner
4fed90c794
Clean up
...
btw backslash was to avoid comment detected as a #region comment
which Pylance complained about not having a respective end comment
2023-04-28 21:54:35 -04:00
Isaiah Odhner
9c1b617440
Fix error undoing ineffective flood fill
2023-04-28 21:54:35 -04:00
Isaiah Odhner
5be895732d
Remove document argument to Action in favor of action.update()
...
I'm probably breaking stuff here, by disabling the region fallback, etc.
2023-04-28 21:31:57 -04:00
Isaiah Odhner
dbf6b78659
Add missing docstrings (both identical for now)
2023-04-28 21:31:57 -04:00
Isaiah Odhner
67015ae1ca
Add a known crash-causing issue
2023-04-28 20:46:38 -04:00
Isaiah Odhner
48a61d9934
Remove unused export
2023-04-28 20:16:44 -04:00
Isaiah Odhner
e5eaef3409
Use new SVG export for wallpaper feature
...
save_screenshot() includes a simulated window frame.
2023-04-28 20:16:44 -04:00
Isaiah Odhner
a05a85b103
Remove extraneous div from SVG output
2023-04-28 20:10:50 -04:00
Isaiah Odhner
785b9daea9
Save as SVG, and better (fuller) HTML
2023-04-28 19:52:52 -04:00
Isaiah Odhner
af14c36179
Save as different file types according to the extension
2023-04-28 19:09:59 -04:00
Isaiah Odhner
05b4f866e3
Rename filename -> file_path
2023-04-28 18:56:08 -04:00
Isaiah Odhner
bd3b99ac32
Fix errant newline in comment
...
It was introduced in a commit where I wasn't able to easily review the
diff, which should have been rather trivial (a23eeaf1dd
)
2023-04-28 18:56:08 -04:00
Isaiah Odhner
93a1d2674f
Clear undos/redos to avoid errors when applying undo actions
2023-04-28 18:37:13 -04:00
Isaiah Odhner
cc2ba1f043
Warn before permanently resizing the canvas
2023-04-28 18:37:13 -04:00