Page 1 of 1

Column number

Posted: Mon Dec 02, 2013 4:22 pm
by leonleo
hi,
Just start using Zeus today!
how can I add column number for my text files.

Thanks

Posted: Tue Dec 03, 2013 4:25 am
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

Posted: Wed Dec 04, 2013 11:04 am
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.

Posted: Wed Dec 04, 2013 12:50 pm
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

Posted: Wed Dec 04, 2013 1:06 pm
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

Posted: Wed Dec 04, 2013 11:28 pm
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