shell icon indicating copy to clipboard operation
shell copied to clipboard

feat: add screenshot functionality and UI components

Open Gitkubikon opened this issue 1 year ago • 13 comments

Gitkubikon avatar Sep 27 '25 00:09 Gitkubikon

Along with the screenrecorder it does feel like its getting pretty out there to taking up too much space, I wonder if tabs or some other way to combine more with the recorder would make sense, I do like having quick access to the screenshots I take even if I just region cap with a keypress.

But maybe a shared capture with a mode switch would be the longterm?

Edit: Did use your PR to give that a spin, not the cleanest layout maybe, but I feel like it works well!

https://github.com/user-attachments/assets/cec5087b-b73f-449d-994a-c7556399095a

PixelKhaos avatar Sep 27 '25 20:09 PixelKhaos

Thanks for taking the time and reviewing it! Yeah, I haven't thought about making it tabs (honestly I just really needed to take some screenshots and ended up implementing it, even if not in the cleanest way xD), but I think that really would be the best long term solution, especially as the quick access panel get's more features, stuff wich can be efficiently combined, should be efficiently combined

Gitkubikon avatar Sep 27 '25 22:09 Gitkubikon

Oh your approach to the unified capture was much cleaner than mine, was going to PR your branch before realizing you did it better anyway already haha I'll do some longer testing of it, but it seems super solid so far, I wonder if adding OCR to this could be a nice extra, albeit more niche?

PixelKhaos avatar Sep 28 '25 10:09 PixelKhaos

Oh, thanks! :D I think that's probably the way to go. Although, for the life of me, I couldn't figure out how to prevent the "No Data" Placeholder from overflowing into the bottom when animating the list height ...

https://github.com/user-attachments/assets/aec4665b-42bf-4edd-9041-9c15b24100e3

EDIT: I also added an invert configuration to the OSD (wich would be natural on Touchpads)

Gitkubikon avatar Sep 28 '25 10:09 Gitkubikon

OCR is a very intriguing Idea, wich I think deserves it's own Issue. I'm thinking of something like Windows Click-To-Do (I think that's how it's called), wich would be overkill and take a lot of effort to implement neatly, but we can start by using the current implementation and simply adding an OCR post-processing step @PixelKhaos

Gitkubikon avatar Sep 28 '25 12:09 Gitkubikon

Oh, thanks! :D I think that's probably the way to go. Although, for the life of me, I couldn't figure out how to prevent the "No Data" Placeholder from overflowing into the bottom when animating the list height ...

Oh yeah, I made a PR on your branch for that, sorted it as far as I can tell :)

OCR is a very intriguing Idea, wich I think deserves it's own Issue. I'm thinking of something like Windows Click-To-Do (I think that's how it's called), wich would be overkill and take a lot of effort to implement neatly, but we can start by using the current implementation and simply adding an OCR post-processing step @PixelKhaos

Yeah I was contemplating whether a separate list since you may want each extracted bit of text as copyable, but maybe a "mixed media" type list works there still, as long as OCR is clarified I guess?

PixelKhaos avatar Sep 29 '25 09:09 PixelKhaos

Great! Merged it :)

Gitkubikon avatar Sep 29 '25 09:09 Gitkubikon

https://github.com/user-attachments/assets/646ab37d-0f99-4ce1-a895-8580a0275a41

Okay, I think it's pretty polished now :)

Gitkubikon avatar Sep 29 '25 11:09 Gitkubikon

So it works pretty solid right now, for the exception, that it doesn't call the caelestia cli anymore when taking areated screenshots and recordings, wich then doesn't dispatch a notification (fullscreen recordings still do that)

Gitkubikon avatar Sep 29 '25 13:09 Gitkubikon

Okay phew, I think I'm quite done with this, it should be pretty solid now @PixelKhaos in combination with https://github.com/caelestia-dots/cli/pull/56

Gitkubikon avatar Sep 30 '25 14:09 Gitkubikon

Okay phew, I think I'm quite done with this, it should be pretty solid now @PixelKhaos in combination with caelestia-dots/cli#56

I assume these latest update(s) depend on the CLI PR?

PixelKhaos avatar Oct 01 '25 00:10 PixelKhaos

Okay phew, I think I'm quite done with this, it should be pretty solid now @PixelKhaos in combination with caelestia-dots/cli#56

I assume these latest update(s) depend on the CLU PR?

Yes exactly, starting from the mention of the CLI

Gitkubikon avatar Oct 01 '25 15:10 Gitkubikon

This PR looks good. I'll merge it with my fork. Thank you for this!

notsoeazy avatar Dec 25 '25 02:12 notsoeazy