mirror of
https://github.com/ihabunek/toot.git
synced 2024-09-29 04:35:54 -04:00
Merge branch 'master' into images
This commit is contained in:
commit
d2ea1f0c77
10
CHANGELOG.md
10
CHANGELOG.md
@ -12,7 +12,7 @@ Changelog
|
|||||||
* Honour user's default visibility set in Mastodon preferences instead of always
|
* Honour user's default visibility set in Mastodon preferences instead of always
|
||||||
defaulting to public visibility (thanks Lexi Winter)
|
defaulting to public visibility (thanks Lexi Winter)
|
||||||
* TUI: Add editing toots (thanks Lexi Winter)
|
* TUI: Add editing toots (thanks Lexi Winter)
|
||||||
* TUI: Fix a bug which made pallette config in settings not work
|
* TUI: Fix a bug which made palette config in settings not work
|
||||||
* TUI: Show edit datetime in status detail (thanks Lexi Winter)
|
* TUI: Show edit datetime in status detail (thanks Lexi Winter)
|
||||||
|
|
||||||
**0.40.2 (2023-12-28)**
|
**0.40.2 (2023-12-28)**
|
||||||
@ -49,7 +49,7 @@ mostly preserved, except for cases noted below. Please report any issues.
|
|||||||
list`, `lists remove` subcommands, deprecate `lists`, `lists_accounts`,
|
list`, `lists remove` subcommands, deprecate `lists`, `lists_accounts`,
|
||||||
`lists_add`, `lists_create`, `lists_delete`, `lists_remove` commands.
|
`lists_add`, `lists_create`, `lists_delete`, `lists_remove` commands.
|
||||||
* Add `--json` option to tags and lists commands
|
* Add `--json` option to tags and lists commands
|
||||||
* Add `toot --width` option for setting your prefered terminal width
|
* Add `toot --width` option for setting your preferred terminal width
|
||||||
* Add `--media-viewer` and `--colors` options to `toot tui`. These were
|
* Add `--media-viewer` and `--colors` options to `toot tui`. These were
|
||||||
previously accessible only via settings.
|
previously accessible only via settings.
|
||||||
* TUI: Fix issue where UI did not render until first input (thanks Urwid devs)
|
* TUI: Fix issue where UI did not render until first input (thanks Urwid devs)
|
||||||
@ -144,7 +144,7 @@ mostly preserved, except for cases noted below. Please report any issues.
|
|||||||
* TUI: Hide polls, cards and media attachments for sensitive posts (thanks
|
* TUI: Hide polls, cards and media attachments for sensitive posts (thanks
|
||||||
Daniel Schwarz)
|
Daniel Schwarz)
|
||||||
* TUI: Add bookmarking and bookmark timeline (thanks Daniel Schwarz)
|
* TUI: Add bookmarking and bookmark timeline (thanks Daniel Schwarz)
|
||||||
* TUI: Show status visiblity (thanks Lim Ding Wen)
|
* TUI: Show status visibility (thanks Lim Ding Wen)
|
||||||
* TUI: Reply to original account instead of boosting account (thanks Lim Ding
|
* TUI: Reply to original account instead of boosting account (thanks Lim Ding
|
||||||
Wen)
|
Wen)
|
||||||
* TUI: Refresh screen after exiting browser, required for text browsers (thanks
|
* TUI: Refresh screen after exiting browser, required for text browsers (thanks
|
||||||
@ -172,7 +172,7 @@ mostly preserved, except for cases noted below. Please report any issues.
|
|||||||
|
|
||||||
**0.30.1 (2022-11-30)**
|
**0.30.1 (2022-11-30)**
|
||||||
|
|
||||||
* Remove usage of depreacted `text_url` status field. Fixes posting media
|
* Remove usage of deprecated `text_url` status field. Fixes posting media
|
||||||
without text.
|
without text.
|
||||||
|
|
||||||
**0.30.0 (2022-11-29)**
|
**0.30.0 (2022-11-29)**
|
||||||
@ -225,7 +225,7 @@ mostly preserved, except for cases noted below. Please report any issues.
|
|||||||
(#168)
|
(#168)
|
||||||
* Add `--reverse` option to `toot notifications` (#151)
|
* Add `--reverse` option to `toot notifications` (#151)
|
||||||
* Fix `toot timeline` to respect `--instance` option
|
* Fix `toot timeline` to respect `--instance` option
|
||||||
* TUI: Add opton to pin/save tag timelines (#163, thanks @dlax)
|
* TUI: Add option to pin/save tag timelines (#163, thanks @dlax)
|
||||||
* TUI: Fixed crash on empty timeline (#138, thanks ecs)
|
* TUI: Fixed crash on empty timeline (#138, thanks ecs)
|
||||||
|
|
||||||
**0.26.0 (2020-04-15)**
|
**0.26.0 (2020-04-15)**
|
||||||
|
@ -111,7 +111,7 @@ these rules for you.
|
|||||||
|
|
||||||
#### Run tests before submitting
|
#### Run tests before submitting
|
||||||
|
|
||||||
You can run code and sytle tests by running:
|
You can run code and style tests by running:
|
||||||
|
|
||||||
```
|
```
|
||||||
make test
|
make test
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
changes:
|
changes:
|
||||||
- "Honour user's default visibility set in Mastodon preferences instead of always defaulting to public visibility (thanks Lexi Winter)"
|
- "Honour user's default visibility set in Mastodon preferences instead of always defaulting to public visibility (thanks Lexi Winter)"
|
||||||
- "TUI: Add editing toots (thanks Lexi Winter)"
|
- "TUI: Add editing toots (thanks Lexi Winter)"
|
||||||
- "TUI: Fix a bug which made pallette config in settings not work"
|
- "TUI: Fix a bug which made palette config in settings not work"
|
||||||
- "TUI: Show edit datetime in status detail (thanks Lexi Winter)"
|
- "TUI: Show edit datetime in status detail (thanks Lexi Winter)"
|
||||||
|
|
||||||
0.40.2:
|
0.40.2:
|
||||||
@ -41,7 +41,7 @@
|
|||||||
- "Add `tags followed`, `tags follow`, and `tags unfollow` sub-commands, deprecate `tags_followed`, `tags_follow`, and `tags tags_unfollow`"
|
- "Add `tags followed`, `tags follow`, and `tags unfollow` sub-commands, deprecate `tags_followed`, `tags_follow`, and `tags tags_unfollow`"
|
||||||
- "Add `lists accounts`, `lists add`, `lists create`, `lists delete`, `lists list`, `lists remove` subcommands, deprecate `lists`, `lists_accounts`, `lists_add`, `lists_create`, `lists_delete`, `lists_remove` commands."
|
- "Add `lists accounts`, `lists add`, `lists create`, `lists delete`, `lists list`, `lists remove` subcommands, deprecate `lists`, `lists_accounts`, `lists_add`, `lists_create`, `lists_delete`, `lists_remove` commands."
|
||||||
- "Add `--json` option to tags and lists commands"
|
- "Add `--json` option to tags and lists commands"
|
||||||
- "Add `toot --width` option for setting your prefered terminal width"
|
- "Add `toot --width` option for setting your preferred terminal width"
|
||||||
- "Add `--media-viewer` and `--colors` options to `toot tui`. These were previously accessible only via settings."
|
- "Add `--media-viewer` and `--colors` options to `toot tui`. These were previously accessible only via settings."
|
||||||
- "TUI: Fix issue where UI did not render until first input (thanks Urwid devs)"
|
- "TUI: Fix issue where UI did not render until first input (thanks Urwid devs)"
|
||||||
|
|
||||||
@ -133,7 +133,7 @@
|
|||||||
- "TUI: Show an error if attemptint to boost a private status (thanks Lim Ding Wen)"
|
- "TUI: Show an error if attemptint to boost a private status (thanks Lim Ding Wen)"
|
||||||
- "TUI: Hide polls, cards and media attachments for sensitive posts (thanks Daniel Schwarz)"
|
- "TUI: Hide polls, cards and media attachments for sensitive posts (thanks Daniel Schwarz)"
|
||||||
- "TUI: Add bookmarking and bookmark timeline (thanks Daniel Schwarz)"
|
- "TUI: Add bookmarking and bookmark timeline (thanks Daniel Schwarz)"
|
||||||
- "TUI: Show status visiblity (thanks Lim Ding Wen)"
|
- "TUI: Show status visibility (thanks Lim Ding Wen)"
|
||||||
- "TUI: Reply to original account instead of boosting account (thanks Lim Ding Wen)"
|
- "TUI: Reply to original account instead of boosting account (thanks Lim Ding Wen)"
|
||||||
- "TUI: Refresh screen after exiting browser, required for text browsers (thanks Daniel Schwarz)"
|
- "TUI: Refresh screen after exiting browser, required for text browsers (thanks Daniel Schwarz)"
|
||||||
- "TUI: Highlight followed tags (thanks Daniel Schwarz)"
|
- "TUI: Highlight followed tags (thanks Daniel Schwarz)"
|
||||||
@ -161,7 +161,7 @@
|
|||||||
0.30.1:
|
0.30.1:
|
||||||
date: 2022-11-30
|
date: 2022-11-30
|
||||||
changes:
|
changes:
|
||||||
- "Remove usage of depreacted `text_url` status field. Fixes posting media without text."
|
- "Remove usage of deprecated `text_url` status field. Fixes posting media without text."
|
||||||
|
|
||||||
0.30.0:
|
0.30.0:
|
||||||
date: 2022-11-29
|
date: 2022-11-29
|
||||||
@ -208,7 +208,7 @@
|
|||||||
- "TUI: Fix access to public and tag timelines when on private mastodon instances (#168)"
|
- "TUI: Fix access to public and tag timelines when on private mastodon instances (#168)"
|
||||||
- "Add `--reverse` option to `toot notifications` (#151)"
|
- "Add `--reverse` option to `toot notifications` (#151)"
|
||||||
- "Fix `toot timeline` to respect `--instance` option"
|
- "Fix `toot timeline` to respect `--instance` option"
|
||||||
- "TUI: Add opton to pin/save tag timelines (#163, thanks @dlax)"
|
- "TUI: Add option to pin/save tag timelines (#163, thanks @dlax)"
|
||||||
- "TUI: Fixed crash on empty timeline (#138, thanks ecs)"
|
- "TUI: Fixed crash on empty timeline (#138, thanks ecs)"
|
||||||
|
|
||||||
0.26.0:
|
0.26.0:
|
||||||
|
@ -12,7 +12,7 @@ Changelog
|
|||||||
* Honour user's default visibility set in Mastodon preferences instead of always
|
* Honour user's default visibility set in Mastodon preferences instead of always
|
||||||
defaulting to public visibility (thanks Lexi Winter)
|
defaulting to public visibility (thanks Lexi Winter)
|
||||||
* TUI: Add editing toots (thanks Lexi Winter)
|
* TUI: Add editing toots (thanks Lexi Winter)
|
||||||
* TUI: Fix a bug which made pallette config in settings not work
|
* TUI: Fix a bug which made palette config in settings not work
|
||||||
* TUI: Show edit datetime in status detail (thanks Lexi Winter)
|
* TUI: Show edit datetime in status detail (thanks Lexi Winter)
|
||||||
|
|
||||||
**0.40.2 (2023-12-28)**
|
**0.40.2 (2023-12-28)**
|
||||||
@ -49,7 +49,7 @@ mostly preserved, except for cases noted below. Please report any issues.
|
|||||||
list`, `lists remove` subcommands, deprecate `lists`, `lists_accounts`,
|
list`, `lists remove` subcommands, deprecate `lists`, `lists_accounts`,
|
||||||
`lists_add`, `lists_create`, `lists_delete`, `lists_remove` commands.
|
`lists_add`, `lists_create`, `lists_delete`, `lists_remove` commands.
|
||||||
* Add `--json` option to tags and lists commands
|
* Add `--json` option to tags and lists commands
|
||||||
* Add `toot --width` option for setting your prefered terminal width
|
* Add `toot --width` option for setting your preferred terminal width
|
||||||
* Add `--media-viewer` and `--colors` options to `toot tui`. These were
|
* Add `--media-viewer` and `--colors` options to `toot tui`. These were
|
||||||
previously accessible only via settings.
|
previously accessible only via settings.
|
||||||
* TUI: Fix issue where UI did not render until first input (thanks Urwid devs)
|
* TUI: Fix issue where UI did not render until first input (thanks Urwid devs)
|
||||||
@ -144,7 +144,7 @@ mostly preserved, except for cases noted below. Please report any issues.
|
|||||||
* TUI: Hide polls, cards and media attachments for sensitive posts (thanks
|
* TUI: Hide polls, cards and media attachments for sensitive posts (thanks
|
||||||
Daniel Schwarz)
|
Daniel Schwarz)
|
||||||
* TUI: Add bookmarking and bookmark timeline (thanks Daniel Schwarz)
|
* TUI: Add bookmarking and bookmark timeline (thanks Daniel Schwarz)
|
||||||
* TUI: Show status visiblity (thanks Lim Ding Wen)
|
* TUI: Show status visibility (thanks Lim Ding Wen)
|
||||||
* TUI: Reply to original account instead of boosting account (thanks Lim Ding
|
* TUI: Reply to original account instead of boosting account (thanks Lim Ding
|
||||||
Wen)
|
Wen)
|
||||||
* TUI: Refresh screen after exiting browser, required for text browsers (thanks
|
* TUI: Refresh screen after exiting browser, required for text browsers (thanks
|
||||||
@ -172,7 +172,7 @@ mostly preserved, except for cases noted below. Please report any issues.
|
|||||||
|
|
||||||
**0.30.1 (2022-11-30)**
|
**0.30.1 (2022-11-30)**
|
||||||
|
|
||||||
* Remove usage of depreacted `text_url` status field. Fixes posting media
|
* Remove usage of deprecated `text_url` status field. Fixes posting media
|
||||||
without text.
|
without text.
|
||||||
|
|
||||||
**0.30.0 (2022-11-29)**
|
**0.30.0 (2022-11-29)**
|
||||||
@ -225,7 +225,7 @@ mostly preserved, except for cases noted below. Please report any issues.
|
|||||||
(#168)
|
(#168)
|
||||||
* Add `--reverse` option to `toot notifications` (#151)
|
* Add `--reverse` option to `toot notifications` (#151)
|
||||||
* Fix `toot timeline` to respect `--instance` option
|
* Fix `toot timeline` to respect `--instance` option
|
||||||
* TUI: Add opton to pin/save tag timelines (#163, thanks @dlax)
|
* TUI: Add option to pin/save tag timelines (#163, thanks @dlax)
|
||||||
* TUI: Fixed crash on empty timeline (#138, thanks ecs)
|
* TUI: Fixed crash on empty timeline (#138, thanks ecs)
|
||||||
|
|
||||||
**0.26.0 (2020-04-15)**
|
**0.26.0 (2020-04-15)**
|
||||||
|
@ -80,9 +80,7 @@ source _env/bin/activate
|
|||||||
# On Windows
|
# On Windows
|
||||||
_env\bin\activate.bat
|
_env\bin\activate.bat
|
||||||
|
|
||||||
pip install --editable .
|
pip install --editable ".[dev,test]"
|
||||||
pip install -r requirements-dev.txt
|
|
||||||
pip install -r requirements-test.txt
|
|
||||||
```
|
```
|
||||||
|
|
||||||
While the virtual env is active, running `toot` will execute the one you checked
|
While the virtual env is active, running `toot` will execute the one you checked
|
||||||
@ -118,7 +116,7 @@ these rules for you.
|
|||||||
|
|
||||||
#### Run tests before submitting
|
#### Run tests before submitting
|
||||||
|
|
||||||
You can run code and sytle tests by running:
|
You can run code and style tests by running:
|
||||||
|
|
||||||
```
|
```
|
||||||
make test
|
make test
|
||||||
|
@ -11,7 +11,7 @@ Toot will look for the settings file at:
|
|||||||
* `~/.config/toot/settings.toml` (Linux & co.)
|
* `~/.config/toot/settings.toml` (Linux & co.)
|
||||||
* `%APPDATA%\toot\settings.toml` (Windows)
|
* `%APPDATA%\toot\settings.toml` (Windows)
|
||||||
|
|
||||||
Toot will respect the `XDG_CONFIG_HOME` environement variable if it's set and
|
Toot will respect the `XDG_CONFIG_HOME` environment variable if it's set and
|
||||||
look for the settings file in `$XDG_CONFIG_HOME/toot` instead of
|
look for the settings file in `$XDG_CONFIG_HOME/toot` instead of
|
||||||
`~/.config/toot`.
|
`~/.config/toot`.
|
||||||
|
|
||||||
@ -82,7 +82,7 @@ By default, TUI operates in 16-color mode which can be changed by setting the
|
|||||||
* `16777216` (24 bit)
|
* `16777216` (24 bit)
|
||||||
|
|
||||||
TUI defines a list of colors which can be customized, currently they can be seen
|
TUI defines a list of colors which can be customized, currently they can be seen
|
||||||
[in the source code](https://github.com/ihabunek/toot/blob/master/toot/tui/constants.py). They can be overriden in the `[tui.palette]` section.
|
[in the source code](https://github.com/ihabunek/toot/blob/master/toot/tui/constants.py). They can be overridden in the `[tui.palette]` section.
|
||||||
|
|
||||||
Each color is defined as a list of upto 5 values:
|
Each color is defined as a list of upto 5 values:
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ def test_whois(app: App, friend: User, run):
|
|||||||
|
|
||||||
|
|
||||||
def test_following(app: App, user: User, friend: User, friend_id, run):
|
def test_following(app: App, user: User, friend: User, friend_id, run):
|
||||||
# Make sure we're not initally following friend
|
# Make sure we're not initially following friend
|
||||||
api.unfollow(app, user, friend_id)
|
api.unfollow(app, user, friend_id)
|
||||||
|
|
||||||
result = run(cli.accounts.following, user.username)
|
result = run(cli.accounts.following, user.username)
|
||||||
@ -85,7 +85,7 @@ def test_following_not_found(run):
|
|||||||
|
|
||||||
|
|
||||||
def test_following_json(app: App, user: User, friend: User, user_id, friend_id, run_json):
|
def test_following_json(app: App, user: User, friend: User, user_id, friend_id, run_json):
|
||||||
# Make sure we're not initally following friend
|
# Make sure we're not initially following friend
|
||||||
api.unfollow(app, user, friend_id)
|
api.unfollow(app, user, friend_id)
|
||||||
|
|
||||||
result = run_json(cli.accounts.following, user.username, "--json")
|
result = run_json(cli.accounts.following, user.username, "--json")
|
||||||
|
@ -8,7 +8,7 @@ from toot.entities import from_dict, Status
|
|||||||
from tests.integration.conftest import TOOT_TEST_BASE_URL, register_account
|
from tests.integration.conftest import TOOT_TEST_BASE_URL, register_account
|
||||||
|
|
||||||
|
|
||||||
# TODO: If fixture is not overriden here, tests fail, not sure why, figure it out
|
# TODO: If fixture is not overridden here, tests fail, not sure why, figure it out
|
||||||
@pytest.fixture(scope="module")
|
@pytest.fixture(scope="module")
|
||||||
def user(app):
|
def user(app):
|
||||||
return register_account(app)
|
return register_account(app)
|
||||||
|
@ -46,7 +46,7 @@ PALETTE = [
|
|||||||
('shortcut_highlight', 'white,bold', '', 'bold'),
|
('shortcut_highlight', 'white,bold', '', 'bold'),
|
||||||
('warning', 'light red', ''),
|
('warning', 'light red', ''),
|
||||||
|
|
||||||
# Visiblity
|
# Visibility
|
||||||
('visibility_public', 'dark gray', ''),
|
('visibility_public', 'dark gray', ''),
|
||||||
('visibility_unlisted', 'white', ''),
|
('visibility_unlisted', 'white', ''),
|
||||||
('visibility_private', 'dark cyan', ''),
|
('visibility_private', 'dark cyan', ''),
|
||||||
|
@ -594,7 +594,7 @@ class StatusListItem(SelectableColumns):
|
|||||||
edited_at = status.original.edited_at
|
edited_at = status.original.edited_at
|
||||||
|
|
||||||
# TODO: hacky implementation to avoid creating conflicts for existing
|
# TODO: hacky implementation to avoid creating conflicts for existing
|
||||||
# pull reuqests, refactor when merged.
|
# pull requests, refactor when merged.
|
||||||
created_at = (
|
created_at = (
|
||||||
time_ago(status.created_at).ljust(3, " ")
|
time_ago(status.created_at).ljust(3, " ")
|
||||||
if relative_datetimes
|
if relative_datetimes
|
||||||
|
Loading…
Reference in New Issue
Block a user