Improving Minimum Prophit's Key Bindings

Using applications, configuring, problems
Post Reply
Message
Author
Bruce B

Improving Minimum Prophit's Key Bindings

#1 Post by Bruce B »

IMPROVING MINIMUM PROPHIT KEY BINDINGS

Puppy's curses text editor MP is a really fine application. The problem is
when running with rxvt some of the key strokes don't work right at all. In
particular, I've had problems with F1, F2, F3, F4, End, and Home.

I've worked around this somewhat by modifying the .mprc file. Now MP is much
more friendly under rxvt as I can use the defined key-strokes and avoid the
troublesome keys.

I'd like to share the modifications I've made as it makes working with MP much
easier with rxvt.

In the key binding of section of .mprc I've added the following lines:


bind ctrl-e exec-function
bind ctrl-f seek
bind ctrl-n new
bind ctrl-o open
bind ctrl-q exit
bind ctrl-r replace
bind ctrl-s save
bind ctrl-x cut
bind f10 exit
bind f7 mark
bind f9 menu

Missing are key bindings for bol and eol - I'm just using the arrow
keys.

You might also want to set transparent=0 if you prefer to use MP's colors
rather than rxvt colors.
Last edited by Bruce B on Thu 02 Jun 2005, 22:51, edited 1 time in total.

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#2 Post by GuestToo »

mp is also good for editing files when X is not running, instead of using vi

just type mp /etc/rc.d/rc.local or whatever file you need to edit to get X to work again

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#3 Post by BarryK »

Yes, MP is a great little text editor, doesn't get mentioned much, like never, in our discussions.
Thanks for that info about key bindings -- I'll check it out. Looks like worthwhile putting permanently into .mprc.

Note, the developer does have a GTK version of MP, but it's not really fully graphical, the gui is kind of an awkward bolt-on.
DSL used it for awhile -- i think it was them -- , but dropped it pretty quickly, the gtk version that is.

Guest

#4 Post by Guest »

Barry, I setup the key bindings in icewm. Later when I was using fvwm95 I noticed that it doesn't send the F9 and F10 keys to MP.

It seems that fvwm95 uses the F9 and F10 keys for minumizing the window.

Too bad because F9 and F10 are important keys for the add-on package Midnight Commander.

Point is I guess that .mprc would still need work with key bindings to run well on fvwm95. I didn't know that when I made my original post.

But what I'd really like is to not have fvwm95 using the F9 and F10 keys for what seems to be minumizing the windows. I don't know where to change it.

Anyway, MP is a really great text editor - clearly my favorite curses editor.

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#5 Post by GuestToo »

search in /root/.fvwm95 for F10

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#6 Post by BarryK »

Yeah, I know.
Attached is the .mprc I prepared for Pup 1.0.3, keys work okay
with Fvwm95.
Attachments
DOTmprc.gz
(3.68 KiB) Downloaded 939 times

Bruce B

#7 Post by Bruce B »

GuestToo wrote:search in /root/.fvwm95 for F10
I should have thought of that - thanks. Now it works great! I setup my mp keys to correspond with mc's F9 and F10 as I'm using it for my main editor as well as mc's editor.

I changed the keybindings in .fvwm95 to suit my needs, and mc as well as mp are so much easier to work with.

Some people don't like the curses programs all that much, but for text editing and file managment I prefer them for most operations.

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#8 Post by BarryK »

Bruce B,
have you tried ytree?
...I put it into Unleashed, so it's a PupGet package, but apart from firing it up once to see that it does run, I never used it beyond that. Probably needs some tweaking to integrate properly into Puppy.

Guest

#9 Post by Guest »

BarryK wrote:Bruce B,
have you tried ytree?
...I put it into Unleashed, so it's a PupGet package, but apart from firing it up once to see that it does run, I never used it beyond that. Probably needs some tweaking to integrate properly into Puppy.
Yes I've tried ytree, it is very nice tool. Thanks. It looks like the old DOS XTREE was its inspiration.

Regarding your DOTmprc configuration file, I tested it in fvwm95 - you did a great job with the keybindings.

Still problems with HOME and END which might be hard to fix. I don't know if you noticed but HOME opens mp's menu. It is easier to hit home than it is ctrl-a

Bruce B

#10 Post by Bruce B »

Sorry I wasn't logged in on the above post.

Your mp configuration is an improvement over mine for sure. I'm using it.

I also note that mp has a sort feature which I use often. So I made a keybinding for it.

Lots of features in this excellent editor. I note it can also encrypt and password protect files.

Post Reply