Commit Graph

537 Commits

Author SHA1 Message Date
Isaiah Odhner
d5cc0332b9 Show current zoom level in Custom Zoom dialog 2023-05-01 18:23:18 -04:00
Isaiah Odhner
3145fb7f11 Tweak formatting 2023-05-01 18:23:18 -04:00
Isaiah Odhner
bbc023eb59 Use pipe instead of Union[] 2023-05-01 18:23:18 -04:00
Isaiah Odhner
c67174d4c5 Partially format one file using black
Trying it out, I liked some of it's suggestions, but not others...
I don't think I can commit to formatting the codebase at this point.
2023-05-01 18:23:18 -04:00
Isaiah Odhner
4ff90fa8ec Add ignore comment for error Pylance gives even though pyright doesn't
With Pyright's strict mode disabled, I got zero issues from the CLI,
but got a Problem underline in VS Code from Pylance:
- "Gio" is unknown import symbol Pylance(reportGeneralTypeIssues)

This also silences, on the same line:
- Type of "Gio" is unknown Pylance(reportUnknownVariableType)

gi.repository uses DynamicImporter, which I assume is all the reason
the type checker "needs" to be confused, so I'm not worried about this.
2023-05-01 17:13:05 -04:00
Isaiah Odhner
d8d0871729 Catch any errors getting the clipboard data
I haven't run into this, but since we've got a nice localized string for it...
2023-05-01 16:56:43 -04:00
Isaiah Odhner
a20f2c05d7 Tweak help window title, and add icon 2023-05-01 16:44:09 -04:00
Isaiah Odhner
6367315c2a Clean up / refactor 2023-05-01 16:11:26 -04:00
Isaiah Odhner
873f0f2096 Tweak for technical correctness
This theoretically should behave better in more styling scenarios.
2023-05-01 16:08:55 -04:00
Isaiah Odhner
bec4fb680b Get border dynamically 2023-05-01 16:06:54 -04:00
Isaiah Odhner
6c61830143 Fix minimize behavior 2023-05-01 16:03:15 -04:00
Isaiah Odhner
f54de3f065 Fix help window layout when maximized, breaking minimize behavior
Maximization is more important, so this is still a win, but this does
make minimization stop working and look really stupid.
2023-05-01 15:57:22 -04:00
Isaiah Odhner
f0f9200292 Prevent dragging window if maximized 2023-05-01 15:46:10 -04:00
Isaiah Odhner
facfd6cfe3 Fix potential error if minimize but not maximize present, or visa versa 2023-05-01 15:42:49 -04:00
Isaiah Odhner
c8b042bae6 Add minimize/maximize/restore to help window 2023-05-01 15:34:44 -04:00
Isaiah Odhner
f630026811 Note about linting 2023-05-01 14:47:30 -04:00
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