package oxbow

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

Source file cmd_layout_scrolling_select.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
open! Oxbow_core
open! Oxbow_ipc

let command_term align =
  let open Cmdliner.Term.Syntax in
  let+ scope = Ctl_cli.setting_scope_term in
  Command.Layout (Scrolling (Select { align; scope }))
;;

let scroll_targets = Ctl_cli.enum_of Align.to_string Align.all

let mk_leaf (name, policy) =
  Ctl_cli.cmd_pair
    ~name
    ~doc:(Printf.sprintf "Switch to the scrolling layout with %s alignment" name)
  @@ command_term policy
;;

let cmds, bind_cmds = List.map mk_leaf scroll_targets |> List.split