Module view

The currently focused view. It also represents the structure of any view table in 'views'.

Fields

  • doc_pointer: The pointer to the document associated with this view's buffer. (Used internally; read-only)
  • size: The integer position of the split resizer (if this view is part of a split view).

Fields

  • doc_pointer: The pointer to the document associated with this view's buffer. (Used internally; read-only)
  • size: The integer position of the split resizer (if this view is part of a split view).

Fields

  • doc_pointer: The pointer to the document associated with this view's buffer. (Used internally; read-only)
  • size: The integer position of the split resizer (if this view is part of a split 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.
view:split (vertical) Splits the indexed view vertically or horizontally and focuses the new view.
view:unsplit () Unsplits the indexed view if possible.


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' signals.

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.

Valid XHTML 1.0!