Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Support displaying of images in msg in the default viewer. #359

Closed
wants to merge 2 commits into from

Conversation

amanagr
Copy link
Member

@amanagr amanagr commented May 19, 2019

No description provided.

@@ -347,3 +350,37 @@ def match_user(user: Any, text: str) -> bool:
if keyword.startswith(text.lower()):
return True
return False


# Plan to open all the images/gifs in a msg
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@neiljp I have mentioned the plan here. Please go through it.

shreyamalviya added a commit to shreyamalviya/zulip-terminal that referenced this pull request Jul 17, 2019
Opens links in default browser (code from zulip#397).
Tries to download and open user uploaded media in default system viewer
(code from zulip#359), otherwise opens link in default browser.
@zulipbot zulipbot added the size: L [Automatic label added by zulipbot] label Jul 17, 2019
shreyamalviya added a commit to shreyamalviya/zulip-terminal that referenced this pull request Jul 17, 2019
Pressing enter on one of the buttons in links popup menu
does one of the following, depending on the link:
- narrow to stream
- narrow to user
- open image in system's default viewer
- open link in system's default browser

Narrows to stream/user and opens images

Narrows to stream/user successfuly. Opens selected image in default viewer.
Gives 401 error while trying to open gifs or videos.

Opens links in default browser

Opens links in default browser (code from zulip#397).
Tries to download and open user uploaded media in default system viewer
(code from zulip#359), otherwise opens link in default browser.

Opens images/gifs/links in default system viewer

To fix: Issue with videos
shreyamalviya added a commit to shreyamalviya/zulip-terminal that referenced this pull request Jul 31, 2019
Pressing enter on one of the buttons in links popup menu
does one of the following, depending on the link:
- narrow to stream
- narrow to user
- open image in system's default viewer
- open link in system's default browser

Narrows to stream/user and opens images

Narrows to stream/user successfuly. Opens selected image in default viewer.
Gives 401 error while trying to open gifs or videos.

Opens links in default browser

Opens links in default browser (code from zulip#397).
Tries to download and open user uploaded media in default system viewer
(code from zulip#359), otherwise opens link in default browser.

Opens images/gifs/links in default system viewer

Opens videos in default viewer
@zulipbot
Copy link
Member

Heads up @amanagr, we just merged some commits that conflict with the changes your made in this pull request! You can review this repository's recent commits to see where the conflicts occur. Please rebase your feature branch against the upstream/master branch and resolve your pull request's merge conflicts accordingly.

Base automatically changed from master to main January 30, 2021 20:30
@neiljp neiljp added this to the Next Release milestone May 16, 2022
@neiljp
Copy link
Collaborator

neiljp commented May 16, 2022

The followup to this was merged with slight adjustments in #1223 🎉

Thanks @amanagr, @preetmishra and @Ezio-Sarthak 👍

@neiljp neiljp closed this May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has conflicts size: L [Automatic label added by zulipbot]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants