osa1 / tiny

A terminal IRC client
MIT License
997 stars 59 forks source link

auto sort channels with bouncer #375

Open eoli3n opened 2 years ago

eoli3n commented 2 years ago

With soju in single stream mode, channels are managed on the bouncer. I don't have to set any channel in the tiny config file, they are send by the server.

Problem is that is doesn't always respect the same order when I connect with tiny to the bouncer, then shortcuts change. alt+a for #ansible change to #archlinux for exemple. Is there a way to set in config file something like

channel: sort

To let channel be automatically rearrange in alphabetical order ?

I think this is non trivial, as adding a new channel may modify the whole layout. Any workaround or other solution is welcome

eoli3n commented 2 years ago

I asked server side to be sure : https://todo.sr.ht/~emersion/soju/175

osa1 commented 2 years ago

I think #128 is related. If we provide a way to specify mnemonic when joining, then another channel with the same mnemonic will have its mnemonic changed after joining the new channel. It's not great UX, but I don't see any other way to implement specifying mnemonic of a channel.