Module view
The currently focused view. It also represents the structure of any view table in 'views'. [Dummy file]
Functions
| view:focus () |
Focuses the indexed view if it hasn't been already. |
| view:goto_buffer (n, absolute) |
Goes to the specified buffer in the indexed view. |
| view:split (vertical) |
Splits the indexed view vertically or horizontally and focuses the new view. |
| view:unsplit () |
Unsplits the indexed view if possible. |
Tables
| view |
The currently focused view. |
Functions
- view:focus ()
-
Focuses the indexed view if it hasn't been already.
- view:goto_buffer (n, absolute)
-
Goes to the specified buffer in the indexed view. Activates the 'buffer_switch' signal.
Parameters
-
n: A relative or absolute buffer index.
-
absolute: Flag indicating if n is an absolute index or not.
- view:split (vertical)
-
Splits the indexed view vertically or horizontally and focuses the new view.
Parameters
-
vertical: Flag indicating a vertical split. False for horizontal.
Return value:
old view and new view tables.
- view:unsplit ()
-
Unsplits the indexed view if possible.
Return value:
boolean if the view was unsplit or not.
Tables
- view
- The currently focused view. It also represents the structure of any view table in 'views'.
Fields
-
size: The integer position of the split resizer (if this view is part of a split view).