Discussion:
[Thunar-dev] Actions extensions in File Managers - New parameters
Pierre Wieser
2010-08-03 09:41:57 UTC
Permalink
Hi all,

I would suggest to add %m/%M parameters to the DES-EMA specification [1]
in order to get mimetypes of items selected in the file manager.

What do you think about that ?

Thanks in advance for your answer.
Regards
Pierre

[1] http://www.nautilus-actions.org/?q=node/377
Pierre Wieser
2010-08-03 15:12:54 UTC
Permalink
How should this parameter work if the selected files are of different
mime types?
Is this going to be a list of mime-types of every selected file?
Well, yes.
This new parameter would work like %b/%B, %f/%F, %u/%U, %w/%W and
%x/%X.
%m would bring the mimetype of the 'first' selection item (will all
the precautions we already saw on what is the first item),
and %M would give a space-separated list of mimetypes.
For me, this is only useful for Exec key since you can pass this to
the command to let it do different things for different mime-types.
If this parameter is supported, its use should be limited to Exec,
and %M should be used in conjunction with %F or %U while %m should
only be used with %f and %u. Otherwise this looks ok to me.
On Tue, Aug 3, 2010 at 5:41 PM, Pierre Wieser <pwieser at trychlos.org>
Post by Pierre Wieser
Hi all,
I would suggest to add %m/%M parameters to the DES-EMA
specification [1] in order to get mimetypes of items selected
in the file manager.
What do you think about that ?
Thanks in advance for your answer.
Regards
Pierre
[1] http://www.nautilus-actions.org/?q=node/377
Pierre Wieser
2010-08-04 11:46:34 UTC
Permalink
Hi all,

I just updated our specification for action extensions in file manager [1]
to the version 0.13 of its draft.

Among some typo fixes, other modifications are:
- Restates in relevant chapters that actions and menus may have their own set of conditions.
- Add a "Building the whole hierarchy" new chapter.
- add %m and %M parameters.
- Better specify which parameters can be used to determine between ? singular ? and ? plural ? forms, and define the default behavior when only ? irrelevant ? parameters are found.
- States which value must be used in parameter expansions in the case of a singular form.
- The condition defined by the TryExec key evaluates to false if the specified file is not found or is not executable, instead of the entry being ignored.

Your comments are always more than welcome.

Regards
Pierre

[1] http://www.nautilus-actions.org/?q=node/377
Pierre Wieser
2010-08-05 11:15:13 UTC
Permalink
Hi all,

I just updated our specification for action extensions in file manager
[1] to the version 0.14 of its draft.

These are just small modifications in the comments themselves:

- Remove the (non-sense) states added in the previous version,
about the value to be used in parameter expansions in the
case of a singular form.
- Introduce more clearly the multiple execution algorythm.

Your comments are always more than welcome.

Regards
Pierre

[1] http://www.nautilus-actions.org/?q=node/377

Loading...