mp Text Editor (GUI-Version)

Stuff that has yet to be sorted into a category.
Post Reply
Message
Author
aragon
Posts: 1698
Joined: Mon 15 Oct 2007, 12:18
Location: Germany

mp Text Editor (GUI-Version)

#1 Post 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
Attachments
mp-5.2.0.png
(70.83 KiB) Downloaded 2663 times
mp_DOC-5.2.0.pet
(76.96 KiB) Downloaded 1049 times
mp_NLS-5.2.0.pet
(45.91 KiB) Downloaded 1031 times
mp-5.2.0.pet
(132.87 KiB) Downloaded 1252 times
Last edited by aragon on Tue 26 Apr 2011, 19:12, edited 5 times in total.

aragon
Posts: 1698
Joined: Mon 15 Oct 2007, 12:18
Location: Germany

#2 Post by aragon »

updated to 5.1.1, see main post.

cheers
aragon

aragon
Posts: 1698
Joined: Mon 15 Oct 2007, 12:18
Location: Germany

#3 Post by aragon »

updated to 5.1.3, see main post.

aragon

aragon
Posts: 1698
Joined: Mon 15 Oct 2007, 12:18
Location: Germany

#4 Post by aragon »

uploaded actual version to first post.

aragon

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#5 Post 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
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

aragon
Posts: 1698
Joined: Mon 15 Oct 2007, 12:18
Location: Germany

#6 Post by aragon »

hi technosaurus,

yes, please post your patches.

aragon

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#7 Post 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
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#8 Post 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?
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

aragon
Posts: 1698
Joined: Mon 15 Oct 2007, 12:18
Location: Germany

#9 Post by aragon »

@techno: thanks, will have a look.

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

Aragon

aragon
Posts: 1698
Joined: Mon 15 Oct 2007, 12:18
Location: Germany

#10 Post 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

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#11 Post by technosaurus »

cool, ... I saw the other pic and figured it wasn't applied
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
miriam
Posts: 373
Joined: Wed 06 Dec 2006, 23:46
Location: Queensland, Australia
Contact:

works in Puppy lupu 528

#12 Post 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.
[color=blue]A life! Cool! Where can I download one of those from?[/color]

Post Reply