%File% bug
I set some external programs for .html files, path looks like this
"C:\blah\blah\firefox.exe" -new-tab "%File%"
But when I have selected text and call this external program (either via hotkey, or menu) PSPad opens me a temp file with selected text inside.
I think it's a bug since we have a special macro for selected text %SelText%.
Mar 22, 2010 by pspad
- status changed from new to resolved
Mar 22, 2010 by fetis
>pspad:
>This isn't bug, but functionality.
>Use compiler instead external application if you want send into external program whole file always.
I disagree. There can be only 1 compiler for file type and there's special macro for selected text, so I don't understand why this behavior is needed.
Mar 23, 2010 by pspad
You can disagree, but it's functionality. commonly used e.g. in work with SQL - what you select, it will be run.
And to send part of text, there is impossible to send selected text as parameter, coz parameter length is limited. Into external tool is necessary to send file as parameter.
Sorry, but it's wanted functionality. If you know it, don't call external application with selected text.
In the favorite panel, you can set any count of compilers you need.
In the future I can add parameter for highlighter what will allows or disallows this functionality, but right now you need to live with it.
Mar 23, 2010 by pspad
- status changed from resolved to wontfix
- type changed from bug to enhancement
Mar 23, 2010 by pspad
- status changed from wontfix to open
Mar 23, 2010 by fetis
ok, I understand. But I think that current action of %File% is little confusing. I think new macro like %SelectedAsFile% will be more logical then new option in highlighter. I.e. %File% will produce only file path and %SelectedAsFile% will work as current %File%.
Thanks for all your work on PSPad.
Mar 22, 2010 by pspad
This isn't bug, but functionality.
Use compiler instead external application if you want send into external program whole file always.