Simple plug-in system for file context menu #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I would like to add a very simple scripting support in the file context menu.
How it works?
Script properties
The following properties can be inserted in the header of the script:
name - the name of the menu item
term - run the script in a terminal window
Property format: #[prop name]: [value]
Additional features
If you press the Shift key, the script called for each selected file. Otherwise, the script transmitted the names of all selected files as arguments.
Script examples
Duplicate selected files:
Create file list:
Move files to trash
Please tell me which folder to put the script examples in the repository, so they can be used by other people?
TODO