Page 1 of 1

mp Text Editor (GUI-Version)

Posted: Mon 29 Sep 2008, 11:27
by aragon
Home: http://triptico.com/software/mp.html
Version: 5.2.0
A text editor for programmers

Features
* Fully scriptable using a C-like scripting language.
* Unlimited undo levels.
* Complete Unicode support.
* Multiple files can be edited at the same time and blocks copied and pasted among them.
* Syntax highlighting for many popular languages / file formats: C, C++, Perl, Shell Scripts, Ruby, Php, Python, HTML...
* Creative use of tags: tags created by the external utility ctags are used to move instantaneously to functions or variables inside your current source tree. Tags are visually highlighted (underlined), and symbol completion can be triggered to avoid typing your own function names over and over.
* Intelligent help system: pressing F1 over any word of a text being edited triggers the underlying system help (calling man when editing C or Shell files, perldoc with Perl, ri on Ruby, winhelp on MS Windows...).
* Understandable interface: drop-down menus, reasonable default key bindings.
* Configurable keys, menus and colors.
* Text templates can be easily defined / accessed.
* Multiplatform: Console/curses, KDE4, GTK+, MS Windows.
* Automatic indentation, word wrapping, internal grep, learning / repeating functions.
* Spellchecking support (via the ispell package).
* Multilingual.
* Password-protected, encrypted text files (using the ARCFOUR algorithm).
* It helps you abandon vi, emacs and other six-legged freaks definitely.
This is the gtk2-Package. If you start from commandline (without x) it will open with ncurses-gui.

Starter is at 'Document' from commandline it's 'mp-5' .

Compiled and tested in 4.31.

Cheers
aragon

Posted: Mon 15 Dec 2008, 12:28
by aragon
updated to 5.1.1, see main post.

cheers
aragon

Posted: Tue 13 Oct 2009, 09:36
by aragon
updated to 5.1.3, see main post.

aragon

Posted: Sun 24 Apr 2011, 20:49
by aragon
uploaded actual version to first post.

aragon

Posted: Mon 25 Apr 2011, 13:01
by technosaurus
@aragon - I sent Angel a couple of patches prior to this release that may not be integrated to mainline due to being non-standard-gui:
  • 1. moving notebook tabs up to the menu line.
    2. showing the full list of open files on right click on any tab
let me know if you are interested in either one

Posted: Tue 26 Apr 2011, 06:22
by aragon
hi technosaurus,

yes, please post your patches.

aragon

Posted: Tue 26 Apr 2011, 14:47
by technosaurus
---mpv_gtk.c.old 2010-08-25 15:45:13.000000000 +0800 +++ mpv_gtk.c 2010-11-10 21:41:52.123291099 +0800 @@ -1741,9 +1741,10 @@ gtk_container_add(GTK_CONTAINER(window), vbox); build_menu(); -gtk_box_pack_start(GTK_BOX(vbox), menu_bar, FALSE, FALSE, 0); --gtk_box_pack_start(GTK_BOX(vbox), file_tabs, FALSE, FALSE, 0); + hbox = gtk_hbox_new(FALSE, 0); + gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); + gtk_box_pack_start(GTK_BOX(hbox), menu_bar, FALSE, FALSE, 0); + gtk_box_pack_start(GTK_BOX(hbox), file_tabs, TRUE, TRUE, 0); /* horizontal box holding the text and the scrollbar */ hbox = gtk_hbox_new(FALSE, 2);






another cheapy so that right click brings up a list of open files: //moving them to the top does make less tabs fit //this lets you get at that 30th file faster, easier -saves ~25clicks

gtk_notebook_popup_enable(GTK_ NOTEBOOK(file_tabs));

EDIT sorry for the formatting issues, posting from my phone

Posted: Tue 26 Apr 2011, 15:03
by sc0ttman
works brilliantly in pup4, thanks! :) (I think I'm using a version including the patches posted above, as I seem to have tabs, up at the top, next to the menu items.. right clicking on a tab also shows the list of all files open.. NICE!)

also, now the sources have been changed (right?), dont you need to post the sources somewhere too?

Posted: Tue 26 Apr 2011, 16:08
by aragon
@techno: thanks, will have a look.

@scottsman: me actually not, my package is unpatched (atm)...

Aragon

Posted: Tue 26 Apr 2011, 19:13
by aragon
@techno: please look at the updated pic in post 1 (it's from my actual package). I guess your changes have been accepted...

aragon

Posted: Tue 26 Apr 2011, 21:14
by technosaurus
cool, ... I saw the other pic and figured it wasn't applied

works in Puppy lupu 528

Posted: Sat 08 Jun 2019, 08:51
by miriam
Thank you Aragon, for compiling and posting this. I tried and failed to compile it. I'm not sure why.

I'm pleased to report that your pet still works in Puppy Lupu 528 (though I had to extract the files from the pet after renaming it as a tgz file and copy the files by hand to their intended places).

I'd just become interested in mp because reading about it reminded me of an old editor I used to use a few decades ago (Matt Dillon's "dme" on the Amiga computer). It was incredibly easy to script it and modify its keys and menus. It still stands out as the most powerful editor I've ever used. I've never seen anything like it since. So I'm hoping mp-5 might take me close to that.

I already make great use of external scripts with various text editors. The beauty of Puppy's Rox interface is that I can attach these scripts to icons that I keep on the desktop in a row near the bottom of the screen. They let me perform many sophisticated actions in even the simplest of text editors (for example leafpad, which is my most commonly used editor). Using my scripts I can do very cool and complex things in leafpad (or any other simple editor) but its lack of a script interface limits greatly my ability to use interactive and conditional scripts. I can't for instance query the cursor to find out what position it is at or what letter it is over. I'm hoping mp-5 can change that. I haven't read its documentation yet.

By the way, my scripts tend to use xclip to get the current selected text and xdotool to paste or type text into the text editor. I should write it up properly for the forum and make the RoxApps available here. In the meantime you can download them from my site at:
http://miriam-english.org/projects/eed/index.html

They don't need to be installed. Just make sure you have already installed xdotool and xclip. Some of the RoxApps use a more recent version of sed than Puppy usually has. Make sure your version of sed is version 4.2.2 or more recent. (it's really easy to compile.) I don't think they use any other unusual programs. All the other things they use are standard Linux commands, such as sed, awk, sort, date, wc, aspell, dict, and so on. They are really easy to modify any way you want, too.

One of the nicest things about my scripts is that you can use them in filename dialogs, online text entry (forums and blogs), or anywhere you need to enter text from the keyboard. They're not just limited to use inside text editors.