make channel scopes configurable - #68
Conversation
fdlamotte
left a comment
There was a problem hiding this comment.
Interesting ...
I didn't want to implement this because this mapping is not stored on the device, but if there is some interest, and noone is forced to use it, that's good for me
Note that with this implentation, the scope will only be applied in interactive mode when using to, this is not a bad thing (and is in my opinion better) but users should be aware of that
Also, I would give priority to the scope set with % (for that just use elif on l1248)
I'm not sure about the behavior that should be taken when going back to root ... maybe set scope to "" only if current scope corresponds to the one in the dict for the channel we are living ? The user might want to keep is scope while changing destination (would not go further as it would mean using some stack of context and I'd like to let the mechanism as simple as possible)
why doesn't it work when |

This is a quick hack to add per channel scope configuration and I'm probably doing it wrong.
Currently this only works when
default_scopeis not set.Configuration file is straightforward and must be edited manually:
I wish to have similar behavior as with mobile/web app where I can override default scope per channel, even if default scope is set (in experimental settings).
Happy to hear feedback from maintainer(s) and even more happier if anyone else implements this feature as they see fit. Thanks!