Topic: Display Text Markers Used (1 of 8), Read 123 times
Conf: VEDIT Suggestions
From: Tony Gaw
Date: Sunday, May 16, 1999 11:38 AM

I have been using the Text Markers a lot. And most of the time, some of Text Markers I used get 'clobbered' because I can't keep track of them. Is it possible to add this feature in VEdit? It could be implemented as something like:

Text Marker: _________
Text Marker Already Used: 1
2
3...

or something to that effect. I have seen this feature in 'Bingo' Text Editor before I started using VEdit. Also, I believe 'Bingo' allows the use of Alphabets as Text Marker thus expanding the Text Markers 26 more.

 


Topic: Display Text Markers Used (2 of 8), Read 125 times
Conf: VEDIT Suggestions
From: Christian Ziemski
Date: Monday, May 17, 1999 11:33 AM


To list the already used Text Markers you can use a macro like this:

M("Used Textmarkers:\n")
for(#103=0;#103<10;#103++){
if(Marker(#103)!=-1){
NT(#103,NOCR)
NT(Marker(#103))
}
}

The macro shows the file positions of the used markers too.

Assign it to a key or put it into the {User} or {Tools} menu.


Christian

 


Topic: Display Text Markers Used (4 of 8), Read 111 times
Conf: VEDIT Suggestions
From: Christian Ziemski
Date: Friday, May 21, 1999 09:20 AM


Here is a much more comfortable version of my suggested macro.
It uses the command Dialog_Input_1() and works therefore under Windows only.

It is one long line to put it into the {User} menu.

OR(103)M("__No.___ Position\n--------------------------------\n")for(#103=0;#103<10;#103++){if(Marker(#103)!=-1){NT(#103,NOCR) M("_:_") NT(Marker(#103),FILL+FORCE)}}OR(0)DI1(103,"Used _Text_Markers;&Ok;;|@(103)",SCREEN+CENTER+SUPPRESS,0,0)


Please replace the "_" in the strings with spaces. The underline is only for better HTML reading.


Christian

 


Topic: Re: Display Text Markers Used (3 of 8), Read 110 times
Conf: VEDIT Suggestions
From: Ted Green
Date: Friday, May 21, 1999 04:57 AM

Having some kind of point&shoot for the text markers and displaying
their current values is a good suggestion.

I'm not sure that I would want more than 10 markers though. The markers
have to be checked and adjusted for each edit change; anything which
would make VEDIT slower is not very popular around here. :-)
However, we might come up with a clever way to have more markers
without any overhead.


Ted.
-------------------------------------------------------------------------
Ted Green (ted@...) 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: Display Text Markers Used (5 of 8), Read 111 times
Conf: VEDIT Suggestions
From: Pauli Lindgren
Date: Friday, May 21, 1999 10:57 AM

On 5/21/99 4:57:32 AM, Ted Green wrote:
>Having some kind of
>point&shoot for the text
>markers and displaying their
>current values is a good
>suggestion.

I just uploaded a macro called MARKERS.VDM which implements the
point & shoot markers:

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

The macro pops up a window that displays all the currently defined
markers, first the number of the marker and after that some text
starting from the marker position. This way you can easier identify
the markers. You can then use cursor up/down keys to select a marker,
then press Enter to go to that marker, or Esc to cancel.

To make it easier to call the macro, put it in the User menu, and
perhaps add a keyboard shortcut to the menu item.


-- Pauli

 


Topic: Re: Display Text Markers Used (6 of 8), Read 118 times
Conf: VEDIT Suggestions
From: Christian Ziemski
Date: Tuesday, November 11, 2003 03:57 PM


Your macro markers.vdm is really an excellent idea.

I added another feature to it:
Now it is additionally possible to select a marker with the numbers 0-9.

It's in the file:

http://ziemski.privat.t-online.de/vedit/macros/markers.vdm

 


Topic: Re: Display Text Markers Used (7 of 8), Read 113 times
Conf: VEDIT Suggestions
From: Pauli Lindgren
Date: Wednesday, May 26, 1999 10:53 AM

Actually I already did the same, and some other enhancements
and corrections, too. I uploaded it to replace my previous
version (MARKERS.VDM).

It now displays line number in addition to marker number
and text sample.

In addition to the numeric keys, I added cursor left/right keys
to go to marker but stay in macro, so that you can quickly check
several marker positions (you can still press esc to return to
original position).

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: Re: Display Text Markers Used (8 of 8), Read 112 times
Conf: VEDIT Suggestions
From: Pauli Lindgren
Date: Friday, May 28, 1999 10:50 AM

For macros like this, it would be nice if you could set the window title that would be displayed in place of filename (since there is no filename for the macro window).

In this case, the window title could be "Select bookmark". Then it would be not necessary to write that text inside the window.

-- Pauli