Skip to content

Set a property value from the content of a file #130

@end2endzone

Description

@end2endzone

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 &quot;%USERPROFILE%\Documents&quot;> &quot;${temp}\command_output.txt&quot;" />
    <property name="filenames" file="${temp}\command_output.txt" />
  </actions>
</menu>

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions