Skip to content

feat: channel switcher enhancements #193

Description

@fuguesoft

Enhancements

  1. <C-n> and <C-p> Selection Wrap
  2. Server/DM/Channel Filtering
  3. Fuzzier Switcher Search
  4. Server Channel Priority
  5. Pings to the Front

Selection Wrap

When cursor is over the last item in the list (i.e. list[-1]), <C-n> should
move the cursor to the first item, (i.e. list[0]). Conversely, when the cursor
is over the first item in the list, <C-p> would move the cursor to the last
item.

This could work for the emoji selector, the message search, the
server/channel/member list ...etc. Basically anywhere one would be allowed to
select from a list of options.

Filtering

Sometimes when screen sharing or recording a bug, I need to make use of the
channel switcher. In most cases, I do not want to show off the private real
names of some of my DMs or servers that may display the city I'm located in in
their title.

It would be nice to temporarily filter specific listings from view. Ideally,
this would be done with a configuration where I can pass strings to a list. At
runtime, that list is evaluated and those entries are not shown in the switcher.

I don't know how this could work if the user wants to do this live while the app
is already open. But maybe that could be a future enhancement to the
enhancement.

Fuzzier Search

As of now, I'm able to search <server> <channel> but not <channel>
<server>. Sometimes I find myself typing in general ser- but stopping at the
server name, clearing the field and then retyping the server name first. Nearly
every server I'm in has a #general and I'm sure there are more examples of
shared names.

Letting the user type the server name after the channel name as well as before
could be particularly useful to this usecase.

Server Channel Priority

This is related to the fuzzier search. The issue occurs when desiring to switch
to a different channel in the same server. Right now, the first category of
channels to choose from are the DMs.

Further, when I type to filter channel names, the shown categories are the
server list in the same order. I think some friction can be avoided by making
that first category a list of the channels in the current server. Then perhaps
the recent channels/servers and then the rest of the server list.

This might be overkill with the existence of pane 2 however.

Pings In The Front

Currently, mentions and pings do not float to the top of the channel switcher
list. I think it could be nice if they were the first thing one saw when they
opened it.

Thanks for reading! ❤️

Meesa Human Ani

  • 100% homegrown. Certified organic
  • Didn't see this issue elsewhere

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions