Page 1 of 2
[REQ] Add cm_LoadBar command...
Posted: 2006-11-25, 10:32 UTC
by icfu
...that would be nice.
Icfu
Posted: 2006-11-25, 10:37 UTC
by Lefteous
maybe you want to describe what should happen when the executes this command...
Posted: 2006-11-25, 10:52 UTC
by icfu
cm_LoadBar should load a bar, the same that happens when you press a button which loads a bar.
cm_LoadBar <path>MyCoolBar.bar
An equivalent to cm_List <path>MyCoolFile.ext.
Icfu
Posted: 2006-11-25, 10:56 UTC
by Lefteous
Well normally cm commands do not support parameters. Alternatives could be support for loading bar files directly in a user command or a LOAD_BAR command which supports parameters.
Posted: 2006-11-25, 11:01 UTC
by icfu
cm_list supports a filename, and it can also be used in an em_command. Indeed I have in mind to use such a command by creating an em_command and then sending it with WM_COPYDATA, but that's just a side note.
Edit:
Real (instead of hardcoded) parameter support like in the UPPERCASE commands are not really needed here but if it can be done, why not.
Important for me in this case is the scripting ability of that command. I don't know how to script commands like OPENTABS for example. Is it possible?
Icfu
Posted: 2006-12-04, 17:49 UTC
by ped
Hmm... how do you supply a parameter to cm_list? No matter what I try, it always lists the file under the cursor.
Thanks in advance.
Posted: 2006-12-04, 19:09 UTC
by nsp
icfu wrote:cm_list supports a filename, and it can also be used in an em_command. Indeed I have in mind to use such a command by creating an em_command and then sending it with WM_COPYDATA, but that's just a side note.
I'm curious on how you do this !!!!! Using the lister directly from command line is not fancy enough
icfu wrote:Important for me in this case is the scripting ability of that command. I don't know how to script commands like OPENTABS for example. Is it possible?
Icfu
I use OPENTABS with an em_loadtabs command OPENTABS with %A as parameter..
As you stated with the WM_COPYDATA and the E+256 * M (dwData, the lpData point to a "em_loadtabs c:\\TC\\saved_tabs\\tabs.tab" string.
I just miss the SAVETABS.... COMPAREFILES .....
For loading Bar, you can use Vochomurka powerpro scripts....
Posted: 2006-12-04, 22:09 UTC
by ghisler(Author)
how do you supply a parameter to cm_list?
The parmeter must follow immediately after cm_list and a space, e.g.
cm_list c:\windows\wincmd.ini
Posted: 2006-12-05, 07:18 UTC
by nsp
ghisler(Author) wrote:The parmeter must follow immediately after cm_list and a space, e.g.
Yes but it is not working with a parameter section... It cannot be used from the command line bar.....
It is annoying not having a coherent command syntax across buttons, command line bar, and em_commands !
Posted: 2006-12-05, 12:27 UTC
by ped
I have to agree.
Anyway, I would be happy if I could only use cm_list with parameters that are not hardcoded -- e.g. type 'cm_list myfile.ext' in the command line or (even more important to me) use it with the WM_COPYDATA message.
Posted: 2006-12-05, 21:44 UTC
by petermad
It cannot be used from the command line bar
e.g. type 'cm_list myfile.ext' in the command line
It works fine here from the command line!
Posted: 2006-12-05, 21:52 UTC
by ped
That's really odd

I can only make it list the file that the cursor is currently placed on. It does this no matter what file I give as parameter to the cm_list command -- using beta 2 here.
Could you please try to list a file that is not even shown in the current window, using the 'cm_list myfile.ext' (obviously with full path) in the command line?
Posted: 2006-12-05, 22:10 UTC
by petermad
2
ped
Ahh, sorry my mistake. I had copied the filename to the command line with Ctrl+Enter and hadn't moved the cursor away from the file afterwards.

Posted: 2006-12-07, 13:28 UTC
by ped
Ah, I see.
If only Icfu or Ghisler would explain how they make it work....
Posted: 2006-12-07, 20:06 UTC
by ghisler(Author)
It's meant for the button bar, e.g. to open a fixed file name in lister. To open a file from the file list itself, you need to put the cursor on it and press F3.
What you can do is define a new user command, e.g. em_list or just em_l which just contains cm_list as the command. This extended command will then also work on the command line with parameters.