Giter Club home page Giter Club logo

Comments (8)

saleguas avatar saleguas commented on May 26, 2024

Unfortunately, this is quite difficult to implement with the current state of code, as the functions are ran through the command line. I was thinking of doing something with pickled objects or the sorts, but I need to give it more thought. I'm currently aiming to add MacOS functionality next, but this is definitely on my list. I'll update this issue when I start working on it. Thanks for the feedback!

from context_menu.

malky25 avatar malky25 commented on May 26, 2024

Hey man, firstly awesome project, I've been enjoying playing about with this. I'm fairly new to python and just learning. Is it possible to pass variables via the command line then input as argv[] to a function. I've been having trouble trying to get the command line to run another python script. On click I want to pass a flag that says "option selected" and then run a function, currently trying to implement a function so I can right click then copy the path of a file

from context_menu.

l3str4nge avatar l3str4nge commented on May 26, 2024

Hello! I could contribute with passing arguments. It seems to be very interesting issue 😃

from context_menu.

malky25 avatar malky25 commented on May 26, 2024

Had another go tonight, it seems I can pass arguements in this way and using command to run another python script. My issue now is taking an input variable (the file path) from a file you have right clicked on, is there a way to input this?

from context_menu.

saleguas avatar saleguas commented on May 26, 2024

@mateuszz0000 I would love any pull requests or any help with this project! I should warn you, I'm not sure how friendly the code is right now. The windows portion should be navigable but the linux portion is extremely hard to work with. There is also an issue with the code not updating locally because of the imports, (change from context_menu import menus to instead appending the sys.path and import from there). Regardless, I should be adding changes soon to fix some of these problems.

from context_menu.

saleguas avatar saleguas commented on May 26, 2024

@malky25 Thanks for playing around with it; I understand your problem as I had the same exact issue in my file sorter implementation of this library. I think I've scrapped the idea for MacOS support right now and will actually start working on this solution now. If it helps, this resource helped me with the windows implementation (especially the %1 part).

from context_menu.

GanerCodes avatar GanerCodes commented on May 26, 2024

If it's of any help, I was able to implement a really janky solution to having one extra argument by adding an "extra value" parameter to like every class I came across, and changing the create_file_select_command to look like https://i.imgur.com/dT7SJyh.png which worked for me

from context_menu.

saleguas avatar saleguas commented on May 26, 2024

Thanks for the help! I took inspiration from your idea implementing this. Added c2c4b02

from context_menu.

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.