VOGONS


FOSS lightweight stable text editors

Topic actions

Reply 20 of 27, by aVd

User metadata
Rank Member
Rank
Member

Hi, Ignacio,
So far, so good. The modification is actually easier than I expected, while some notes for changes of the key combos, procedures and screen help are kept. Just for the experiment I managed to change this key shortcuts in SuperTED editor source code and everything still works as expected:

The attachment SuperTED_key_mod.jpg is no longer available

Besides <Ctrl>+<C>, <Ctrl>+<X>, <Ctrl>+<V>, <Ctrl>+<Z>... standard text edit combos, I have to think about those function keys assignments.

DOS fan :: artificial "intelligence" (chat) bots - not a fan... not a fan at all :: is freeware a lie, when human freedom is a fundamental lie?

Reply 21 of 27, by aVd

User metadata
Rank Member
Rank
Member

While I was searching for the original source code of SuperTED 1.01, I found this version with bugfixes and enhancements.

SuperTED 1.05 Bugfixes & Enhancements

Bug fixes in v1.05

1. Tabbing passed the right edge of the screen in word wrap mode no longer
hangs the editor.

Changes for v1.04
-----------------

Superted v1.04 celebrates the release of MSDOS 7.0 (a.k.a. Windows 95)
by supporting long file names when run in a DOS box under Win95. Under all
versions of Windows, it also now uses the windows clipboard as its paste
buffer; this enables text interchange between Superted and Windows
applications. This version of Superted runs under all versions of DOS from 2.0
upwards.

The complete list of additional facilities is:

1. Long filename support when run in a DOS box under Windows 95.

2. Use of the Windows Clipboard as the Paste Buffer when run in a DOS box under
Windows 3.x 386 enhanced mode and Windows 95.

3. Ctrl left arrow and ctrl right arrow, respectively, now move the cursor one
word left and right. To shift the whole screen left or right now requires that
the shift key is also held down in conjunction with ctrl lft arrow or ctrl
right arrow.

4. Ctrl up arrow and ctrl down arrow now scroll the whole screen up and down.
Note that on an XT keyboard (the one without the grey cursor keys), ALT-U and
ALT-D have to be used instead.

5. Default colours are now yellow on blue with green highlights. See below for
how to change this.

---------------------------------------------------------------------------
Changes between version 1.02a and version 1.03

1. Shift F5 may now be used to copy marked text to the paste buffer, without
removing the text from the file.

2. If a line of text begins with two or more consecutive hyphens (i.e --),
then this considered equivalent to a null line (i.e. end of paragraph).
Therefore when word wrap of a preceding line is performed, it is no longer
joined to the line starting with the two hyphens. Note that the hyphens may be
preceded by spaces or tab characters. The effect is still the same.

---------------------------------------------------------------------------
Changes between version 1.01 and 1.02a:

BUG FIXES

1. In word wrap mode, deleting an end of line which is followed by another end
of line now works properly.

2. In word wrap mode, word wrap on insertion/deletion no longer causes the
occasional shift of the text down by one line.

3. In word wrap mode, the bug which stopped the last line of a paragraph from
being wrapped when the paragraph is reformated, has been removed.

ENHANCEMENTS

1. It is now possible to configure the word wrap column (see configuration
section below)

Note: SEVERAL CONFIGURATION ADDRESSES HAVE BEEN CHANGED FROM VERSION 1.01.
---------------------------------------------------------------------------

Changes from version 1.00 to version 1.01

BUG FIXES

1. Correctly deletes end of line in non-word wrap mode.

2. Unpredictable crash on word wrap no longer occurs

3. Handling of marked text on word wrap/line join corected.

ENHANCEMENTS

1. Search and replace added (ALT-l)

2. Save without exit (Shift F7)

The key shortcuts are still ridiculous, so I'll modify this one instead of ver.1.01.

DOS fan :: artificial "intelligence" (chat) bots - not a fan... not a fan at all :: is freeware a lie, when human freedom is a fundamental lie?

Reply 22 of 27, by igully

User metadata
Rank Member
Rank
Member

Great find aVd!

Now, what the hell did they do to the default colors theme? On my VGA it is pain to my eyes! Well, at least it should be easy to modify. And so is the .BAK file saving that comes biting back again.

I am glad that you've found a way to deal with your shortcuts issue.

Thank you.

Reply 23 of 27, by aVd

User metadata
Rank Member
Rank
Member

Hi, Ignacio!
I don't know what was done to the color scheme (actually I like this one more instead of the original "soulless" B/W), but can you share your finding on how to bring back the B/W one, please?

