EDX 4.36 LNX 3.00Alpha Smooth Scroll, Scroll Margins, Linux!

Post user created macros to share with others here.

Moderator: Moderators

EDX 4.36 LNX 3.00Alpha Smooth Scroll, Scroll Margins, Linux!

Postby deleyd on Thu Mar 25, 2004 3:22 am

EDX Version 4.36 ADD-ON (Sep 4, 2009)
LNX Version 3.00Alpha1 ADD-ON (July 7, 2009)(for Linux)
Compatible with ME2008
----------
This package provides the following:
  • SCROLL MARGINS
  • SMOOTH SCROLLING
  • TOGGLE SYNC SPLIT WINDOWS
  • SYNC AUTO-COMPARE LINES (updated 4.32)
  • EDX NWS SORT
  • HISTORY CLEANUP
  • LIST UNASSIGNED KEYS
  • LIST COMMAND KEYS
  • LIST MODE SHIFT KEYS
  • GOOGLE CURRENT LINE
  • DIRECT ACCESS TO PASTE BUFFERS 0-9
  • OPTIONAL EDX EDITING KEYPAD
  • CLONE WINDOW
  • RUN CURRENT FILE
  • ALIGN TABS
  • ALIGN COMMAS
  • LINUX SUPPORT
....Image

....Image

....ImageEDX Sync Compare

SCROLL MARGINS
Scroll Margins mean the cursor doesn't have to reach the very bottom or very top of the window before the text scrolls. Instead the text scrolls when the cursor gets to within a few lines of the top or bottom. This way you can always see what the next few lines are above and below the cursor. The scroll speed and scroll margins are adjustable with a new EDX Preferences menu (New to EDX 4.00).

SMOOTH SCROLLING
The scrolling rate is adjustable with a new EDX Preferences menu (New to EDX 4.00).


TOGGLE SYNC SPLIT WINDOWS
If you have a split window this will sync both windows together so if you move up/down in one window the other window also moves up/down.

SYNC AUTO-COMPARE LINES
An addition to Sync Windows. Position on two matching lines, then run EDX -> EDX SyncCompare and it will check line by line until it comes to two lines that don't match. There's an option under EDX -> EDX OPTIONS "EDX Sync Auto-Compare: Ignore Whitespace.


EDX NWS SORT
Sort on multiple keys, mixed ascending/descending. Also sort dates and times. (A major overhaul of the NWS Sort that Bret Sutton wrote.)

DIRECT ACCESS TO PASTE BUFFERS 0-9 (New to version 3.02)
GOLD-P will copy to any paste buffer 0-9; GOLD-O will paste from any paste buffer 0-9; and GOLD-B will go to any paste buffer 0-9.

HISTORY CLEANUP
Allows you to delete unwanted entries from Multi-Edit dialog box history lists. (Written by Brent Stroh. Minor change by David Deley.)

LIST UNASSIGNED KEYS
Lists all unassigned keys. Useful if you want to know what keys are available to assign a keystroke macro to. (Written by Jim Couch. Minor changes by David Deley.)

LIST COMMAND KEYS
Lists all assigned keys and what they do. (Written by Jim Couch. Minor changes by David Deley.)

LIST MODE SHIFT KEYS
Lists all mode shift keys and what they do. (Written by Jim Couch. Minor changes by David Deley.)

GOOGLE CURRENT LINE
Launches Google in Internet Explorer using the current line as the search criteria. Selecting part of the current line will restrict the search to the selected text. Use double quotes for an exact search to a phrase (as you would normally do with Google).
(Written by Jonathan. Minor changes by David Deley.)

CLONE WINDOW (new 4.14)
Make a copy of the current window

RUN CURRENT FILE (new 4.14)
Save current file and execute it

ALIGN TABS (new 4.14)
Align Tab Delimited Data

ALIGN COMMAS (new 4.14)
Align Comma Delimited Data

EDXNWS SORT (new 4.14)
Sort is now stable if you use a template.

LINUX SUPPORT (new 4.20)
This is a Pre-Alpha 1 release, which means I'm not finished with it yet, but it's good enough that you can try it and tell me where all the bugs are. (I'm using Ubuntu & CodeWeaver's Crossover.)

OPTIONAL EDX EDITING KEYPAD
This editing keypad makes it easy to quickly move around the file and do common things that are frequently done. (You may also install the EDX add-on without defining any keys. See file "ReadMe.txt")
Code: Select all
        EDX-MODE KEYPAD KEY FUNCTIONS

