EmEditor (text editor) Forum Index
   EmEditor Core Enhancement Suggestions
     External Tools: new argument to ask / prompt for parameter
Register To Post

Flat Previous Topic | Next Topic
Poster Thread
Stefan
Posted on: 5/26/2012 2:18 pm
Home away from home
Joined: 7/14/2008
From: Germany, EU
Posts: 263
External Tools: new argument to ask / prompt for parameter
I 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: .\unix\gawk
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:\ath\to\EmEditor\unix\gawk "{print $2, $1}" SelText /eg





With 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.



.
Flat Previous Topic | Next Topic


Subject Poster Date
 » External Tools: new argument to ask / prompt for parameter Stefan 5/26/2012 2:18 pm
     Re: External Tools: new argument to ask / prompt for parameter Stefan 9/5/2012 1:42 am
     Re: External Tools: new argument to ask / prompt for parameter Yutaka 9/5/2012 7:46 am
       Re: External Tools: new argument to ask / prompt for parameter Stefan 4/8/2013 2:35 am

Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文