As for the bak-file I may try another trick to get rid of it, instead of deleting the file (yeah, the guys with CF-cards on XT machines don't like useless write cycles) 😉

For the key shortcut re-definitions I may ask here for ideas which function keys to what more usable functions to be "bound". But this will be tomorrow, after some deeper inspection of SuperTED v.1.05's code, as I'm currently playing with a derivative tool from the "slop" thing 😁

DOS fan :: artificial "intelligence" (chat) bots - not a fan... not a fan at all :: is freeware a lie, when human freedom is a fundamental lie?

Reply 24 of 27, by igully

User metadata
Rank Member
Rank
Member

Hi aVd,

I was busy with life so I just recently got the time and modified the new SuperTED to my tastes. I am attaching it along with the source code two executables and the following readme:

This is a modified version of SuperTED text editor.

Version 1.05 and its source can be obtained from:
https://github.com/MWASoftware/superted/tree/main

Changes from version 1.05 to 1.05a:
- The recently introduced new color scheme hurts my eyes on VGA. I restored the old monochrome look.
- It always bothered me that when editing existing files, SuperTED also kept a .BAK file of the original. So I removed them.

A more detailed changelog is available at the beginning of the included SUPERTED.ASM file. It also points out the few lines changed/inserted.

SUPERTED.COM - this is the normal executable at about 8 KB in size
SUPERTE1.COM - this is a packed executable at about 6 KB in size.

Yes, I am sadistic masochist when it comes to file sizes in DOS.

Have fun.

Ignacio

Reply 25 of 27, by aVd

User metadata
Rank Member
Rank
Member

Hi, Ignacio,
Thanks for sharing the modified code.

I may try to completely disable this bak-file creation, even if I find this backup functionality useful, but currently I'm focused on key shortcuts re-mapping.

I want some opinions on key shortcuts functions re-maping for SuperTED v.1.05.

Currently I'm thinking for something like this:

Abort - <Esc>
Toggle insert mode - <Ins>
Toggle wrap mode - <Alt> + <W>
Reformat - <Alt> + <R>
Instant quit - <Alt> + <X>

Copy - <Ctrl> + <C>
Cut - <Ctrl> + <X>
Paste - <Ctrl> + <V>
Paste with quote - <Ctrl> + <Shift> + <V>
Replace text - <Ctrl> + <R>
Join lines - <Ctrl> + <J>
Undo - <Ctrl> + <Z>
Find - <Ctrl> + <F>
Import/Open file - <Ctrl> + <O>
Import/Open and quote file - <Ctrl> + <Shift> + <O>
Save file - <Ctrl> + <S>
Force word wrap - <Ctrl> + <W>
Print - <Ctrl> + <P>

Screen right - <Alt> + <Right>
Screen left - <Alt> + <Left>
Word right - <Ctrl> + <Right>
Word left - <Ctrl> + <Left>
Top of file - <Ctrl> + <PgUp>
End of file - <Ctrl> + <PgDn>
Scroll up - <Ctrl> + <Up>
Scroll down - <Ctrl> + <Down>

Help - <F1>
??? - <F2>
Find again/next - <F3>
Mark text - <F4>
??? - <F5>
??? - <F6>
Erase to end of line - <F7>
Delete line - <F8>
Undelete line - <F9>
Exit - <F10>
??? - <F11>
??? - <F12>

I'm open to your suggestions, especially about the function keys.

DOS fan :: artificial "intelligence" (chat) bots - not a fan... not a fan at all :: is freeware a lie, when human freedom is a fundamental lie?

Reply 26 of 27, by igully

User metadata
Rank Member
Rank
Member

I am sorry but I am happy with keyboard shortcuts as they were originally set. I only change shortcuts when they come in conflict with my own selection of "must use" TSRs.
By doing things that way, it is easier for me to find some function I rarely use, just by taking a quick look at the original documentation.

So I have nothing else in my todo list, except maybe fixing that Long File Name detection support routine which is not 100 percent reliable. But that one, I will probably postpone it for a rainy day.

Reply 27 of 27, by aVd

User metadata
Rank Member
Rank
Member

I want more intuitive key shortcuts like the ones we all use as "standard" in our modern text editors and word processors. Of course, I'll change the help screen and the documentation according to the new key map.

I just want some opinions on the most usable functions to bound to function (F1-F12) keys and if the other shortcut combinations are OK.

DOS fan :: artificial "intelligence" (chat) bots - not a fan... not a fan at all :: is freeware a lie, when human freedom is a fundamental lie?