Commit Graph

564 Commits

Author SHA1 Message Date
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
Isaiah Odhner
6ad4b7e442 Refresh canvas when resizing document 2023-04-28 15:27:23 -04:00
Isaiah Odhner
4effc9d599 Compromise on the layout of the image attributes dialog for now 2023-04-28 15:27:15 -04:00
Isaiah Odhner
0754b1f99a Inputs won't show up in the image attributes dialog, within Horizontal 2023-04-28 15:22:49 -04:00
Isaiah Odhner
b273a744f5 Fix horizontal button layout for image attributes dialog 2023-04-28 15:22:27 -04:00
Isaiah Odhner
34d3c79c3b WIP: image attributes dialog
All of this code was autocompleted by GitHub Copilot.
2023-04-28 15:09:09 -04:00
Isaiah Odhner
7b4ba83b42 Split long line into three 2023-04-28 14:32:02 -04:00
Isaiah Odhner
091c9597d7 Replace Style.parse() with direct Style()-style Style construction 2023-04-28 14:27:07 -04:00