Add a [C]ompose in the main keybyinds showed list
How to edit this status shortcuts? I would like to add a [C]ompose because for me is very unintuitive the word, it's more familiar "post" or "public a new message"
In my config file:
[input.main-compose]
# Compose a new toot
# default=["c", "C"]
hint="[C]ompose"
keys=["c","C", "p"]
[input.status-compose]
hint="[C]ompose"
keys=["c","C","p"]
Hi @moshpirit ,
The area that you are showing in the screenshot is the status area, which shows the contents of a post.
As far as I know, you cannot run the action compose on a post, which kind of makes sense if you think about it - unless you want to make a reply to or edit the post you are currently viewing (for which there are already the shortcuts R and E), why would you want to compose something?
I believe this is why your input.status-compose shortcut does not appear in the list of shortcuts under the post - there is no compose action in the status context.
What you can do instead is use the Leader key functionality, which lets you define a prefix key that can be used for your own custom shortcuts anywhere in the application. Here is an example that use the , (comma) key and p key to compose a new post:
[general]
leader-key=","
[[general.leader-actions]]
type="compose"
shortcut="p"
If you press , (comma) and then p, it will run the compose command for you.
This feature is very nice since it gives you the entire keyboard to create your own shortcuts by using a prefix key that is not mapped by default, such as ,.
Hi, @kchr! Thanks your replying!
Currently, if I press c, C or p, I can create a new post, the issue is that I want tut to show me that possibility because I tend to forget the keybind.
I don't mind that it is in the menu of a post, since it's what appears when I open tut: home timeline with the newest toot opened.