Com MN PG P E B Consultant 3 a écrit :
I have set my statusbar text like this:

statusbar.text.1=\
li=$(LineNumber) of $(NbOfLines)  co=$(ColumnNumber) $(OverType) \
($(EOLMode)) $(FileAttr) Sel: $(SelLength) $(CurrentTime)

All fields are displayed fine, except that the current time is not
displayed.

Replacing CurrentTime by CurrentDate also does not display the date.

Mmm, that's something I wrote, but actually don't use...

Some stats, like current date/time and currently edited file's date, time and attributes, are updated less frequently than other stats (like current line/col), because it can be a slow operation.
You can see it updated when switching buffers, for example.
We probably can make it update on each keystroke, but in all cases, this won't be updated each second...

This code (setting these properties) was actually written for printing purpose, I used them because it was fun and cool, and as an example, but CurrentTime and CurrentDate has no practical use here, actually.

Note that you can write an OnChar() Lua handler to update more frequently these properties, with added bonus that you can choose your format. :-) (It currently use LOCALE_USER_DEFAULT on Windows.)

--
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --

_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to