-
Notifications
You must be signed in to change notification settings - Fork 32
Set a property value from the content of a file #130
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
Is your feature request related to a problem? Please describe.
It would be useful to be able to set a property from the content of a file.
Describe the solution you'd like
<property name="content" file="C:\foo\bar\baz.txt" />Describe alternatives you've considered
There is no alternative for this feature.
Additional context
This feature would allow people to do advanced property manipulation such as
<menu name="Copy file content">
<visibility maxfiles="1" maxfolders="0" />
<actions>
<property name="selection.file.content" file="${selection.path}" />
</actions>
</menu>or to copy the result of an <exec> element as a property with something such as
<menu name="Capture exec output">
<actions>
<exec path="cmd.exe" arguments="/C dir /b "%USERPROFILE%\Documents"> "${temp}\command_output.txt"" />
<property name="filenames" file="${temp}\command_output.txt" />
</actions>
</menu>Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request