+-------------------------------------------+
| Num Lock |/         | *        |-         |
|          |          |          |          |
|          |          | Find next|   Del L  |
|          |          |   Find   |   Und L  |
|----------+----------+----------+----------|
|7         |8         |9         |+         |
|          |          |          |          |
|   GOLD   |   Sect   | NxtMarker|          |
|          |   Swap   |          |          |
|----------+----------+----------+          |
|4         |5         |6         |          |
|          |          |          |          |
|  Advance |  Backup  |   Cut    |   Del W  |
|  Bottom  |   Top    |  Paste   |   Und W  |
|----------+----------+----------+----------|
|1         |2         |3         |          |
|          |          |          |          |
|   Word   |   EOL    |   Char   |   Enter  |
|Changecase|  Del EOL |  Specins |          |
|---------------------+----------|          |
|0                    |.         |          |
|                     |          |          |
|        Line         |   Select |          |
|      Open Line      |   Reset  |          |
+-------------------------------------------+

          +----------+
          |6         |
          |          |
          |   Cut    |  <-- key function
          |  Paste   |  <-- GOLD key function
          +----------+



See file "EDX Documentation.txt" (in the EDX .zip file) for further information.
See file "ReadMe(EDX).txt" (in the EDX .zip file) for installation instructions.
See file "ReadMe(LNX).txt" (in the EDX .zip file) for information on running Multi-Edit under Linux.


I've named this add-on "EDX". EDX was the name of a text editor I wrote in TPU for VMS operating systems many years ago back when dinosaurs roamed the earth. There's a lot of history behind EDX, but history is boring so I won't bother you with it.


OTHER THINGS YOU CAN DO IN MULTI-EDIT
  • SHOW RANDOM ACCESS MARKERS
    View -> Bookmarks OR CTRL+M (M for Markers)
  • FIND WORD UNDER CURSOR
    Up: SHIFT+left_mouse_button
    Down: CTRL+left_mouse_button
    OR
    Up: CTRL+ALT+up_arrow
    Down: CTRL+ALT+down_arrow
    OR
    Invoke Find dialog, then press Up key. (Word under cursor is always placed at the top of the list in the Find dialog.)
