aboutsummaryrefslogtreecommitdiffstats
path: root/slack/commands.py
Commit message (Collapse)AuthorAgeFilesLines
* Add connecting info to list workspaces commandTrygve Aaberge2024-03-291-0/+8
|
* Add number of channels/pvs to list workspaces commandTrygve Aaberge2024-03-291-1/+9
|
* Print error message from reply command if id/index isn't foundTrygve Aaberge2024-02-271-0/+3
|
* Add support for focus events (mouse/cursor mode)Trygve Aaberge2024-02-201-3/+76
|
* Add command `/slack linkarchive`Trygve Aaberge2024-02-201-0/+59
|
* Make api accessible from SlackBufferTrygve Aaberge2024-02-201-5/+5
|
* Move completion code to a separate fileTrygve Aaberge2024-02-201-357/+10
|
* Add command `/slack mute`Trygve Aaberge2024-02-191-1/+31
|
* Refactor command functions to be asyncTrygve Aaberge2024-02-191-39/+26
|
* Support async command functionsTrygve Aaberge2024-02-191-6/+15
|
* Don't require any arguments for `/slack join`Trygve Aaberge2024-02-181-1/+1
| | | | It will use the current buffer if no arguments are given.
* Add command `/slack part`Trygve Aaberge2024-02-181-9/+34
|
* Add command `/slack join`Trygve Aaberge2024-02-181-0/+52
| | | | | For now this only supports known channels, which currently typically means they have to be referenced in a channel with history loaded.
* Include all workspace nicks in nick completionTrygve Aaberge2024-02-181-5/+23
|
* Add command `/slack query` to open DM/MPDM channelsTrygve Aaberge2024-02-181-9/+68
| | | | | | For now this only supports known nicks, i.e. mostly nicks that have posted a message, is mentioned in a message or appears in the nicklist in any of the conversations that's loaded.
* Rename clean option in status to clearTrygve Aaberge2024-02-181-2/+2
|
* Set user statusPierguido Lambri2024-02-181-0/+17
| | | | | | | It's now possible to set and clear the uses status. For now it's not possible to set the status emoji or the status expiration. Signed-off-by: Pierguido Lambri <plambri@redhat.com>
* Set user user presence (#919)Pier2024-02-181-0/+14
| | | | | | | | | | | The user can now set the presence with: /slack presence away Or: /slack presence active Signed-off-by: Pierguido Lambri <plambri@redhat.com>
* Set buffer_pointer to None when buffer doesn't existTrygve Aaberge2024-02-181-11/+13
| | | | | | This enforces us to check that buffer_pointer is set, so we don't accidentally operate on the core buffer, which is what is done when buffer_pointer is an empty string.
* Fix bots with multiple names only being added once to nicklistTrygve Aaberge2024-02-181-1/+1
| | | | | If a bot uses multiple nicks, we have to add all of them to the nicklist, so none of the nicks are shown as offline.
* Don't include external nick suffix when completingTrygve Aaberge2024-02-181-4/+4
| | | | | Mostly because it's a bit simpler not having to handle this suffix when linkifying text.
* Refactor nick handlingTrygve Aaberge2024-02-181-6/+7
|
* Handle messages without a user fieldTrygve Aaberge2024-02-181-2/+2
| | | | | | This can happen in channels shared between workspaces if one of the workspaces are removed. Then messages from users in that workspace will not have a user field anymore, but instead a user_profile field.
* Fix bugs with /slack reply commandTrygve Aaberge2024-02-181-7/+3
|
* Perform nick completion in last spoken orderTrygve Aaberge2024-02-181-11/+45
| | | | | | | | | | | | | | | This makes it complete nicks that spoke last first, and then nicks that haven't spoken, and lastly yourself. This is the same as the IRC plugin does by default. It adds completion of nicks both with and without @, as the default completion of nicks from the nicklist is just alphabetical. Completion of workspace nicks is removed for now. It only completed workspace nicks that are already loaded, so it might be better to complete workspace nicks in the `input_complete_cb` function instead (since functions using `completion_list_add` can't be async, only `input_complete_cb` can).
* Add command /slack replyTrygve Aaberge2024-02-181-0/+21
|
* Set options value to True if it's set without a valueTrygve Aaberge2024-02-181-47/+27
| | | | | | | It became very confusing to use None to represent it being set without a value, so use True instead. If it has a value it will always be a string, so you can still distinguish between an option without a value and an option with a truthy value.
* Format all files with ruffTrygve Aaberge2024-02-181-1/+1
|
* Support completion of all workspace nicksTrygve Aaberge2024-02-181-3/+18
|
* Fix compatibility with WeeChat 2.9Trygve Aaberge2024-02-181-5/+11
|
* Add completion of emoji namesTrygve Aaberge2024-02-181-1/+37
|
* Add completion for conversation namesTrygve Aaberge2024-02-181-8/+17
|
* Support completing @nicks in current bufferTrygve Aaberge2024-02-181-3/+27
| | | | | | | | | | | Adds all known nicks in the current buffer with an @ prefix to the nicks completion. Disables the API search based nick completion for now until it's working properly. It currently doesn't have any context of which conversation/thread you are in, so you often get other nicks than the one you want to complete first. Additionally, it doesn't work with OAuth tokens.
* Use one debug buffer for all debug loggingTrygve Aaberge2024-02-181-6/+4
| | | | | I will implement filtering like the /server raw buffer, instead of having multiple debug buffers.
* Mark as read when switching away from bufferTrygve Aaberge2024-02-181-1/+23
|
* Support opening a debug buffer with all ws messagesTrygve Aaberge2024-02-181-1/+5
|
* Support thread hash completionTrygve Aaberge2024-02-181-5/+42
|
* Support thread buffersTrygve Aaberge2024-02-181-50/+63
|
* Split edgeapi out to separate classTrygve Aaberge2024-02-181-1/+1
| | | | | Since this isn't available for OAuth tokens it's good to have an easy way to see where it's used.
* Support rendering filesTrygve Aaberge2024-02-181-1/+3
|
* Rename add_message and add some TODOsTrygve Aaberge2024-02-181-0/+1
|
* Add command rehistory to rerender historyTrygve Aaberge2024-02-181-0/+9
|
* Add -data option to /slack debug error to print rtm event dataTrygve Aaberge2024-02-181-4/+13
|
* Record uncaught errors and add command to display themTrygve Aaberge2024-02-181-2/+40
|
* Don't allow /slack (dis)connect when connecting/(dis)connectedTrygve Aaberge2024-02-181-21/+49
|
* Log failed async tasks more robustlyTrygve Aaberge2024-02-181-3/+3
|
* Add command /slack disconnectTrygve Aaberge2024-02-181-0/+15
|
* Only connect to all teams in /slack connect when -all is givenTrygve Aaberge2024-02-181-3/+3
|
* Replace some usages of Any with proper typesTrygve Aaberge2024-02-181-3/+3
|
* Fix some mypy specific type issuesTrygve Aaberge2024-02-181-3/+8
|