Coder Social home page Coder Social logo

Comments (9)

alin23 avatar alin23 commented on August 16, 2024 1

In the next version (to be released) I made an important change to help with this issue:

When copying more than one file, the optimisation does not happen.

I think that would fix your use case without needing additional permissions, and a lot of complexity on my part.

Would you like to try a beta?

from clop.

alin23 avatar alin23 commented on August 16, 2024 1

So your ideal case would be:

  • Cmd-C: copy and don't trigger Clop
  • Cmd-Opt-V: move what was copied as normal
  • Cmd-V: paste optimised image

There would be no way to paste a non-optimised image.

Am I understanding this correctly? I'd like to try an implementation but I want to be sure I have the requirements right.

from clop.

alin23 avatar alin23 commented on August 16, 2024 1

I decided to not add Accessibility Permissions (for now). Mostly because of time constraints, it took a lot of time to do the priority features and fixes for 2.2.0 and I have to take a break.

I added it to my todo list. Until then, 2.2.0 fixes part of this problem by:

  • ignoring Cmd-C of multiple files
  • having an option to add optimised files from watched dirs to clipboard
  • providing the global Ctrl-Shift-P hotkey for pausing Clop for the next Cmd-C

from clop.

diogox avatar diogox commented on August 16, 2024

I appreciate your answer :)

That sounds like an improvement. While I’d be happy to give it a try, moving one file is still a use case for me.

I prefer my apps to be “set it and forget it”, and this would be an edge case that I’d have to keep in mind.

Tbh my ideal use case would be to have flameshot screenshots automatically optimize when I copy them to the clipboard, and nothing else. But I don’t see a way of doing just that 🤔

Perhaps a hotkey to “Enable clipboard optimization for next one”? But that’s a different request altogether 😄

from clop.

alin23 avatar alin23 commented on August 16, 2024

Curious if you already know about the Pause hotkey in Clop (Ctrl-Shift-P by default). It's the opposite of what you asked for, you press it before copying a file, and Clop ignores that file.

from clop.

diogox avatar diogox commented on August 16, 2024

I’ve seen it, but like I mentioned, I don’t want to have to remember hotkeys for specific tasks.

Even with the opposite hotkey, for enabling optimization for the next clipboard, I would just write a Hammerspoon automation so I wouldn’t have to think about it.

It’s not really feasible to do it with the Pause option :/

from clop.

diogox avatar diogox commented on August 16, 2024

Personally, I would like to only optimize images that are going to leave my computer (when I'm sending them over the network, so that they get sent faster).

I don't know if this would be everyone's use case.

So, at least for me, what you described seems mostly accurate. But if you had a way of telling when Cmd-V is being used locally (in Finder), and not trigger an optimization, that would be even better. As it would allow me to keep the original copy/paste/move functionality, while making image transfers online (mostly screenshots to illustrate a point) a lot more efficient.

Does that make sense?

As I wrote this, I actually remembered another option: If clop could watch a directory (where I can set my screenshot tool to send images automatically), and automatically optimize any new images and add them to the clipboard. That might be a simpler approach. For my use case at least 🤔

from clop.

alin23 avatar alin23 commented on August 16, 2024

It's quite complex to identify a local vs network paste. I'll look into it.

The folder watching part is already implemented, check out Clop's settings under the Images tab.

The watched optimized files are not added to clipboard automatically yet, I have to implement that, but you can at least drag the thumbnail result.

from clop.

diogox avatar diogox commented on August 16, 2024

Thanks for considering this feature, I appreciate it :)

from clop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.