martanne / vis

A vi-like editor based on Plan 9's structural regular expressions
Other
4.27k stars 261 forks source link

Window layout property #812

Closed rokf closed 1 year ago

rokf commented 4 years ago

I'd appreciate the addition of a Vis, Window or Ui class property (Lua API) that would expose the current window layout for reading.

I'd use this for conditional split/vsplit and new/vnew command execution in plugins.

I know that I can achieve the same thing through window width and height comparison but having it exposed through a dedicated property sounds neat.