Comments (8)
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.
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.
Hello! I could contribute with passing arguments. It seems to be very interesting issue 😃
from context_menu.
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.
@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.
@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.
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.
Thanks for the help! I took inspiration from your idea implementing this. Added c2c4b02
from context_menu.
Related Issues (20)
- [v0.1.20] Script added key to HKEY_CLASSES_ROOT HOT 2
- Example not working HOT 6
- Flexibility of the target function's signature?
- Call a single function passing selected files list instead of calling one by one HOT 1
- Context Menu visibility
- [Suggestion] The ability to add custom images to the context menu HOT 4
- Issues with displaying menu on Ubuntu 20.04
- File types with Windows default programs do not show context menus HOT 3
- Cant specify filetype with ContextCommand or ContextMenu (parameter not given)
- New Windows 11 Menu
- Don't work on Windows with Python3.9
- Examples not working on Windows 11
- 'NoneType' object has no attribute 'upper' HOT 1
- Documentation does not provide a directory example
- Unable to parse file with spaces in name (Windows 11) HOT 1
- Can't Specify File Type With Fast Command
- Command_vars dont work correctly with spaces in filename
- A way to remove context menus HOT 2
- More granular control over when to show context menu HOT 4
- Display only on shift-click HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from context_menu.