-
Notifications
You must be signed in to change notification settings - Fork 27
Support for passing filename to command #3
Copy link
Copy link
Closed
Description
So, I absolutely love this project, but I have one problem: While I can pass the filename[s] to a Python function, I can't pass them to the command option. For normal Python code this isn't a big problem; however, compiling code with PyInstaller makes the python option unusable.
With that in mind, I would like it if you could add the ability to do something like this:
foo = menus.FastCommand('Foobar', type='FILES', command="foo ? ?", command_vars = ["FILENAME", "DIR"]
where command_vars is an iterable specifying the context menu-related variables (e.g. the filename or the current working directory) with which to replace the ?s in command.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels