Improving Minimum Prophit's Key Bindings
Improving Minimum Prophit's Key Bindings
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.
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.
- BarryK
- Puppy Master
- Posts: 9392
- Joined: Mon 09 May 2005, 09:23
- Location: Perth, Western Australia
- Contact:
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.
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.
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.
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.
- BarryK
- Puppy Master
- Posts: 9392
- Joined: Mon 09 May 2005, 09:23
- Location: Perth, Western Australia
- Contact:
Yeah, I know.
Attached is the .mprc I prepared for Pup 1.0.3, keys work okay
with Fvwm95.
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
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.GuestToo wrote:search in /root/.fvwm95 for F10
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.
Yes I've tried ytree, it is very nice tool. Thanks. It looks like the old DOS XTREE was its inspiration.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.
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
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.
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.