moment/src
Maze b6773c724e Add keys for direct room switching (#209)
* Add Keys.Rooms.Direct configuration

Keybinding to jump to specific room id in specific account id, or the
first occurence of specific room id in any account.

* Default binding was a bad idea

This example binding was preventing the user from binding Ctrl+G,Ctrl+M
to something else.

* Use const instead of var

* Use showItemAtIndex for direct room switching

This is a simpler implementation that better fits in the existing
codebase and doesn't really have drawbacks.

* Use existing findIndex

From roomList.model. Instead of reinventing it

* Made example not a real room

Earlier I made it point to the Mirage room

* Add instructions for copying room ID

After noticing that these IDs do not match Matrix room addresses, I felt
it was necessary to explain this here, even if it's already explained in
other parts of the configuration file.

* Use .split(" ") for splitting descriptions

This is a more readable implementation.

* Fix shortcuts breaking on config reload

Wrapping HShortcut in Loader makes it destructible.
See d53978f62bab35cdc7e115c50f0571f736814582

* Cleanup showRoomByDescription method, now showById

- "Room description" is a vague, it sounds like this is about
  the room topic too. Instead of having a function that takes a
  string with a certain format, take explicit arguments for the user and
  room ID, this way we don't need comments to explain what's going on
  either

- Reduce indentations and {} noise to make it simpler to read

* More details for direct room binds config comment

Co-authored-by: miruka <miruka@disroot.org>
2021-07-26 04:39:58 -04:00
..
backend Fix missing tail for inline <mx-reply> 2021-07-26 04:39:58 -04:00
config Add keys for direct room switching (#209) 2021-07-26 04:39:58 -04:00
fonts Bundle default theme fonts 2020-03-15 19:08:12 -04:00
gui Add keys for direct room switching (#209) 2021-07-26 04:39:58 -04:00
icons/thin Add ignore user options in member context menues 2021-07-26 04:39:57 -04:00
images Strip non-free ICC profile out from midnight.jpg 2021-03-03 17:12:08 -04:00
sounds Improve default notification sound 2021-03-03 17:14:56 -04:00
themes Improve unread counters theming & default look 2021-03-03 17:14:55 -04:00
clipboard_image_provider.h Add copyright header to source code files 2021-03-03 17:12:08 -04:00
clipboard.h Add copyright header to source code files 2021-03-03 17:12:08 -04:00
main.cpp Update changelog and version for 0.7.1 2021-03-04 22:20:05 -04:00
utils.h Support the http_proxy environment variable 2021-03-03 17:14:57 -04:00