Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow specifying mnemonic of a channel when joining #128

Open
osa1 opened this issue Feb 27, 2019 · 1 comment
Open

Allow specifying mnemonic of a channel when joining #128

osa1 opened this issue Feb 27, 2019 · 1 comment
Labels
feature request libtiny_tui Issues/PRs related to the TUI library
Milestone

Comments

@osa1
Copy link
Owner

osa1 commented Feb 27, 2019

Currently when I join to a channel, tiny selects one of the letters in the channel name as the channel's mnemonic. The letter is rendered with an underscore and M-<letter> switches to the channel. I use this all the time, but one problem with this feature is that if I change the order in which I join the channels, or add/remove channels from the join list I get different mnemonics for channels.

I think any algorithm for choosing letters for channels will cause problems, so I think it'd be best if we could allow specifying mnemonic of a channel when joining. For example, maybe something like #join r[u]st to set u as the mnemonic for the channel #rust. (of course this syntax doesn't work because r[u]st is a valid channel name)

I think it'd work if we find a character that is not valid in a channel name, and use it as a prefix for the mnemonic.

@osa1
Copy link
Owner Author

osa1 commented Feb 28, 2019

The RFC says channel names can't contain spaces, control chars, or comma, but using one of these as mnemonic marker won't look good, I think. I think a better idea to actually turn commands into something like command line arguments where you can specify parameters with --param foo or -p foo etc. So for example, join command would take a --mnemonic/-m argument which could be used like join #rust -m u for setting u as the mnemonic for channel #rust.

Relevant: #66

@osa1 osa1 added the libtiny_tui Issues/PRs related to the TUI library label Jan 1, 2020
@osa1 osa1 added this to the v1.0 milestone Dec 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request libtiny_tui Issues/PRs related to the TUI library
Projects
None yet
Development

No branches or pull requests

1 participant