extensions icon indicating copy to clipboard operation
extensions copied to clipboard

Add discord rich presence

Open dimkauzh opened this issue 1 year ago • 18 comments

Check for existing issues

  • [X] Completed

Describe the feature

Hey, so I could you maybe add discord rich presence to Zed? Basicly discord rich presence is this thingy that shows up in your profile (see picture). You could maybe add it as a option so user can enable it if he wants or not. It would be great if it could be added, its pretty easy to implement. Thanks!

Btw sorry that the picture is in Ukrainian a little bit.

If applicable, add mockups / screenshots to help present your vision of the feature

Screenshot 2023-09-10 at 16 34 41

dimkauzh avatar Sep 10 '23 14:09 dimkauzh

It's not a rich presence, but I've added Zed as one of my "Registered Games" in my user settings on Discord.

image

varjmes avatar Sep 24 '23 15:09 varjmes

It's not a rich presence, but I've added Zed as one of my "Registered Games" in my user settings on Discord.

image

Yeah that's possible, thanks for the idea! I'm waiting till zed will get plugin support so I can create a rich presence plugin (or somebody else will do it idk)

dimkauzh avatar Oct 03 '23 18:10 dimkauzh

It's not a rich presence, but I've added Zed as one of my "Registered Games" in my user settings on Discord. > > image

This can be a solution, but this shows only whether Zed is opened or not.

I think the core thing of the Discord Rich Presence is showing which language/line/file/project are you working on for how long, and it can't be done with "Registered Games".

WhiteKr avatar Feb 08 '24 17:02 WhiteKr

It's not a rich presence, but I've added Zed as one of my "Registered Games" in my user settings on Discord. > > image

This can be a solution, but this shows only whether Zed is opened or not.

I think the core thing of the Discord Rich Presence is showing which language/line/file/project are you working on for how long, and it can't be done with "Registered Games".

Yeah it isn't. It's better than nothing I guess.

dimkauzh avatar Feb 09 '24 12:02 dimkauzh

I've made a Discord presence for Xcode few months ago: https://github.com/izyumidev/xcode-discord-rpc. But this uses AppleScripts to look at all the open windows and get the window title to dynamically show what the user is doing.

For Zed, I believe it would be possible to implement Discord presence by implementing it in the app—since it's open source—and letting the user have it turn on or off in the configs. If anyone is not working on this at the moment, I can give it a shot!

izyuumi avatar Feb 20 '24 23:02 izyuumi

I've made a Discord presence for Xcode few months ago: https://github.com/izyumidev/xcode-discord-rpc. But this uses AppleScripts to look at all the open windows and get the window title to dynamically show what the user is doing.

For Zed, I believe it would be possible to implement Discord presence by implementing it in the app—since it's open source—and letting the user have it turn on or off in the configs. If anyone is not working on this at the moment, I can give it a shot!

I will see how I can implement it myself. This issue was just created before Zed was opensource, but now it will be much easier to implement. Well thank you for the idea!

dimkauzh avatar Feb 22 '24 22:02 dimkauzh

@dimkauzh LMK if you need anything! I am also interested in having Discord Rich Presence in Zed.

izyuumi avatar Feb 23 '24 01:02 izyuumi

@dimkauzh LMK if you need anything! I am also interested in having Discord Rich Presence in Zed.

Okay thank you!

dimkauzh avatar Feb 23 '24 08:02 dimkauzh

updates?

RustoMCSpit avatar Mar 01 '24 19:03 RustoMCSpit

updates?

Nope

dimkauzh avatar Mar 06 '24 07:03 dimkauzh

updates?

Waiting for plugin support

dimkauzh avatar Mar 06 '24 07:03 dimkauzh

I'm working on discord presence extension for Zed using LSP (until there'll be better extension support, then i'll rewrite it)

repo: https://github.com/xHyroM/zed-discord-presence

In few hours i'll publish release with the LSP to make everything works, gonna sleep now. image

xhyrom avatar Jul 18 '24 22:07 xhyrom

the extension should work now :+1:

xhyrom avatar Jul 19 '24 17:07 xhyrom

I'm working on discord presence extension for Zed using LSP (until there'll be better extension support, then i'll rewrite it)

repo: https://github.com/xHyroM/zed-discord-presence

In few hours i'll publish release with the LSP to make everything works, gonna sleep now. image

AMAZING WORK DUDE! Good job!!!!

dimkauzh avatar Jul 31 '24 18:07 dimkauzh

AMAZING WORK DUDE! Good job!!!!

Thank you so much! You can give a ⭐ if you want :D

xhyrom avatar Jul 31 '24 18:07 xhyrom

AMAZING WORK DUDE! Good job!!!!

Thank you so much! You can give a ⭐ if you want :D

Almost forgot hehehe

dimkauzh avatar Jul 31 '24 19:07 dimkauzh

Added support for recognizing languages in v0.4.0

image

xhyrom avatar Aug 04 '24 20:08 xhyrom

Added support for recognizing languages in v0.4.0

image

I tried it today, works amazing! Good job mate!

dimkauzh avatar Aug 04 '24 22:08 dimkauzh

Yohoo! We got it!

dimkauzh avatar Aug 26 '24 20:08 dimkauzh