 |
Zeus Use this forum to ask for help, submit a bug report or make a suggestion.
|
| View previous topic :: View next topic |
| Author |
Message |
Solace Guest
|
Posted: Fri Nov 20, 2009 12:50 pm Post subject: A couple of questions about Zeus features |
|
|
Q1: How to enable word wrap? This means, when a string is longer then a zeus's window height, editor automatically cuts the string and places it on another string. This Q is about only reading and viewing, without source modification (instead of Q2 is about).
Q2: How to disable world wrap in Zeus? (This Q concerning editing functions, instead of viewing) I hate, when Zeus cuts my typed string and move it on another string. I only want, that editor just VIEW the wrap, but don't actually modifying typed text by wrapping.
In other words, i hate how the word wrapping work in Zeus, and i want to know, how to switch it to works like in others editors
Q3: Can i make fast searching like in *nix editors? (Nedit for example) I mean, when i mark the text and push F3(find next), i'll search the marked text instead of previous search. The same Q with marked text, about copying, replacement and other tips - Is any way to enable fast copying, fast replacement etc.?
Big Tnx! |
|
| Back to top |
|
 |
jussij Site Admin
Joined: 13 Aug 2004 Posts: 1938
|
Posted: Sat Nov 21, 2009 2:56 am Post subject: |
|
|
| Quote: | | Q1: How to enable word wrap? ....This Q is about only reading and viewing, without source modification (instead of Q2 is about). |
Unfortunately Zeus does not have a view word wrap feature
| Quote: | | Q2: How to disable world wrap in Zeus? |
Use the Options, Properties menu to bring up the document type details and in the General section turn off the Line Wrap option.
| Quote: | | I only want, that editor just VIEW the wrap, but don't actually modifying typed text by wrapping. |
As I said before, there is no view wrap option in Zeus
| Quote: | | Q3: Can i make fast searching like in *nix editors? (Nedit for example) I mean, when i mark the text and push F3(find next), i'll search the marked text instead of previous search. |
Save the following text to the find_text.lua file in the Zeus zScript folder:
| Code: | function key_macro()
-- macro only works for documents
local document = is_document()
if document == 0 then
message("This macro only works for document files!")
beep()
return
end
-- NOTE: get the current word or marked area
local text = macro_tag("$WEX")
if string.len(text) == 0 then
message("The cursor is not over a word!")
beep()
return
end
-- set the search text
set_find_text(text)
-- run the find for this text
SearchNext()
end
key_macro() -- run the macro |
Then bind this macro to the F3 key.
| Code: | | The same Q with marked text, about copying, replacement and other tips - Is any way to enable fast copying, fast replacement etc.? |
Zeus is fully scriptable so in general there are lots of ways you can change the way it works.
There are plenty of macro examples on this forum and in particular here: http://www.zeusedit.com/forum/viewforum.php?f=10
There are also more scripting examples found in the Zeus zScript folder.
Cheers Jussi |
|
| Back to top |
|
 |
Solace Guest
|
Posted: Mon Nov 23, 2009 6:49 am Post subject: |
|
|
| Tnx, jussij! |
|
| Back to top |
|
 |
jussij Site Admin
Joined: 13 Aug 2004 Posts: 1938
|
Posted: Fri Jun 04, 2010 12:35 am Post subject: |
|
|
| Quote: | | Q3: Can i make fast searching like in *nix editors? |
It turns out there is no need to even create a macro because the SearchWordCurrentNext and SearchWordCurrentPrevious keyboard functions provide do exactly this
Cheers Jussi |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|