Page MenuHome

Add the current column number of the text in the bottom right
Needs ReviewPublic

Authored by Valentin (Poulpator) on Mar 14 2020, 2:39 AM.

Details

Summary

As the title suggest, the patch add the current column number in the footer.

What it's look like:

Diff Detail

Event Timeline

Maybe this should be tied to the line numbers setting, and then that setting could be renamed to be about column and line numbers?

Just to avoid clutter when it's not needed.

  • Adressed comment
Yevgeny Makarov (jenkm) requested changes to this revision.Dec 24 2020, 1:32 PM

Need to add a right alignment.

The "Col" is wrong word, there must be either a full word or a period to indicate that it is an abbreviation.
Maybe even something like "Line 101, Column 80" would look better.

row.separator_spacer()

sub = row.row()
sub.alignment = 'RIGHT'
sub.active = False

sub.label(text="Line 101, Column 80")

release/scripts/startup/bl_ui/space_text.py
101

There is already a check if text above, use nested conditions.

102

Use the iface_ here, this is necessary for translation, example just above in the code for filepath.

This revision now requires changes to proceed.Dec 24 2020, 1:32 PM
Yevgeny Makarov (jenkm) resigned from this revision.Dec 24 2020, 1:34 PM
This revision now requires review to proceed.Dec 24 2020, 1:34 PM