Wykres commitów

966 Commity (images)

Autor SHA1 Wiadomość Data
Daniel Schwarz 9610f76926 Left justify author header when image support is disabled 2024-01-24 19:29:51 -05:00
Daniel Schwarz d1beec7935 Fixed author name / account name on boosted toots 2024-01-22 19:47:22 -05:00
Daniel Schwarz eeb92007d2 Merge branch 'master' into images 2024-01-19 18:09:19 -05:00
Daniel Schwarz ad00304df5 Merge branch 'master' into images 2024-01-19 18:07:22 -05:00
Daniel Schwarz 5343bccb15 Refactored all image code into tui/images.py
All image code is now a soft dependency. If the term-image
and/or pillow libraries are not loaded, the tui will work
fine without displaying images.

Note that tests/test_utils.py still has a dependency on pillow
due to its use of Image for tsting the LRUCache.
2024-01-19 18:04:02 -05:00
Ivan Habunek e1be3a68bb
Merge pull request #466 from danschwarz/scrollbar-update
Updated scroll.py to latest updated version from NomadNet
2024-01-16 11:35:34 +01:00
Daniel Schwarz 0cb2355973 Updated scroll.py to latest updated version from NomadNet
https://github.com/markqvist/NomadNet/blob/master/nomadnet/vendor/Scrollable.py
2024-01-15 21:54:11 -05:00
Daniel Schwarz bdc0c06fbe Converted LineBoxes to RoundedLineBoxes that look nicer 2024-01-10 13:47:09 -05:00
Ivan Habunek a34831a02b
Merge pull request #460 from danschwarz/roundrect
Converted LineBoxes to RoundedLineBoxes that look nicer
2024-01-10 11:47:57 +01:00
Daniel Schwarz 593c95ea62 Converted LineBoxes to RoundedLineBoxes that look nicer 2024-01-09 23:36:35 -05:00
Daniel Schwarz 906cdd013b removed autodetection of image format; now uses cmd line option
--image-format='kitty'|'iterm'|'block' (default is block)
autodetection was causing intermittent phantom character
output to the terminal in some configurations, generally
over SSH connections. Switching to a command line option
eliminates the problematic autodetection code.

As a side effect, EmojiText widget had to be removed.
2024-01-09 23:25:12 -05:00
Daniel Schwarz d2ea1f0c77 Merge branch 'master' into images 2024-01-08 10:34:41 -05:00
Ivan Habunek fb36561923
Update contribution guidelines
txt requirements files were replaced by sections in setup.py

fixes #457
2024-01-07 21:13:26 +01:00
Ivan Habunek fcc7f3b017
Merge pull request #456 from kianmeng/fix-typos
Fix typos
2024-01-07 21:09:17 +01:00
Kian-Meng Ang 2d0089893f Fix typos
Found via `codespell -L fo,te,oll`
2024-01-08 02:59:35 +08:00
Daniel Schwarz 0536331229 Updated for compatiblity with latest 0.41.1 2024-01-06 22:03:35 -05:00
Daniel Schwarz b94c500c9c Merge branch 'master' into images 2024-01-06 13:04:59 -05:00
Ivan Habunek d3d1b0d9a1
Merge pull request #155 from dlax/media-help
Document the [M]edia action
2024-01-04 09:58:14 +01:00
Ivan Habunek fda498d793
Merge pull request #450 from lexiwinter/autoopen-cw
add an option to automatically expand content warnings
2024-01-04 09:47:09 +01:00
Ivan Habunek b4cbeeedeb
Bump version, add changelog 2024-01-02 22:08:06 +01:00
Ivan Habunek 964efc5b4c
Fix bug which causes a crash if palette is not in settings 2024-01-02 22:06:20 +01:00
Ivan Habunek 081bc0459e
Bump version, add changelog 2024-01-02 22:03:31 +01:00
Ivan Habunek 5a26ab4940
Don't access the database in tests
This requires the mastodon instance to be patched so that email
confirmation is not required, but makes it possible to run tests on a
remote instance.
2024-01-02 21:56:51 +01:00
Ivan Habunek db266c563d
Don't set default visibility
This way the visiblility will default to the one in user preferences. By
default this is 'public'.
2024-01-02 21:56:36 +01:00
Ivan Habunek 03035c31a0
Fix warning 2024-01-02 21:02:38 +01:00
Ivan Habunek 7f0692891e
Merge pull request #451 from lexiwinter/edit-toot
tui: allow editing toots
2024-01-02 14:25:20 +01:00
Lexi Winter ec48e8eed8 tui: allow editing toots
Add new [E]dit command to the timeline: opens an existing toot to allow
editing it.  Since this is more or less the same operation as posting a
new toot, extend the StatusComposer view to support this rather than
implementing a new view.

