intellij-pets icon indicating copy to clipboard operation
intellij-pets copied to clipboard

Pet In Editor Window

Open Unthrottled opened this issue 2 years ago • 8 comments

I would have started a discussion, but that isn't available.

Would be neat if the pet could wander around the entire window, rather than being confined to a tool window.

Unthrottled avatar Feb 15 '23 23:02 Unthrottled

I'd be willing to help with this, just didn't know if it was tried and you ran into issues.

Unthrottled avatar Feb 15 '23 23:02 Unthrottled

hey, yeah it's a great idea! but i don't believe that it's possible to do in intellij (i think?) i think similar to the vscode-pets plugin (https://github.com/tonybaloney/vscode-pets/issues/250), intellij doesn't provide any methods to render stuff around the window :'(

gabrielchl avatar Feb 15 '23 23:02 gabrielchl

I mean you can, it's just the code you have to write is terrible. Java swing development is no fun. However where there is a will there is a way. I've written a plugin that displays gifs in window (wherever) and another that renders a sticker on top of the editor. So it is possible. Don't know how easy it would be to get the pet to stay in just the code editor, but it can be put anywhere in the window :)

https://user-images.githubusercontent.com/15972415/219352033-52ae0cde-8b4a-4a56-a139-5b81d3f600c7.mp4

Unthrottled avatar Feb 16 '23 11:02 Unthrottled

wait what?! didn't know that was even possible, I'll have a look into it when i have time :)

gabrielchl avatar Feb 16 '23 11:02 gabrielchl

Yeah, it's just a matter of finding the right parent component & placing it there.

You can use the UI Inspector to help you find stuff https://plugins.jetbrains.com/docs/intellij/internal-ui-inspector.html

Unthrottled avatar Feb 16 '23 12:02 Unthrottled

I'd love that feature :) @Unthrottled maybe you can link your plugin to get an inspiration where to start with placing? :) Sadly I'm really rusty in java, but maybe a boring weekend for @gabrielchl comes up or something ;) ^^

jk779 avatar Sep 26 '23 12:09 jk779

Wow. Hi, @Unthrottled

The video you attached in your comment on this issue is of a plugin you developed yourself, not a publicly available one, right? If it's not publicly available, that's a bit of a shame. It's certainly piqued my interest, haha!

viaSeunghyun avatar Jul 04 '24 01:07 viaSeunghyun

@viaSeunghyun

No worries fam, it is publicly available. The JetBrains plugin repository is wanting me to do some nonsense (fix internal SDK usage) before I can upload it to the marketplace.

You can find all the plugins here

  • https://github.com/ani-memes/AMII?tab=readme-ov-file#installation
  • https://github.com/doki-theme/doki-theme-jetbrains?tab=readme-ov-file#installation

Unthrottled avatar Jul 04 '24 03:07 Unthrottled