I think there should be an additional keyboard map option: Paste Removes Mark.
Currently, when I copy something, double-click to select a word/term and then paste, there is still a selection remaining. This is rather annoying and incongruent with other popular editors. I believe this option should be kept separate from the similar Cut/Copy Removes Mark option.
Thank you for listening.
For me all pastes remove the selection mark, so it probably comes down to which function you are using for the paste or how you have configured your new mapping.
Firstly, make sure your new keyboard mapping has the Cut/copy removes mark option set. You will see that option at the top of the Edit Keyboard Mapping dialog.
If that does not fix the issue, you need to determine the function you are using for the paste.
To find out the function use the Macros menu to start a recording, do the paste and stop the recording.
Then use the Macros menu to view the source of the macro just recorded.
Post the name of that function to this thread.
The answer to that is hidden in the distant past when Zeus was first developed.It puzzles me why cut and copy were ever grouped together and not implemented as separate options.
But as Zeus started out life as Brief like clone it might be something that it got from Brief
For a long time Zeus only did Brief and the ability to actually change the mappings was only added on the request of other non Brief users.
You are correct - when Cut/copy removes mark is selected, pasting also removes mark. I did not have this option selected because I like/expect to see my selection after copying until I press some navigation or input key. THanks for the tip. I guess I'll have to endure the remaining selection post-paste because I don't want to give up seeing my selection immediately after a [Ctr]+[C] combination.
Naturally you could just put up with these things sort of things that are not to your liking.Actually, when copying something, I like to see the selection remain after I copy it.
I guess I'll have to endure
But as Zeus is scriptable, another option is to just write a macro and make Zeus do exactly what you want
Here's a macro for the copy behaviour you're looking for:
Code: Select all
function key_macro() if is_window() > 0 then if is_marked() > 0 then local marked_text = macro_tag("$Marked") set_clipboard_text(marked_text ) message("The marked text has been added to clipboard.") else message("No text area has been marked!") beep() end else message("To run this macro you need an active window.") beep() end end key_macro() -- run the macro
It can be found here:
Code: Select all