Add a new api method, fetch_status_source(), to implement the
/api/v1/statuses/{id}/source endpoint used to fetch the original post
text.
2024-01-01 14:16:09 +00:00
Ivan Habunek 724f27f860
Remove unused imports 2024-01-01 12:14:15 +01:00
Ivan Habunek d1fe0ca92d
Replace sleeps in tests with retries 2024-01-01 12:12:08 +01:00
Ivan Habunek 301c8d21df
Add test util function for retrying tests 2024-01-01 11:14:04 +01:00
Ivan Habunek 3a147a5ea0
Move Run type alias to conftest
It's only used in tests
2024-01-01 09:52:15 +01:00
Ivan Habunek 84e75347e0
Make palettes work again 2023-12-31 21:29:06 +01:00
Lexi Winter 1ed129f5dd tui: add --always-show-sensitive option
When enabled, this option expands toots with content warnings
automatically, instead of requiring the user to press 'S'.
2023-12-31 18:54:56 +00:00
Lexi Winter f394d78c1e tui: keep CW note after opening toot
Continue to display 'Marked as sensitive' in the toot view even after
the CW has been opened.  This matches the behaviour of other clients,
and is useful to see because it might affect whether you want to boost
the toot or not (for example).
2023-12-31 18:46:01 +00:00
Ivan Habunek 2e55ddbe7e
Merge pull request #454 from lexiwinter/use-preferences-visibility
tui: honour user's default visibility preference
2023-12-31 19:28:15 +01:00
Lexi Winter 5dd53b1b9c tui: honour user's default visibility preference
Mastodon allows the user to configure a default visibility which should
apply to all clients.  This setting is returned by the
/api/v1/preferences method.

Fetch the user preferences when the TUI starts, and use it to set the
default visibility when composing a new toot.  The preference can be
overridden by a new command-line option, toot tui --default-visibility=.
If neither the preference nor the option are set, fall back to
get_default_visibility().
2023-12-31 18:20:47 +00:00
Ivan Habunek 4e55fba15e
Merge pull request #452 from lexiwinter/timeline-reply-fix
tui: fix display glitch for reply icon in timeline
2023-12-31 18:23:01 +01:00
Ivan Habunek 5a2f19a04a
Merge pull request #453 from lexiwinter/mark-edited-toots
tui: show edit date in toot view
2023-12-31 18:15:27 +01:00
Lexi Winter d0f05c7ad9 tui: show edit date in toot view
When viewing a toot which has been edited, show the edit date.

While here, fix a bug where the '*' edit marker in the timeline wouldn't
show for retoots because it was checking the retoot status instead of
the original status.
2023-12-31 16:51:02 +00:00
Lexi Winter 741a306c69 tui: fix display glitch for reply icon in timeline
In some fonts, "⤶" (U+2936 ARROW POINTING DOWNWARDS THEN CURVING
LEFTWARDS) may be a double-width character.  To avoid a display glitch
where this overlaps with the boosted icon, print a space after it.
2023-12-31 16:20:03 +00:00
Ivan Habunek 09b29d2b93
Bump version, update changelog 2023-12-28 19:11:28 +01:00
Ivan Habunek 11aaa1dc29
Reinstate toot post --using option 2023-12-28 19:09:48 +01:00
Ivan Habunek 2e2945822a
Add shell completion for instances 2023-12-28 19:02:19 +01:00
Ivan Habunek 22c9f387a1
Bump version, add changelog 2023-12-28 12:20:43 +01:00
Ivan Habunek ca2912fa78
Add toot --as option to override active account 2023-12-28 12:16:43 +01:00
Ivan Habunek 41b77cc9de
Help with list command discovery 2023-12-27 10:17:14 +01:00
Ivan Habunek 556741e864
Don't show warning for [tui.palette] setting section 2023-12-27 10:17:14 +01:00
Ivan Habunek d1d74f47d8
Include description in tag commit message 2023-12-27 10:17:14 +01:00
Ivan Habunek 94d7532929
Set release date 2023-12-27 10:17:14 +01:00
Ivan Habunek eeb90dc21c
Remove --quiet flag 2023-12-27 09:47:51 +01:00