Column number

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
leonleo
Posts: 3
Joined: Mon Dec 02, 2013 4:14 pm

Column number

Post by leonleo »

hi,
Just start using Zeus today!
how can I add column number for my text files.

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

Post by jussij »

how can I add column number for my text files.
I'm not sure exactly what functionality you are looking for.

By this do you mean you want a key stroke that adds the current column number to the document :?:

If so you can do that using this Lua macro:

Code: Select all

function key_macro()
  -- macro only works for read/write documents.
  if (is_read_only() == 1) or (is_document() == 0) then
    message("This macro can only be used with a writable document.")
    beep()
    return
  end

  -- I am not sure it this is the behaviour you are after
  if (is_marked() == 1) then
    message("This macro would delete that marked area.")
    beep()
    return
  end

  screen_update_disable()

  -- save the current cursor
  cursor_save()

  -- write out the current cursor (column) value
  write(string.format("%d", get_cursor_pos()))

  -- restore cursor
  cursor_restore()

  screen_update_enable()
end

key_macro() -- run the macro
You will just need to save this to the cursor.lua file in the zScript folder and then bind that macro to the keyboard.

Cheers Jussi
leonleo
Posts: 3
Joined: Mon Dec 02, 2013 4:14 pm

Post by leonleo »

I'm not sure exactly what functionality you are looking for.
hi,
when i open a text file Zeus displays the only row number but not the column number as Ultra edit does.
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

when i open a text file Zeus displays the only row number but not the column number as Ultra edit does.
Ok, I now understand what you mean and that is the ruler option.

Unfortunately Zeus does not have a ruler option :(

Cheers Jussi
leonleo
Posts: 3
Joined: Mon Dec 02, 2013 4:14 pm

Post by leonleo »

its a shame Zeus doesn't have this. If possible could you please add this feature in later versions?

i'm looking for a free notepad editor (similar to ultraedit). I'm using notepad++ and is closest i have. Is there anything else you can recommend?

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

Post by jussij »

Is there anything else you can recommend?
When it comes to choices I think there are plenty to choose from. A Google search should help.

As to which of those options is best, I would not know as I only use Zeus ;)

Cheers Jussi
Post Reply