Use keymap file.

Hi. I'm sorry for my idiotic question, but I don't understand how to use subj.
I have this string in my keymap file (for example):

go_to_fast_dir1 = "/mnt" !
exec_command1 = "rm %f" F1

I run the mocp. Press "Shift 1". And that mocp write: FastDir is not defined.
Press "F1". And that mocp write: ExecCommand1 is not set.
Well, I don't understand a file syntax. Explain it please.

This goes to ~/.moc/config:

ExecCommand1 = "rm %f"

You should also define path to the keymap file here:
Keymap = my_keymap

And in your ~/.moc/my_keymap you should have:
exec_command1 = F1

Look at config.example and keymap.example that comes with MOC sources for more information.

--
Damian Pietras - MOC developer

Thanks for explain. It work. But when I del the file, mocp writes: Comman exited with
error (status 2632692). And delete file. Is that normal? What's that?
Thanks.

No, it's not normal, looks like a MOC's bug. Unfortunately I can't reproduce it, in my case it just deletes the file. Which version of MOC do you use? What is your operating system (distribution and version)?

--
Damian Pietras - MOC developer

MOC version: 2.4.1
OS: FreeBSD 6.0-RELEASE

Thanks, I haven't tested it in a FreeBSD box and don't have any at the moment, but I'll look at it.

--
Damian Pietras - MOC developer

I've tested it on qemu with FreeBSD 6.1 and it works. Are you using i386 architecture (or x86-64)?

--
Damian Pietras - MOC developer

i386