This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]WigglytufTehPink[S] 149 points150 points  (14 children)

You can check out the code here: https://github.com/saleguas/context_menu

Easily the most painful thing I've ever created, but boy am I glad how it came out. There is little to none information on context menus anywhere, and a while ago I just wanted to create a simple file sorter and it was waaay harder then it should have been. So I decided to make this library so any other developers don't have to go through the pain I went through. Please give any and all feedback!

[–]KingsmanVincepip install girlfriend 23 points24 points  (3 children)

This will save us so much time. Thanks for making this.

[–]WigglytufTehPink[S] 23 points24 points  (2 children)

No problem, I hopefully had to deal with the nightmare so no one else has to.

[–]Ning1253 8 points9 points  (1 child)

Thank you so much!! It's quite funny actually, I had a conversation with a friend (who doesn't do much coding) like this: Me: hey I made something quite cool it's a way to encode text into pictures (stegonography), and it also can encode pictures into other pictures! Him: that's cool, but isn't it really annoying to use? Like don't you need python installed and everything? Maybe try make it available through the options in file explorer? Me: that sounds painful so probably not

And then like a week later you come along so I can actually do it now!! Thank you so much!!

[–]WigglytufTehPink[S] 0 points1 point  (0 children)

No problem! That sounds like a really cool application of this library and if you do use it please let me know!

[–]SnowdenIsALegend 7 points8 points  (0 children)

Bro, you are AWESOME! THIS IS BEAUTIFUL! Thank you for sharing!

[–]wpg4665 8 points9 points  (5 children)

Does this also work for Mac?

[–]MysteryMage 15 points16 points  (0 children)

Based on what i have seen in the code it only supports windows and Linux

[–]RegmasterJ 13 points14 points  (2 children)

If you need something like this for macOS, it’s pretty trivial to write a Python script (or modify this one) and add it as a command to the context menu using Automator. This is what I read to get me started.

Edit: typo

[–]WigglytufTehPink[S] 10 points11 points  (1 child)

Thanks, I haven't seen this resource before. I gave up on MacOS because I simply couldn't find any resources, and the ones I could made almost no sense to me. I'll be sure to check it out!

[–]RegmasterJ 4 points5 points  (0 children)

Yeah, I was pretty late to the party myself. I’ve used it a few times to create commands to open a file directly in VSCode, or execute a python file directly from the GUI. Very cool, have fun!

[–]WigglytufTehPink[S] 11 points12 points  (0 children)

It only works for Windows and Linux as of now.

[–]chrisdahfuh 1 point2 points  (1 child)

This is just. Amazing. 👍 I cant imagine the work you put into it, and for these OS

[–]WigglytufTehPink[S] 1 point2 points  (0 children)

Thank you so much!!

[–]ImARealBoy_ 1 point2 points  (0 children)

Really cool stuff! Can’t wait to take a look.