Topic: Displaying and selecting used text markers (1 of 16), Read 122 times
Conf: VEDIT Macro Library
From: Christian Ziemski
Date: Wednesday, May 26, 1999 07:10 AM


Inspired by Pauli Lindgren's macro for displaying and selecting used text markers ftp://ftp..../share/markers.vdm and my modification to it (selecting via numbers) ftp://ftp..../share/markers-z.vdm
I wrote the following one:
ftp://ftp..../share/showmarkers2.vdm

It runs with the Windows' VEDIT only and uses the VEDIT command Dialog_Input() for displaying and selecting the markers.


Christian

 


Topic: Displaying and selecting used text markers (2 of 16), Read 105 times
Conf: VEDIT Macro Library
From: Pauli Lindgren
Date: Wednesday, May 26, 1999 11:07 AM

MARKER.VDM - Point and Shoot Bookmark Selection

I just uploaded new version in place of my original file:

ftp://ftp..../share/markers.vdm

This macro pops up a window that displays all currently defined
bookmarks (text markers), together with line number and some text
at the bookmark location.

You can then use cursor keys to select a bookmark, then press
Return to go to that marker. Or press a numeric key to go
directly to specified marker.

For easier use of the macro, put it in your User menu and then
define a keyboard shortcut to the menu item. Now you can go
to selected marker position with just two keypresses even in
Windows version.

Keys:

Cursor Up/Down = select marker
Cursor Left/Right = go to highlighted marker but stay in macro
Return = go to highlighted marker and exit macro
number 0-9 = go to marker 0-9 and exit macro
Esc = cancel (return to original position and exit macro)

Note: I have used window color 240. If you are using older
Vedit than V5.15, you may need to change it.


-- Pauli

 


Topic: Displaying and selecting used text markers (5 of 16), Read 100 times
Conf: VEDIT Macro Library
From: Pauli Lindgren
Date: Friday, May 28, 1999 10:41 AM

Christian sent me new version of the MARKERS.VDM macro,
with some changes such as saving the registers, handling unused markers etc.
I did not invent any more changes, so I uploaded it as it is.
It is now version 1.2 and it replaces the previous version.

ftp://ftp..../share/markers.vdm

-- Pauli

 


Topic: Displaying and selecting used text markers (7 of 16), Read 103 times
Conf: VEDIT Macro Library
From: Christian Ziemski
Date: Friday, May 28, 1999 12:02 PM


The only problem with markers.vdm is that it's not possible to move the list window with the mouse. So one can't see the text underneath the window.

Maybe in a future version of VEDIT the Get_Key() will process the Windows' messages (mouse etc.)... hopefully.

Christian

 


Topic: Displaying and selecting used text markers (10 of 16), Read 99 times
Conf: VEDIT Macro Library
From: Pauli Lindgren
Date: Tuesday, June 01, 1999 10:29 AM

It would be better if you could just move a macro window just like normal edit window. Why is it not possible, anyway?

Of course support for mouse events would be useful so that you could (in this case) select the bookmark with mouse.

-- Pauli

 


Topic: Displaying and selecting used text markers (11 of 16), Read 97 times
Conf: VEDIT Macro Library
From: Christian Ziemski
Date: Tuesday, June 01, 1999 02:53 PM


Mouse movements are Windows' messages too.
Get_Key seems to ignore all those messages. Only real keystrokes are processed.

No Windows messages => no Windows move...

Christian

 


Topic: Displaying and selecting used text markers (12 of 16), Read 100 times
Conf: VEDIT Macro Library
From: Pauli Lindgren
Date: Wednesday, June 02, 1999 03:46 AM

>Get_Key seems to ignore all
>those messages. Only real
>keystrokes are processed.

I do not want to handle window move with Get_Key. Vedit should handle the window move automatically without any macro code. Just like it does during normal editing.

Note that if a macro stops working without closing the window, then you can move the window with mouse (IIRC). Window move is disabled only when the macro is running.

I think Vedit should handle the window move in background even while a macro is running. Of course, the macro programmer should have an option to disable window move/resize.

But this is not the most important enhancement. Perhaps in V6.0?

-- Pauli

 


Topic: Displaying and selecting used text markers (3 of 16), Read 100 times
Conf: VEDIT Macro Library
From: Christian Ziemski
Date: Friday, May 28, 1999 09:37 AM


Some minutes ago Pauli told me his idea of setting markers with a comfortable dialog.

So I wrote ftp://ftp..../share/setmarker.vdm

That macro displays the used markers for information. Then you can type in a number of the marker (used or unused) to set to the actual cursor position.

It uses the VEDIT command Dialog_Input_1() and runs therefore with the Windows' VEDIT only.

