Browse Source

1.0.22 (#190)

* add edit to help

* bump version

* fix so can edit a reply
pull/200/head 1.0.22
Rasmus Lindroth 3 years ago committed by GitHub
parent
commit
404e21ee10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      README.md
  2. 3
      config/help.tmpl
  3. 2
      main.go
  4. 2
      ui/composeview.go

6
README.md

@ -89,7 +89,7 @@ Tut is configurable, so you can change things like the colors, the default timel
what image viewer to use and some more. Check out the configuration file to see
all the options.
You find it in `XDG_CONFIG_HOME/tut/config.ini` which usally equals to `~/.config/tut/config.ini`.
You find it in `XDG_CONFIG_HOME/tut/config.ini` which usually equals to `~/.config/tut/config.ini`.
You can find an updated configuration file in this repo named `config.example.ini`.
If there are any new configurations options you can copy them frome that file.
@ -122,11 +122,11 @@ https://pkgs.alpinelinux.org/package/edge/community/x86_64/tut
### Debian
http://packages.azlux.fr/ (I'm not the maintainer)
http://packages.azlux.fr/
### FreeBSD
https://www.freshports.org/net-im/tut (I'm not the maintainer)
https://www.freshports.org/net-im/tut
### openSUSE

3
config/help.tmpl

@ -51,6 +51,9 @@ Here's a list of supported commands.
{{ Color .Style.TextSpecial2 }}{{ Flags "b" }}:compose{{ Flags "-" }}{{ Color .Style.Text }}
Compose a new toot
{{ Color .Style.TextSpecial2 }}{{ Flags "b" }}:edit{{ Flags "-" }}{{ Color .Style.Text }}
Edit one of your toots
{{ Color .Style.TextSpecial2 }}{{ Flags "b" }}:favorited{{ Flags "-" }}{{ Color .Style.Text }}
Lists toots you've favorited

2
main.go

@ -8,7 +8,7 @@ import (
"github.com/rivo/tview"
)
const version = "1.0.21"
const version = "1.0.22"
func main() {
util.SetTerminalTitle("tut")

2
ui/composeview.go

@ -421,7 +421,7 @@ func (cv *ComposeView) Post() {
send.InReplyToID = toot.Reply.ID
}
if toot.Edit != nil && toot.Edit.InReplyToID != nil {
send.InReplyToID = toot.Edit.InReplyToID.(mastodon.ID)
send.InReplyToID = mastodon.ID(toot.Edit.InReplyToID.(string))
}
if toot.Sensitive {
send.Sensitive = true

Loading…
Cancel
Save