Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 21 Dec 2014, 04:36
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Improving Minimum Prophit's Key Bindings
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [10 Posts]  
Author Message
Bruce B


Joined: 18 May 2005
Posts: 11131
Location: The Peoples Republic of California

PostPosted: Thu 02 Jun 2005, 18:44    Post subject:  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.

Last edited by Bruce B on Thu 02 Jun 2005, 18:51; edited 1 time in total
Back to top
View user's profile Send private message 
GuestToo
Puppy Master

Joined: 04 May 2005
Posts: 4078

PostPosted: Thu 02 Jun 2005, 18:48    Post subject:  

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
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7100
Location: Perth, Western Australia

PostPosted: Fri 03 Jun 2005, 09:35    Post subject:  

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.
Back to top
View user's profile Send private message Visit poster's website 
Guest
Guest


PostPosted: Sat 04 Jun 2005, 14:41    Post subject:  

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.
Back to top
GuestToo
Puppy Master

Joined: 04 May 2005
Posts: 4078

PostPosted: Sat 04 Jun 2005, 16:08    Post subject:  

search in /root/.fvwm95 for F10
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7100
Location: Perth, Western Australia

PostPosted: Sun 05 Jun 2005, 00:26    Post subject:  

Yeah, I know.
Attached is the .mprc I prepared for Pup 1.0.3, keys work okay
with Fvwm95.
DOTmprc.gz
Description 
gz

 Download 
Filename  DOTmprc.gz 
Filesize  3.68 KB 
Downloaded  626 Time(s) 
Back to top
View user's profile Send private message Visit poster's website 
Bruce B


Joined: 18 May 2005
Posts: 11131
Location: The Peoples Republic of California

PostPosted: Sun 05 Jun 2005, 16:25    Post subject:  

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.
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7100
Location: Perth, Western Australia

PostPosted: Sun 05 Jun 2005, 20:50    Post subject:  

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.
Back to top
View user's profile Send private message Visit poster's website 
Guest
Guest


PostPosted: Mon 06 Jun 2005, 06:03    Post subject:  

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
Back to top
Bruce B


Joined: 18 May 2005
Posts: 11131
Location: The Peoples Republic of California

PostPosted: Mon 06 Jun 2005, 06:36    Post subject:  

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.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [10 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0612s ][ Queries: 13 (0.0046s) ][ GZIP on ]