Zeus IDE Forum Index Zeus IDE
Use this forum to ask for help, submit a bug report or make a suggestion.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

A couple of questions about Zeus features

 
Post new topic   Reply to topic    Zeus IDE Forum Index -> General
View previous topic :: View next topic  
Author Message
Solace
Guest





PostPosted: Fri Nov 20, 2009 12:50 pm    Post subject: A couple of questions about Zeus features Reply with quote

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: 2103

PostPosted: Sat Nov 21, 2009 2:56 am    Post subject: Reply with quote

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 Sad

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 Sad

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
View user's profile Send private message Send e-mail
Solace
Guest





PostPosted: Mon Nov 23, 2009 6:49 am    Post subject: Reply with quote

Tnx, jussij!
Back to top
jussij
Site Admin


Joined: 13 Aug 2004
Posts: 2103

PostPosted: Fri Jun 04, 2010 12:35 am    Post subject: Reply with quote

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 Wink

Cheers Jussi
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Zeus IDE Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
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