Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move completion code to a separate file | Trygve Aaberge | 2024-02-20 | 1 | -3/+3 |
| | |||||
* | Only reset foreground color in with_color function | Trygve Aaberge | 2024-02-19 | 5 | -23/+23 |
| | | | | | | | The with_color helper is usually used to set only the foreground color (currently all usages), so by only reseting the foreground we keep any existing background color. This fixes the default background on the current buffer in the buflist for muted conversations. | ||||
* | Correctly show reactions with more than 50 users in v3.0.0 | Trygve Aaberge | 2024-02-18 | 2 | -2/+88 |
| | | | | | | | | | | | 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). This is the same fix as in commit 6b388cd9, but for version 3.0.0. | ||||
* | Support files in Slack Connect channels | Trygve Aaberge | 2024-02-18 | 1 | -0/+1 |
| | | | | | | | | | Files uploaded in Slack Connect channels doesn't contain any information, so we have to make a request to files.info in order to get the information to render it. See https://api.slack.com/apis/channels-between-orgs#check_file_info for more info. | ||||
* | Use format_url everywhere a URL is printed | Trygve Aaberge | 2024-02-18 | 1 | -12/+13 |
| | |||||
* | Use the api_cookie value as the `d` cookie if no keys are specified | Trygve Aaberge | 2024-02-18 | 1 | -0/+10 |
| | | | | | | Usually, only the `d` cookie is needed, so this allows you to only specify the value of that cookie without the key if you don't need to set any other cookies. | ||||
* | URL encode cookies if not encoded | Trygve Aaberge | 2024-02-18 | 1 | -0/+11 |
| | | | | | The cookies need to be encoded for the Slack API to accept them, so this makes it work if the config is set with cookies that are not encoded. | ||||
* | Make URL format configurable | Trygve Aaberge | 2024-02-18 | 2 | -2/+16 |
| | |||||
* | Support color rich text elements | Trygve Aaberge | 2024-02-18 | 1 | -0/+15 |
| | |||||
* | Set options value to True if it's set without a value | Trygve Aaberge | 2024-02-18 | 1 | -3/+3 |
| | | | | | | | 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. | ||||
* | Fix ruff lint errors | Trygve Aaberge | 2024-02-18 | 2 | -20/+20 |
| | |||||
* | Format all files with ruff | Trygve Aaberge | 2024-02-18 | 1 | -4/+2 |
| | |||||
* | Make SlackConversation constructor async | Trygve Aaberge | 2024-02-18 | 1 | -1/+1 |
| | | | | | | This is perhaps a bit hacky, but it makes the type checker enforce that we complete the async initialization of SlackConversation instead of getting a runtime exception. | ||||
* | Make conversations.name not async | Trygve Aaberge | 2024-02-18 | 1 | -2/+5 |
| | | | | | This means a lot of methods don't have to be async. It's especially useful for the next commit adding conversations completions. | ||||
* | Fix bug with setting bool config values | Trygve Aaberge | 2024-02-18 | 1 | -1/+1 |
| | |||||
* | Add tests for attachments and fix rendering bugs | Trygve Aaberge | 2024-02-18 | 3 | -5/+680 |
| | |||||
* | Apply code block styles first | Trygve Aaberge | 2024-02-18 | 1 | -0/+56 |
| | | | | | | | It looks better to have the `` characters around the other styles when there's styling inside code blocks. It makes it look a bit worse when theres code blocks inside styled text though. It should really remember the order the styles are opened to close them in the correct order. | ||||
* | Add render blocks tests from old version | Trygve Aaberge | 2024-02-18 | 2 | -0/+386 |
| | |||||
* | Add some basic tests for SlackMessage._unfurl_refs | Trygve Aaberge | 2024-02-18 | 2 | -1/+195 |
| | |||||
* | Support thread hash completion | Trygve Aaberge | 2024-02-18 | 1 | -0/+87 |
| | |||||
* | Use hook_url for http requests when available | Trygve Aaberge | 2024-02-18 | 1 | -46/+133 |
| | |||||
* | Use None instead of 0 for missing http code in HttpError | Trygve Aaberge | 2024-02-18 | 1 | -3/+3 |
| | |||||
* | Use eight digits for the WeeChat version | Trygve Aaberge | 2024-02-18 | 1 | -1/+1 |
| | | | | | It's four parts with two digits each, so it's more consistent to use eight digits even though the first is a zero. | ||||
* | Don't set future result in __await__ | Trygve Aaberge | 2024-02-18 | 3 | -36/+88 |
| | |||||
* | Make Future very similar to asyncio.Future | Trygve Aaberge | 2024-02-18 | 1 | -4/+4 |
| | |||||
* | Print error message on http/api error | Trygve Aaberge | 2024-02-18 | 1 | -4/+4 |
| | |||||
* | Fix async functions returning None and without await never finishing | Trygve Aaberge | 2024-02-18 | 1 | -0/+16 |
| | |||||
* | Make methods work for callbacks | Trygve Aaberge | 2024-02-18 | 3 | -5/+10 |
| | |||||
* | Support multiple HTTP headers | Trygve Aaberge | 2024-02-18 | 1 | -2/+32 |
| | | | | Port 3aa2c79 from master into new. | ||||
* | Remove active_responses | Trygve Aaberge | 2024-02-18 | 1 | -11/+10 |
| | |||||
* | Don't fetch the same user multiple times | Trygve Aaberge | 2024-02-18 | 1 | -3/+5 |
| | |||||
* | Add command to list workspaces | Trygve Aaberge | 2024-02-18 | 1 | -1/+27 |
| | |||||
* | Add command to add workspace | Trygve Aaberge | 2024-02-18 | 1 | -0/+13 |
| | |||||
* | Move import | Trygve Aaberge | 2024-02-18 | 1 | -3/+2 |
| | | | | Not necessary anymore, when __init__.py doesn't import weechat. | ||||
* | Move main out of slack dir | Trygve Aaberge | 2024-02-18 | 1 | -0/+6 |
| | | | | The sys path thing got wrong directory when inside slack dir. | ||||
* | Fix tests after file split | Trygve Aaberge | 2024-02-18 | 4 | -30/+21 |
| | |||||
* | Start on new version of wee-slack | Trygve Aaberge | 2024-02-18 | 6 | -0/+310 |