aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Rename globals to GTrygve Aaberge2024-02-185-45/+45
|
* Split into multiple filesTrygve Aaberge2024-02-188-660/+678
|
* Organize imports with isort instead of pyrightTrygve Aaberge2024-02-182-11/+11
|
* Only pass workspace name to configTrygve Aaberge2024-02-181-9/+9
|
* Rename team to workspaceTrygve Aaberge2024-02-181-27/+27
|
* Move slack specific stuff out of WeeChatSectionTrygve Aaberge2024-02-181-34/+37
|
* Improve pylint resultsTrygve Aaberge2024-02-182-3/+10
|
* Don't hard code the shutdown_cb nameTrygve Aaberge2024-02-181-1/+1
|
* Place parent_option lastTrygve Aaberge2024-02-181-3/+2
|
* Add a config section for colorTrygve Aaberge2024-02-181-4/+19
|
* Add workaround for null values in config for weechat < 3.8Trygve Aaberge2024-02-181-4/+37
|
* Change slack_timeout to be in secondsTrygve Aaberge2024-02-181-1/+1
|
* Add proper config options for api_token and api_cookiesTrygve Aaberge2024-02-181-18/+25
|
* Python 3.7 compatibilityTrygve Aaberge2024-02-181-12/+12
|
* Don't create hard coded workspace when loaded from configTrygve Aaberge2024-02-181-4/+8
|
* Add methods for setting config valuesTrygve Aaberge2024-02-181-2/+18
|
* Create workspaces when reading config on startTrygve Aaberge2024-02-181-10/+51
|
* Simplify creating workspace optionTrygve Aaberge2024-02-181-9/+34
|
* Simplify WeeChatOption.valueTrygve Aaberge2024-02-181-9/+6
|
* Support config options with a Literal Union typeTrygve Aaberge2024-02-181-5/+6
|
* Make min/max_value and string_values optionalTrygve Aaberge2024-02-181-13/+12
|
* Add a reference to the parent in workspace configTrygve Aaberge2024-02-181-13/+19
|
* Rename and restructure configTrygve Aaberge2024-02-181-20/+30
|
* Use separate classes for default and workspace config sectionsTrygve Aaberge2024-02-181-14/+18
|
* Add support for parent optionsTrygve Aaberge2024-02-181-60/+53
|
* Add classes for config section and optionTrygve Aaberge2024-02-181-76/+164
|
* Add config optionsTrygve Aaberge2024-02-181-1/+79
|
* Start on new version of wee-slackTrygve Aaberge2024-02-1812-13/+3836
|
* Release v2.10.2v2.10.2Trygve Aaberge2024-02-182-3/+20
|
* Pin major version of black in PipfileTrygve Aaberge2024-02-181-1/+1
| | | | | The formatting can change between major versions of black, so make sure we're always using the same one.
* Make the help text for --no-secretstorage more detailedTrygve Aaberge2023-12-131-1/+4
|
* Add no-secretstorage option for extract_token_from_browser.pyKrzysztof Konopko2023-12-131-15/+23
| | | | | | | | | | | On some Linux systems org.freedesktop.Secret D-Bus service is not available (installed/enabled), typically as a deliberate choice. In those cases `extract_token_from_browser.py` hands for the duration of D-Bus timeout and eventually fails. Note that it does not handle the timeout exception, so a fallback is not used. This commit adds `--no-secretstorage` option which skips using that service.
* Make /thread work on thread repliesTrygve Aaberge2023-10-291-0/+3
| | | | | | | Previously running /thread with a message id for a thread reply (or pressing T on the message in cursor mode, which is the same thing) would open a buffer with just the thread reply. Now the thread buffer for the thread the message is in is opened instead.
* Correctly show reactions with more than 50 usersTrygve Aaberge2023-10-252-4/+33
| | | | | | | | | If a reaction has more than 50 users, the list of users will be cropped to just 50 users. This made the counts wrong since we used the number of users rather than the count property. Fix it by using the count property instead and adding "and others" to the list of users if show_reaction_nicks is enabled (the same as the Slack client shows when you hover over the reaction).
* Support color rich text elementsTrygve Aaberge2023-10-252-0/+19
| | | | Fixes #912
* Update Python versions run in CITrygve Aaberge2023-10-221-10/+10
|
* Upgrade dependencies used in GitHub Actions workflowTrygve Aaberge2023-10-221-2/+2
|
* Simplify GitHub Actions workflowTrygve Aaberge2023-10-221-80/+13
| | | | | | | The caching doesn't seem to help much and it spends a while in the post step for the cache so the total runtime is lower without the cache. Having linting and testing in separate jobs doesn't seem valuable to me either.
* Properly fix rendering of < and >Trygve Aaberge2023-10-183-50/+174
| | | | | | | | I tried to do a fix for this in commit 6478c141, but it only fixed normal text, not e.g. code blocks and attachments. With this I think it should be correct everywhere. Fixes #908
* Handle Firefox containers in extract_token_from_browser.py (#909)Toke Høiland-Jørgensen2023-10-181-7/+42
| | | | | | | | | | | | | | | | | | | | | The extract_token_from_browser.py script does not handle Firefox containers correctly. The container support works by namespacing cookies and local storage with a 'userContextId'. In effect this means that when containers are used, running the script will select the cookie from whichever container happens to be returned first by the database query, which will be combined with the non-containerised instance of the local storage. Add correct handling by adding a new --container flag which specifies a container either by numeric ID or by name, and including the correct userContextId into the cookie query and local storage path (or excluding all cookies from containers from the query if no --container flag is supplied). With this the script can be run like: python extract_token_from_browser.py --container Work firefox to get the Slack auth token for the 'Work' container. Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
* Handle millisecond-level timestamps in attachments (#905)Steinar H. Gunderson2023-10-061-0/+5
| | | | | | | | | | | | | | The Slack documentation claims that the “ts” flag on attachments is “An integer Unix timestamp”. However, evidently it can be in milliseconds (i.e., a timestamp multiplied by 1000), causing out-of-range exceptions when trying to feed them to date.fromtimestamp(). This can cause all messages after such attachments to just vanish, as if they were never there, as parsing stops. Accept both; as a heuristic, the Slack web interface seems to use 100000000000 as a threshold, so we do the same and divide by 1000 if so. Co-authored-by: Steinar H. Gunderson <steinar+git@gunderson.no>
* Mark conversation/thread as read when `/buffer set unread` is runTrygve Aaberge2023-10-011-0/+1
| | | | | It already marks it as read when `/input set_unread_current_buffer` is run, but this command was replaced with `/buffer set unread` in WeeChat 3.8.
* Only open subscribed threads with auto_open_threadsTrygve Aaberge2023-10-011-1/+1
| | | | | | | | | Only subscribed threads can be marked as read. This means that if we open other threads, they will be opened every time you reload wee-slack which is impractical and annoying. Previously, any thread with a highlight (in WeeChat, not necessarily a Slack highlight) was opened. Fixes #803, fixes #830
* Fix rendering of text styles for certain messagesTrygve Aaberge2023-09-291-16/+10
| | | | | | This fixes a regression in commit 74da303 which caused certain messages to include the bold/italic/strikethrough characters (but not the color attributes) even though the style should not be active.
* Release v2.10.1v2.10.1Trygve Aaberge2023-09-222-1/+17
|
* Ignore some websocket messages for unknown channelsTrygve Aaberge2023-09-221-2/+16
|
* Show unread join messages for your own user in hotlistTrygve Aaberge2023-09-221-2/+2
| | | | | | | When you're invited to a new channel, it's useful that it shows up in the hotlist so you notice it. Previously it would not do that until a message was posted to the channel after you joined. Now the join message itself will also be added to the hotlist.
* Fix being invited to a private channel not workingTrygve Aaberge2023-09-221-1/+8
| | | | | | If someone invited you to a private channel, it wouldn't work because the channel would be unknown to wee-slack and the join function didn't create a new channel instance.
* Fix links/refs not being processed in normal blocksTrygve Aaberge2023-09-221-11/+22
| | | | | | | In commit 6478c14 the block rendering was changed to escape `<` and `>`. However, this caused links and refs in normal (not rich_text) blocks to be shown as refs instead of rendered correctly. The correct behavior is to not process refs in rich_text blocks, but do it in normal blocks.
* Make render_emoji_as_string = "both" work with rich_text blocks (#902)melanie witt2023-09-223-1/+106
| | | | | | | | | | | | | | | | | | | Commit 74da30342e8d328fc085d2158e37afda3b908f2c added support for using rich_text blocks to format messages. With this change, the use of replace_string_with_emoji() for text type "emoji" can result in running the replacement twice as replace_string_with_emoji() is also called as one of the last steps in SlackMessage.render(). This works fine in the default case when render_emoji_as_string = "", however render_emoji_as_string = "both" results in output like: 😄 (😄 (:smile:)) instead of the intended: 😄 (:smile:) This excludes blocks rendered earlier in the method from the second call of replace_string_with_emoji().