#10 status bar virtual column (%v, %V) and selected chars (%n)

open
nobody
None
5
2013-10-04
2011-08-27
Dimitar Zhekov
No

As you may have noticed, when cursor is in the "virtual space" (beyond eoln), our status bar always shows the last "real" column. This small patch adds a new %v (and %V) format specification, which displays a "virtual" column number, as if the line extends to the cursor position.

sci_get_cursor_virtual_space() isn't included the plugins interface for now, though it may be useful.

Since the virtual position normally requires 3 SSM()-s, and is less likely to be used than the line and column, the calls to sci_get_cursor_virtual_space() are into add_statusbar_statistics() instead of ui_update_statusbar().

Discussion

  • Dimitar Zhekov
    Dimitar Zhekov
    2012-08-07

    • summary: status bar virtual column (%v, %V) --> status bar virtual column (%v, %V) and selected chars (%n)
     
  • Dimitar Zhekov
    Dimitar Zhekov
    2012-08-07

    Added %n for selected chars, since %s now shows the selected chars-or-lines.

     
  • Dimitar Zhekov
    Dimitar Zhekov
    2012-12-22

    Added %n for selected characters.

     
  • Lex Trotman
    Lex Trotman
    2013-10-04

    Hi Dimitar, that looks ok, can you add doco in geany.txt to the patch as well.