package ecaml

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Ecaml.Tabulated_listSource

Tabulated lists display table data, one line per record and one column per field.

Note that we attempt to improve upon the elisp interface of tabulated-list-mode.

Sourcemodule Column : sig ... end
Sourcetype 'record t
Sourceval create : Major_mode.t -> 'record Column.t list -> get_id:('record -> string) -> 'record t

Raises unless the major mode derives from Tabulated_list_mode.major_mode.

get_id is used to extract an ID value from each row. This ID is used to, among other things, preserve the position of point on a given row when the list is redrawn. The ID string must not be empty, due to implementation constraints.

Sourceval keymap : _ t -> Keymap.t
Sourceval major_mode : _ t -> Major_mode.t
Sourceval draw : ?sort_by:(string * [ `Ascending | `Descending ]) -> 'record t -> 'record list -> unit
Sourceval get_record_at_point_exn : 'record t -> 'record option

get_record_at_point_exn returns None if there is no record at point, and raises if the record at point cannot be of_value_exn'ed.

Sourceval move_point_to_record : 'record t -> f:('record -> bool) -> unit

move_point_to_record moves the point to the first record stisfying the predicate f

Sourceval current_buffer_has_entries : unit -> bool
Sourceval revert_hook : (Hook.normal, unit) Hook.t

(describe-variable 'tabulated-list-revert-hook)

OCaml

Innovation. Community. Security.