-
AuthorPosts
-
May 26, 2012 at 10:18 pm #10380
Stefan
ParticipantI want to suggest an new argument for the External Tools setup:
$(Para: description)
To give even more flexibility to the external tools command
and allow us to insert the current needed parameters on the fly.If this argument is present (one time or more often),
the user is prompted by an input() dialog box.What the user enter to that box is inserted
into the tool argument before executing the tool.
(if the prompt dialog is canceled, nothing is inserted)Example
Command: .unixgawk
Argument: $(Para: Enter an AWK command:) $(SelText) $(Para: awk para?)On executing this tool the user is prompted:
โโโโโโโโโโ
Enter an AWK command:
โโโโโโโโโโ
โ{print $2, $1}โ
โโโโโโโโโโ
[OK] [Cancel]
โโโโโโโโโโ
โโโโโโโโโโ
awk para?
โโโโโโโโโโ
/eg
โโโโโโโโโโ
[OK] [Cancel]
โโโโโโโโโโand the command line is build like
p:athtoEmEditorunixgawk โ{print $2, $1}โ SelText /egWith this i also reduce the need to set up several
tools as text filter to replace the selection
which only differ in the parameters given.If the prompt dialog would provide an drop-down history list
would be even more nifty.
This history must not be different for different tools
but could share the history for all tools..
September 5, 2012 at 9:42 am #10521Stefan
Participant.
Yutaka wrote:
Please let me know again if new features didnโt show up when the new major beta version becomes available..
September 5, 2012 at 3:46 pm #10528Yutaka Emura
KeymasterHi Stefan,
You can achieve the same result using the Snippets plug-in. Can you try?
Thanks!
April 8, 2013 at 10:35 am #10916Stefan
Participantย
ย
Hi Yutaka, thank you for the feedback.This works for Snippetsโฆ but I want to use this โparameter request boxโ for tools too.
It could be used for many purposes. Do you think you will implement this?
Thanks!
Stefan -
AuthorPosts
- The forum โEmEditor Core Enhancement Suggestionsโ is closed to new topics and replies.