matterhorn-chat / matterhorn

A feature-rich Unix terminal client for the Mattermost chat system
BSD 3-Clause "New" or "Revised" License
1.04k stars 76 forks source link

focus and return to your own username on start #831

Closed crpb closed 4 months ago

crpb commented 4 months ago

Hi,

i have the following problems:

  1. it seems i can't do an /focus $myusername (w/o the '$' of course)
  2. if i have myself in focus with other means and close the application and open it again i don't land in another channel than $myself
    • this works in the official mattermost app
jtdaugherty commented 4 months ago

this works in the official mattermost app

By "this", what behavior are you referring to, exactly? (The official client doesn't have a /focus command, but it does have /msg. But /msg @<my account> didn't work for me in the web client for the server I'm using.)

crpb commented 4 months ago

Hi, i can do ctrl-k which i think is the analogue thing to /focus? image

jtdaugherty commented 4 months ago

Thanks, I didn't know about shortcut!

jtdaugherty commented 4 months ago

This is now mostly resolved by 285a1b191122e2dd8e90156d0c418e1fe806658c. That change makes it possible to use /focus to switch to your own DM channel. For now, I'm not going to change the startup behavior because Matterhorn already doesn't put you in a DM channel at startup.

crpb commented 4 months ago

Thank you. Now i just have to get it to build :P.

EDIT: nvm, got i working :+1: