I have a problem with the Wordstar Ctrl+K B and Ctrl+K K combination to mark a block and then the Ctrl+K C to copy the marked block to a new location. The marking works fine but the Ctrl-K C does nothing. The block highlight also turns off which isn't standard Wordstar behaviour as I know it.
I've only trialing Zeus at the moment with a view to getting away from Multiedit so not that familiar with the keymap system and customising it.
Apart from the original Wordstar and Borland's IDE, Delphi, etc the only other editor I've found that is close is the free JOE (Joe's own editor) found at http://sourceforge.net/projects/joe-editor. If all the Wordstar keymaps from Joe would work in Zeus then I'd be a happy man !.
Does anyone else out there use Zeus in Wordstar mode and have a modified keymap file ?.
Greg
Workstar keymap and mark and copy block not working ?
Hi Greg,
It is definitely doing something, but wether it is doing the correct thing is another story
I tried marking and copying some text as described and for me the text was copied to the clipboard just as expected. I then used the Shift+Ins keys to paste the text back into the document.
What is the expected Wordstar behaviour in this case
If you edit the keyboard mapping and uncheck the Cut/copy removes mark option the marking should then remain in place.
It will take some time to become familiar with the Zeus configuration model, but at any time should you find yourself lost, feel free to post a question to this forum.
I am hoping the current Zeus Wordstar mapping is fairly close to the mark but I am sure there will be one or two problems with it. It should be easy to fix these issues with a keyboard function remaps or possibly one or two keyboard macros.
If you can identify these problem areas I would be more than happy to help fix them.
Cheers Jussi
I have a problem with the Wordstar Ctrl+K B and Ctrl+K K combination to mark a block and then the Ctrl+K C to copy the marked block to a new location. The marking works fine but the Ctrl-K C does nothing.
It is definitely doing something, but wether it is doing the correct thing is another story

I tried marking and copying some text as described and for me the text was copied to the clipboard just as expected. I then used the Shift+Ins keys to paste the text back into the document.
What is the expected Wordstar behaviour in this case

The block highlight also turns off which isn't standard Wordstar behaviour as I know it.
If you edit the keyboard mapping and uncheck the Cut/copy removes mark option the marking should then remain in place.
I've only trialing Zeus at the moment with a view to getting away from Multiedit so not that familiar with the keymap system and customising it.
It will take some time to become familiar with the Zeus configuration model, but at any time should you find yourself lost, feel free to post a question to this forum.
If all the Wordstar keymaps from Joe would work in Zeus then I'd be a happy man!.
I am hoping the current Zeus Wordstar mapping is fairly close to the mark but I am sure there will be one or two problems with it. It should be easy to fix these issues with a keyboard function remaps or possibly one or two keyboard macros.
If you can identify these problem areas I would be more than happy to help fix them.
Cheers Jussi
Jussi,
Thanks for quick response, very impressive. I'm tempted to buy Zeus based on this alone. I first used MultiEdit way back in the DOS days and it worked perfectly in Wordstar mode. When they released the Windows version the Wordstar mappings were different and it caused me much grief. Over all the following years they never came up with anything that approached their old DOS version. Very bad support IMHO. Sounds like this won't be the case with Zeus.
Back to the keymap problem. The expected Wordstar behaviour is for Ctrl+K C to act like the Shift+Ins does. I can't see where to assign multi-key commands such as Ctrl+K C in the config area. Any tips on how to do this ?
The Cut/copy removes mark did the trick with the other problem
Regards
Greg
Thanks for quick response, very impressive. I'm tempted to buy Zeus based on this alone. I first used MultiEdit way back in the DOS days and it worked perfectly in Wordstar mode. When they released the Windows version the Wordstar mappings were different and it caused me much grief. Over all the following years they never came up with anything that approached their old DOS version. Very bad support IMHO. Sounds like this won't be the case with Zeus.
Back to the keymap problem. The expected Wordstar behaviour is for Ctrl+K C to act like the Shift+Ins does. I can't see where to assign multi-key commands such as Ctrl+K C in the config area. Any tips on how to do this ?
The Cut/copy removes mark did the trick with the other problem
Regards
Greg
Jussi,
This file http://www.dotfiles.com/files/22/168_.jstarrc may help you with the mappings. It's a JOE editor config file for the Wordstar mappings.
One set that I also use regularly is the Block move Ctrl+K V key, you can find this if you search the above jstarrc file for "blkmove". There are a heap of others in here as well that are probably not mapped in Zeus as expected. If you like I can raise these as problems as I come across them, or when I get more familiar with Zeus, I'll do them myself and let you know.
Regards
Greg
This file http://www.dotfiles.com/files/22/168_.jstarrc may help you with the mappings. It's a JOE editor config file for the Wordstar mappings.
One set that I also use regularly is the Block move Ctrl+K V key, you can find this if you search the above jstarrc file for "blkmove". There are a heap of others in here as well that are probably not mapped in Zeus as expected. If you like I can raise these as problems as I come across them, or when I get more familiar with Zeus, I'll do them myself and let you know.
Regards
Greg
Hi Greg,
I definitely can't guarantee that all reported bugs will be fixed but I can guarantee that you will get a prompt reply to any question asked
Unfortunately there is no way to achieve this using just a simple keyboard remapping, but luckily this can be done quite easily using a simple macro
Below is a macro that will hopefully do exactly what you require. You need to copy the code and save it to the zScript\CopyPaste.lua file. The edit the keyboard map and bind the macro to the Ctrl+K C keys:
If you keep a list of all issues found in the current map, just send me this list and I will be happy to update the current Wordstar mapping to suit.
Cheers Jussi
Sounds like this won't be the case with Zeus.
I definitely can't guarantee that all reported bugs will be fixed but I can guarantee that you will get a prompt reply to any question asked

I think I now understand. The Ctrl+K Ctrl+C needs to do a a copy and a paste operation, one after the other.Back to the keymap problem. The expected Wordstar behaviour is for Ctrl+K Ctrl+C to act like the Shift+Ins does.
Unfortunately there is no way to achieve this using just a simple keyboard remapping, but luckily this can be done quite easily using a simple macro

Below is a macro that will hopefully do exactly what you require. You need to copy the code and save it to the zScript\CopyPaste.lua file. The edit the keyboard map and bind the macro to the Ctrl+K C keys:
Code: Select all
--
-- Name: Wordstar Copy and Paste Macro
--
-- Language: Lua Macro
--
-- Description: Does a Wordstar copy and paste. Should be bound to
-- the Ctrl+K, Ctrl+C keyboard keys.
--
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
-- not a valid document
beep()
else
-- get the marking state
local marked = is_marked()
if marked == 1 then
-- get the starting cursor position
local lstart = get_line_pos()
local cstart = get_cursor_pos()
-- copy the text
MarkCopy();
-- clear the marking for the paste that follows
MarkHide();
-- paste the text
MarkPaste();
-- get the ending cursor position
local lend = get_line_pos()
local cend = get_cursor_pos()
-- move to the start of marked area
set_line_pos(lstart)
set_cursor_pos(cstart)
MarkBlockSet()
-- move to the end of marked area
set_line_pos(lend)
set_cursor_pos(cend)
MarkBlockReset()
else
-- no marked area
beep()
end
end
end
key_macro() -- run the macro
If you like I can raise these as problems as I come across them, or when I get more familiar with Zeus, I'll do them myself and let you know.
If you keep a list of all issues found in the current map, just send me this list and I will be happy to update the current Wordstar mapping to suit.
Cheers Jussi
Last edited by jussij on Fri Oct 14, 2005 2:11 am, edited 2 times in total.
Jussi,
The copy key was actually Ctrl+K Ctrl+C so you were close. I've got this working now. One slight difference is that in Wordstar/Joe the block being copied stays highlighted in it's new location whereas with Zeus it's the original block mark that stays in place. Not a big deal but thought I'd let you know.
One other problem I have is as follows:
If I have a block marked and then press the Enter key the block itself gets cut/deleted instead of a new line being inserted. I had a look in the Keymap configuration and other options but can't see where this is occurring.
I've found some other problems do you want me to keep putting them in this thread or put new issues in a separate thread ?
Greg
The copy key was actually Ctrl+K Ctrl+C so you were close. I've got this working now. One slight difference is that in Wordstar/Joe the block being copied stays highlighted in it's new location whereas with Zeus it's the original block mark that stays in place. Not a big deal but thought I'd let you know.
One other problem I have is as follows:
If I have a block marked and then press the Enter key the block itself gets cut/deleted instead of a new line being inserted. I had a look in the Keymap configuration and other options but can't see where this is occurring.
I've found some other problems do you want me to keep putting them in this thread or put new issues in a separate thread ?
Greg
I have change the copy/paste macro shown earlier to now move the marked area as described.One slight difference is that in Wordstar/Joe the block being copied stays highlighted in it's new location whereas with Zeus it's the original block mark that stays in place.
If I have a block marked and then press the Enter key the block itself gets cut/deleted instead of a new line being inserted.
One way to fix this is to bind the following macro to the Enter key:
Code: Select all
--
-- Name: Wordstar Enter Key Macro
--
-- Language: Lua Macro
--
-- Description: Does a special Wordstar enter action taking special
-- care of marked areas.
--
function key_macro()
-- check for document windows
local document = is_document()
-- check for read/write documents.
local locked = is_read_only()
if (locked == 1) or (document == 0) then
-- leave this case to the default enter function
Enter()
else
-- we have a marked area so move to the next line
EnterNext()
end
end
key_macro() -- run the macro
I've found some other problems do you want me to keep putting them in this thread or put new issues in a separate thread ?
If you post a list of all the issues found to this thread that should be fine.
Cheers Jussi
Hi Jussi,
I'm not a Zeus user, but I thought I'd clarify how WordStar used to do it...
Hope this helps,
Bill
I'm not a Zeus user, but I thought I'd clarify how WordStar used to do it...
- 1. ^KB (Ctrl-K B) inserted a <B> marker. In editors that use a selection region (i.e., every other editor I've ever seen except WordStar), the ^KB command should start a selection.
- 2. ^KK inserted a <K> mark and highlighted the block. Other editors should stop selecting.
- You should then be able to move the cursor away from the marked block without causing it to be deselected. (Some editors call this a "persistent block".) You should also be able to add more text to the file without replacing the highlighted block. (I think the Borland IDE called this behavior "typing replaces block".)
- 3.It was easy to adjust the boundaries of a block by simply repositioning the cursor and typing ^KB or ^KK. There was also a "hide block" command (^KH) that hid the block markers from view. (Later WordStar versions supported an "unmark block" command as well.)
- 4. The ^KV command moved the highlighted block to the current cursor position. In WordStar, this moved the <B> and <K> markers as well, and as such the block's new position was highlighted also. (IMO, this behavior is optional in the emulation.)
Hope this helps,
Bill