It's possible to combine it with my ftp://ftp..../share/showmarkers2.vdm into one macro.
Maybe I'll do that on weekend...

Christian

 


Topic: Re: Displaying and selecting used text markers (4 of 16), Read 103 times
Conf: VEDIT Macro Library
From: Ted Green
Date: Friday, May 28, 1999 10:11 AM

I'm thrilled to see all this work being done on the text marker selection
macros. Once we have the "ultimate" text marker selection method, we will
add it to VEDIT. Thank you.

 


Topic: Re: Displaying and selecting used text markers (6 of 16), Read 107 times
Conf: VEDIT Macro Library
From: Christian Ziemski
Date: Friday, May 28, 1999 11:54 AM


Here it is... :-))

I've written and uploaded a new macro for Displaying/Jumpto/Set Text Markers within VEDIT.

It is a combination of my SHOWMARKERS2.VDM and SETMARKER.VDM and is available here:

ftp://ftp..../share/jsmarker.vdm ("Jump_or_Set_MARKER")


Within one dialog it is possible to see the used markers, jump to one of it or set a new one (or overwrite a used one offcourse).


Like the other two macros it runs with the Windows' VEDIT only.


Christian

 


Topic: Re: Displaying and selecting used text markers (8 of 16), Read 105 times
Conf: VEDIT Macro Library
From: Christian Ziemski
Date: Friday, May 28, 1999 01:39 PM


Just an update:

Now I added Pauli's feature of "jump and stay" to my macro too.

ftp://ftp..../share/jsmarker.vdm


Christian

 


Topic: Re: Displaying and selecting used text markers (9 of 16), Read 100 times
Conf: VEDIT Macro Library
From: Christian Ziemski
Date: Monday, May 31, 1999 09:14 AM


Another update:
I added "Clear marker".

ftp://ftp..../share/jsmarker.vdm


Christian

 


Topic: Displaying and selecting used text markers (13 of 16), Read 57 times
Conf: VEDIT Macro Library
From: Christian Ziemski
Date: Tuesday, October 24, 2000 05:30 AM

On 5/26/1999 7:10:04 AM, I wrote:
>
>Inspired by Pauli Lindgren's macro for displaying and
>selecting used text markers ftp://ftp..../share/markers.vdm ...
>I wrote the following one:
>ftp://ftp..../share/showmarkers2.vdm
>It runs with the Windows' VEDIT only and
>uses the VEDIT command Dialog_Input()
>for displaying and selecting the markers.

Now I updated it to run with VEDIT 5.20:
ftp://ftp..../share/showmarkers3.vdm

Christian

 


Topic: Re: Displaying and selecting used text markers (14 of 16), Read 62 times
Conf: VEDIT Macro Library
From: Ted Green
Date: Tuesday, October 24, 2000 09:34 AM

Christian:

Thank you for updating the text marker macro. Hopefully we can build something like this into a future VEDIT. I cannot use your macro now, because the "Goto_Pos()" command would cause too much disk buffering on huge files.

Alternatively, the macro could use "if (File_Size < 1000000) {..." to
check for huge files and then just display "Sorry, preview is disabled
in huge files".

I'll give more thought into how this could be built-in.

Ted.

Chris
-----------------------------------------------------------------------------
Chris Stachnik (chris@...) Greenview Data, Inc.
Web: http://www.... PO Box 1586, Ann Arbor, MI 48106
Tel: (734) 996-1300 * Fax: (734) 996-1308 VEDIT - Text/Data/Binary Editor

 


Topic: Re: Displaying and selecting used text markers (15 of 16), Read 63 times
Conf: VEDIT Macro Library
From: Christian Ziemski
Date: Thursday, October 26, 2000 04:46 AM

Hi Ted (or Chris??),

I modified my macro according to your suggestion.

But that was not comfortable enough IMHO.
So I added a feature to let the user force the preview if he really wants that.

ftp://ftp..../share/showmarkers3.vdm

Christian

 


Topic: Re: Displaying and selecting used text markers (16 of 16), Read 56 times
Conf: VEDIT Macro Library
From: Pauli Lindgren
Date: Tuesday, October 31, 2000 07:38 AM

>Hopefully we can build something like this into a
>future VEDIT. I cannot use your macro now, because the
>"Goto_Pos()" command would cause too much disk buffering
>on huge files.

If the feature was built-in, maybe you could save the additional information somewhere already when setting the bookmark. Then it would not be necessary to gather the information every time when opening the markers dialog box.

BTW, it would be nice if you could select the bookmark using up/down arrows (as in my version of the macro), and also select it by clicking the bookmark in the list with mouse.