Custom keyboard shortcut per slash command
I found Mattermost to be a great replacement in many cases for traditional UI. It's good way for creating rapid solutions, where we need interface to interact with backend functionality. Also it could be used as the middle way for the UI or great solution for partners/third parties/temporary solutions.
/bankstmts [find] <InvNum/Customer/Amount>
- result is printed in table
- backend gets transaction list from various banks, parse it and store it
- employee can check if customer paid for her invoice/sales order
/report sales <today/date/dateRange>
- returns redash report
/erpsalesdoc [find] <docNum/customer>
- returns table with doc info
- employe can check ie. his daily sales report
/datawarehouse_customer [find] <TIN/phone/e-mail>
- returns table with info about customer from all company systems
(OT)I plan to use it also as a caller (Asterisk) notification system which returns info about calling customer - with Mattermost its piece of cake, you can just focus on backend (I use and can recommend Node-RED as integration platform), later if needed on other frontend.
Giving this as a work tool has one disadvantage - writing commands with params and args.Using command history is a bit helpful.
The solution could be possibility to define keyboard shortcut for slash command which ie. after hitting ctrl+e return "/bankstms find " text.
On OSX I get working apple script combined with keyboard shortcut - which pastes slash command with argument from clipboard (ready to hit enter slash command) - but this is related only to OSX, it requires some knowledge and it works very slow (few seconds).
For now my solution is to use text expander (System Preferences > Keyboard > Text) where I can define ie. "!1" and get "/bankstmts find ".
Requirement: custom keyboard shortcut per slash command (with arg if needed ie. "/bank_stmts find ") with, if it is possible, appending content from clipboard.
If clipboard will be supported, possibility to auto enter command.
Define channel where command should be executed - choose channel name or set to active channel.
Shortcuts should be firstly configured by admin globally.
"The globalShortcut module can register/unregister a global keyboard shortcut with the operating system so that you can customize the operations for various shortcuts." - from https://github.com/electron/electron/blob/master/docs/api/global-shortcut.md#global-shortcut.
"Perform copy and paste operations on the system clipboard." from https://github.com/electron/electron/blob/master/docs/api/clipboard.md#clipboard.
Why the hell this text area is so small? it's hard to write :)