PLACES TO CLICK WITH YOUR MOUSE
  • Double-clicking the mouse will highlight the current word.
  • Triple-clicking the mouse will highlight the current line.
  • Double-clicking on any of the following characters ()[]<>{} will highlight to the matching paren. (CTRL-F9 also does this.)
  • Double-clicking on /* will highlight to the matching */
  • Clicking on window letter brings up windows list. (The window letter is in the lower left corner of the window, a letter such as A,B,C,...)
  • Clicking on file status area brings up FILE -> PROPERTIES (The file status area is just to right of the window letter)
  • Right-clicking on file status area toggles readonly on/off.
  • Clicking on line number & col area of status line brings up Goto Line dialog. (The status line is at the bottom of the Multi-Edit window. Looks like [46]L:46 C:58 The number in the brackets is the original line number. An asterisk means you're on a new line added to the file.)
  • Clicking on square on far right of status line opens/closes the Tool Pane ( menu VIEW -> TOOL PANE )
  • Right-clicking inside a window brings up a menu of options (the Context menu).
UPDATES
-----------
03/24/2004 Version 2.01
05/03/2004 Version 2.02 changed handling of edx$select
05/20/2004 Version 2.03 added edx$insert_ruler
05/21/2004 Version 2.04 fixed key assignments for End of File; Top of File
08/27/2004 Version 2.05 fixed GOLD KP1 to toggle case of selected range
04/02/2006 Version 3.0 Major new release.
04/04/2006 Version 3.01 Added edx$next_marker and assigned to KP-9.
04/11/2006 Version 3.02 Added several commands.
05/20/2006 Version 3.03 Compatible with Multi-Edit version 10 (ME2006)
05/21/2006 Version 3.03a More compatible with Multi-Edit version 10 (ME2006)
09/13/2006 Version 3.05 Added edx$windows_explorer.
Modified Launch Google so you can select part of a line and Google the selection.
Added edx$shift_left and edx$shift_right (GOLD left_arrow, GOLD right_arrow).
Added edx$sync_cursor. Fixed handling of edx$undelete_line when cursor is beyond EOF.
Added GOLD 0-9 jump to Random Access Marker 0-9
05/26/2007 Version 4.00 Added edx$setup, edx$caps, edx$lower
12/06/2008 Version 4.14 Lots of new features.
12/09/2008 Version 4.15
01/24/2009 Version 4.20 Linux, Sync Windows Auto-Compare
02/02/2009 Version 4.22 fix Align Delimited Data
02/02/2009 Updated LNX to 2.03
07/07/2009 Version 4.32 EDX Sync Compare
09/04/2009 Version 4.35 added edx$trim_whitespace, fixed edx$sync to give correct column number
09/23/2009 Version 4.36 edx$eofc,edx$bofc




(Click on Watch this topic for replies at the top or bottom right to be notified of updates to this package.)

The download below contains both EDX and LNX:
Image
Attachments
EDX 4.36 LNX 3.00.zip
Download includes EDX, EdxKeys, Compile Errors Show Current Line, Linux (LNX). Each is installed separately.
(394.47 KiB) Downloaded 36 times
Last edited by deleyd on Sat Nov 28, 2009 2:54 am, edited 47 times in total.
User avatar
deleyd
Developer
 
Posts: 1020
Joined: Tue Jul 29, 2003 4:27 pm
Location: Santa Barbara, CA

Postby deleyd on Mon Apr 03, 2006 12:37 am

EDX 3.0 released. This is a major update. See above post for details.

(Click on Watch this topic for replies at the top or bottom right to be notified of future updates to this package.)
User avatar
deleyd
Developer
 
Posts: 1020
Joined: Tue Jul 29, 2003 4:27 pm
Location: Santa Barbara, CA

Postby deleyd on Tue Apr 04, 2006 9:49 pm

EDX 3.01 released. Added edx$next_marker and assigned to keypad 9. This will search in the current direction for the next (or previous) random access marker. So if you know you want to move down (or up) to a marker but don't remember what the marker number is, you can use this key.
User avatar
deleyd
Developer
 
Posts: 1020
Joined: Tue Jul 29, 2003 4:27 pm
Location: Santa Barbara, CA

Postby deleyd on Tue Apr 11, 2006 4:17 pm

EDX 3.02 released.

04/11/2006 Version 3.02
Added:
"Copy to Paste Buffer n" (GOLD P)
"Paste from Paste Buffer n" (GOLD O)
"Goto Paste Buffer n" (GOLD B)
"End of Word" (CTRL-E)

Sync Windows now outlines current line.
User avatar
deleyd
Developer
 
Posts: 1020
Joined: Tue Jul 29, 2003 4:27 pm
Location: Santa Barbara, CA

Postby deleyd on Sat May 20, 2006 8:49 pm

EDX 3.03 released.
05/20/2006 Version 3.03
Compatible with Multi-Edit version 10 (ME2006)

05/21/2006 Version 3.03a
More compatible with Multi-Edit version 10 (ME2006)
User avatar
deleyd
Developer
 
Posts: 1020
Joined: Tue Jul 29, 2003 4:27 pm
Location: Santa Barbara, CA

Postby deleyd on Wed Sep 13, 2006 6:17 am

EDX 3.05 released. Many new features.
User avatar
deleyd
Developer
 
Posts: 1020
Joined: Tue Jul 29, 2003 4:27 pm
Location: Santa Barbara, CA

Can't download

Postby tlscales on Fri Nov 17, 2006 1:49 pm

Tried to download EDX to check it out, but all I get is "download.php", not the EDX zip. Is this a problem with the link, or with my browser settings?
tlscales
Registered User
 
Posts: 81
Joined: Fri Nov 07, 2003 7:44 pm
Location: Pittsburgh, PA

Postby deleyd on Fri Nov 17, 2006 5:07 pm

Works OK for me. I'll upload the file to www.YouSendIt.com and PM you with the address to download it from. It will be available for 7 days at YouSendIt.com.
-D.D.
User avatar
deleyd
Developer
 
Posts: 1020
Joined: Tue Jul 29, 2003 4:27 pm
Location: Santa Barbara, CA

Postby deleyd on Mon May 28, 2007 6:56 pm

New version 4.00 May 26, 2007.

Added ADDON -> EDX -> PREFERENCES menu, where you can adjust the smooth scroll speed, scroll margins, and scroll amount. Added a new loop method for adjusting the smooth scrolling speed.

Also added edx$caps and edx$lower to replace Multi-Edit's CAPS and LOWER built-in fuctions. Muti-Edit's CAPS and LOWER functions only work for A-Za-z, whereas edx$caps & edx$lower use the Windows operating system CharUpperBuff and CharLowerBuff, which shoud work for any letters in any codepage, (e.g. Russian codpage cp-1251).

à á â ã ä å æ ç è é ê ë ì í î ï ð ñ ò ó ô õ ö ø ù ú û ü ý þ ÿ
À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï Ð Ñ Ò Ó Ô Õ Ö Ø Ù Ú Û Ü Ý Þ Ÿ
User avatar
deleyd
Developer
 
Posts: 1020
Joined: Tue Jul 29, 2003 4:27 pm
Location: Santa Barbara, CA

Postby deleyd on Sun Dec 07, 2008 1:03 am

New version 4.12 Dec 6, 2008.

New:

CLONE WINDOW
Make a copy of the current window

RUN CURRENT FILE
Save current file and execute it

ALIGN TABS
Align Tab Delimited Data

ALIGN COMMAS
Align Comma Delimited Data

EDXNWS SORT
Sort is now stable if you use a template.


New Macros:
void edx$inschr();
I got tired of always doing <char>{left}{down} to insert a column of characters. e.g. to push a column over by inserting a space at a particular place, <space>{left}{down} repeat... So I made this little macro. Run macro, it prompts for a character, enter character, it does <char>{left}{down} enter the character again, or hold the key down, until you're done. Press any other key to end.

void edx$CloneWindow();
void edx$RunCurrentFile();

EDX align delimited data (These work with variable tab stops)
int edx$AlignTabs();
int edx$AlignCommas();
int edx$AlignDelimitedData(str d);

int edx$GetNextTabColumn(int Column);
str edx$DeTabStr(str SStr);
str edx$EnTabStr(str SStr);
int edx$tabs2spaces(str Options);
int edx$spaces2tabs(str Options);
int edx$ConvertTabs();

Misc
void edx$reformat();
void edx$CR();
void edx$append_to_bufnum(str c);
void edx$cut_append_to_bufnum(str c);
void edx$clear_bufnum(str c);
int edx$copyfilename();
User avatar
deleyd
Developer
 
Posts: 1020
Joined: Tue Jul 29, 2003 4:27 pm
Location: Santa Barbara, CA

Non Linux version available?

Postby jpjpjp on Thu Apr 23, 2009 2:06 am

You've posted the linux version but not the windows version. Is that available too?
jpjpjp
Registered User
 
Posts: 8
Joined: Tue Aug 10, 2004 10:42 pm

Postby deleyd on Thu Apr 23, 2009 7:38 am

The download contains both. I added an image to the post to help explain.
User avatar
deleyd
Developer
 
Posts: 1020
Joined: Tue Jul 29, 2003 4:27 pm
Location: Santa Barbara, CA

Postby jayterry on Mon Jun 29, 2009 5:02 am

I just found the CopyFileName macro in EDX (I simply hadn't noticed it before). That's really handy. However, when I first tried it I got no result. Dug around a bit a figured out that it was because I didn't have persistent blocks turned on. Once I turned it on CopyFileName worked like a charm. For next EDX release you might want to save state of persistent blocks, turn it on, then reset it.
jayterry
Registered User
 
Posts: 95
Joined: Fri Mar 10, 2006 4:28 am

Postby deleyd on Tue Jul 07, 2009 7:47 am

Thank you jayterry for pointing that out. Fixed that and released new version.

New version 4.32 July 7, 2009

New:

SYNC COMPARE
Compare two windows side by side line by line until non-matching lines found. Option to ignore whitespace is under EDX -> EDX OPTIONS

SHOW CALENDAR
Added it to the EDX menu. (No one's ever going to use this.)

LNX 3.00Alpha1
No real changes. I don't think anybody runs this on Linux.
User avatar
deleyd
Developer
 
Posts: 1020
Joined: Tue Jul 29, 2003 4:27 pm
Location: Santa Barbara, CA

Postby jayterry on Tue Jul 07, 2009 4:57 pm

Glad to help. It was a very minor thing and easy to fix.

I hesitate to complain because there are so many cool things in EDX and I really like most of them. But there is one thing that irritated me a bit. I read through the docs prior to installing EDX and decided to go ahead with install specifically because it said that it would not make changes to my keymap unless I also installed the edxkeys macro. So I figured the worst that could happen would be that I'd try the macros, and if I didn't like them I could just not use them or delete them. But not only did it make changes to my keymap, it was to very basic things like Enter, Page Up/Down, etc.

Now that I've installed it I can see that it's obviously necessary in order to implement things like smooth scrolling. However, I think it would be better to be more clear that the install WILL alter the keymap, even without installing the edxkeys macro. I am enough of an advanced user that I could pretty easily find the changes and reverse the ones I don't prefer, but would have rather known up front. And maybe note in the docs which key assignments will be changed so one doesn't have to hunt them down.

Also, I'm now conflicted about installing the update because it's going to change those key settings again. For example, smooth scroll is a cool idea (and well implemented), but personally I prefer PgUp/PgDn to "pop" immediately to the next screen instead of watching it scroll there. And I couldn't seem to get EDX to do that even with very low timing values - the only thing that worked was changing PgUp/Dn back to the system macros. Maybe the routines that absolutely require keymap changes (it looks like primarily smooth scroll and reformat) could be in a separate macro, much like you have a separate edxkeys macro, for those that don't want to change their keymaps.

Just some thoughts. Thanks for all the cool tools.
jayterry
Registered User
 
Posts: 95
Joined: Fri Mar 10, 2006 4:28 am

Next

Return to User Created Macros

Who is online

Users browsing this forum: No registered users and 0 guests