Hallo,
I have a question.
I have created a button in the button bar with a text editor.
Is it possible to put a parameter so that by clicking the button to open all the files that are selected and not just the file under the cursor?
Thanks for any answer.
If your editor supports openening a list of files - there is:
%F creates a temporary file with the selected filenames which is handed to the application.
For other intern placeholders look in the help search for "buttonbar: Dialog box Configuration Change Buttonbar" or if you understand german have a look at the section in the german Wiki.
sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
Well, I don't know if it does support lists of files.
The editor is called Textpad.
If someone knows sth please let me know!
I've tried with the switch %L and %F but it didn't work.
It is not very wise to open several notepads each one to open single file. What if you accedently run that command and you have bunch of files selected at the moment...
Switch to better editor.
For instance I have that prog language called CSound which have 2 files, .orc & .sco. I managed to click on whatever one I want and both are opened in EP, orc above sco, orc taking 70%, sco the rest.
Last edited by majkinetor ! on 2006-01-26, 10:39 UTC, edited 2 times in total.
And you'll have to enable in Textpad configure->Preferences->General: Allow multiple files on commandline.
sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
majkinetor ! wrote:choice editor can not help here.
only editor with tabbed inteface, like EditPlus
Textpad support tabbed interface and choice editor can help here. However solution of Sheepdog is probably more appropriate in this case. But I still recommend to have a look at choice editor because it is very versatile.
Gil
Licence #17346
90% of coding is debugging. The other 10% is writing bugs.
Well, I found the way with Textpad.
I had to combine the switch of Textpad and Total Commander.
For whoever is interested the parameter is:
@%L
and you have the files you have sellected opened with the program.
panos78 wrote:For whoever is interested the parameter is:
@%L
Great. Didn't know that. It works fine here. Thanks.
sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
hi, i'm trying to solve a similar problem - use a toolbar button to add files to a winamp playlist.
i found this little cmd utility called CLAmp.exe which i used like this:
command: "C:\Program Files\Winamp\CLAmp.exe" /PLADD
parameters: %N
this puts the file under the cursor to the winamp playlist (thanks to the CLAmp's /PLADD parameter), which is great.
but i am not able to add multiple selected files.
- CLAmp doesn't support the list files. not even the trick with @%L.
it seems odd, that tcmd does not provide some %NN parameter, that would use all selected files as an argument. or does it?
icfu: for i'm a slack arse and wanted to make sure there isn't an easier way.
however, even with lst2str i encounter problems. i don't quite understand why, but there's a severe limit to the input size. by default, i only manage to add some three or four songs to the playlist.
i tried to up this limit with /C:xxxx, but this only made the winamp crash.