WordStar KeyMapping Question

Get help with the installation and running of the Zeus IDE. Please do not post bug reports or feature requests here. When in doubt post your question here.
Post Reply
tron

WordStar KeyMapping Question

Post by tron »

Hello,

I am evaluting Zeus, so far the tool looks pretty good and I like the general feel of it, however, I'm an old-timer and I really, really like WordStar/Borland IDE WordStar keymapping.

Does Zeus have the full mapping SOMEWHERE or has anyone successfully mapped the editing commands? So far in my testing of Zeus, the WordStar emulation mapping is missing most of the editing commands, things like ^T at EOL deleting to the above line or ^KBtest_text^KK blocking then ^KC to copy blocked text or ^KV to move blocked text, type editing.. lots more missing.

I'll point out that I blindly bought MultiEdit ($369) because they said that they emulated the WordStar keymapping and they also did not, anymore than Zeus has. And God I PHKING HATE Macro$haft notepad.

Is Zeus still being supported? I notice there isn't much going in the forum.

So please, help me out here guys, help this old flatus-C-flapper

Thanks,

tron
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

Does Zeus have the full mapping SOMEWHERE]
In the keyboard mapping dialog there is an export button. This button will produce a text file that shows how each of the keys are mapped to which Zeus function.

From in this file if you place the cursor on the function and use the Help, Quick Help menu you should be taken to the corresponding description of the function in the help file.
So far in my testing of Zeus, the WordStar emulation mapping is missing most of the editing commands things like ^T at EOL deleting to the above line or ^KBtest_text^KK blocking then ^KC to copy blocked text or ^KV to move blocked text, type editing.. lots more missing.
In some cases there may/ may not be a corresponding Zeus keyboard function to the missing function.

In these case you would just have to bind the function to the keyboard.

In other cases you might have to write a macro and then bind that function to the key.

For example here is a typical keyboard macro:

Code: Select all

function key_macro()
    -- macro only works for documents
    local document = is_document()

    -- macro only works for read/write documents.
    local locked = is_read_only()

    if (locked == 1) or (document == 0) then
        message("This macro only works for writable document files.");
        beep();
        return;
    end

    screen_update_disable()

    -- remove to start of line
    LineDeleteStart()

    -- move to start of line
    MoveLineHome()

    -- move the the end of the previous line
    BackspaceSmart()

    screen_update_enable()
    screen_update()
end

key_macro() -- run the macro
This will delete text to the start of the line and then move to cursor to the end of the line above.
Is Zeus still being supported? I notice there isn't much going in the forum.
There is no doubt the forum is slowing down :(

But there are still regular Zeus patrches: http://www.zeusedit.com/forum/viewforum.php?f=6

And a new Zeus patch is planned for release some time in the next few months.

Cheers Jussi
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

There are lots more examples of how to write Zeus scripts here: http://www.zeusedit.com/forum/viewforum.php?f=10

You will also find some more scripts in the Zeus zScript folder ;)

Cheers Jussi
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

^KBtest_text^KK blocking then ^KC to copy blocked text

The ^KC copies the marked area to the clipboard. If you want the marked area to be copied to the current cursor location then you need to re-map these keys to the MarkCopyToCursor function.

Alternatively you could create a Lua macro like the one shown below that should also do the trick:

Code: Select all

function key_macro()
    -- macro only works for documents
    local document = is_document()

    -- macro only works for read/write documents.
    local locked = is_read_only()

    if (locked == 1) or (document == 0) then
        message("This macro only works for writable document files.");
        beep();
        return;
    end

    -- get the currently marked text
    local text = macro_tag("$M")

    -- the maximum length
    if (string.len(text) > 0) then
        -- write the text to the current cursor location
        write(text, 0);
    else
        message("No text is currently marked.");
        beep();
    end
end

key_macro() -- run the macro
You would need to bind this macro to the ^KC key.
or ^KV to move blocked text, type editing.. lots more missing
If you want the marked area to be moved to the current cursor location you will need to map the ^KV key to the MarkMoveToCursor function.

Cheers Jussi
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

The latest version of Zeus now has these mappings defined for the Wordstar keyboard mapping ;)

You can get the latest version from here: http://www.zeusedit.com/download.html

Cheers Jussi
Post Reply