Documentation

TermColor.Repl.Keymap

TermColor.Repl.Keymap #

Inspectable, ordered keyboard bindings. Contexts are values rather than callbacks, so a keymap is plain data: an application supplies the active context values for its current model.

A validated name for an active keybinding context.

Instances For
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      Equations
      Instances For

        Construct an application context from one centralized name.

        Equations
        Instances For
          structure TermColor.Repl.KeyBinding (Action : Type) :
          Instances For
            @[instance_reducible]
            instance TermColor.Repl.instReprKeyBinding {Action✝ : Type} [Repr Action✝] :
            Repr (KeyBinding Action✝)
            Equations
            def TermColor.Repl.instReprKeyBinding.repr {Action✝ : Type} [Repr Action✝] :
            KeyBinding Action✝ → Nat → Std.Format
            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              structure TermColor.Repl.Keymap (Action : Type) :
              Instances For
                @[instance_reducible]
                instance TermColor.Repl.instReprKeymap {Action✝ : Type} [Repr Action✝] :
                Repr (Keymap Action✝)
                Equations
                def TermColor.Repl.instReprKeymap.repr {Action✝ : Type} [Repr Action✝] :
                Keymap Action✝ → Nat → Std.Format
                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  structure TermColor.Repl.BindingSpec (Action : Type) :

                  One declarative action binding. Multiple physical keys may name one action.

                  Instances For
                    @[instance_reducible]
                    instance TermColor.Repl.instReprBindingSpec {Action✝ : Type} [Repr Action✝] :
                    Repr (BindingSpec Action✝)
                    Equations
                    def TermColor.Repl.instReprBindingSpec.repr {Action✝ : Type} [Repr Action✝] :
                    BindingSpec Action✝ → Nat → Std.Format
                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For
                      def TermColor.Repl.BindingSpec.expand {Action : Type} (spec : BindingSpec Action) :
                      List (KeyBinding Action)
                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For
                        def TermColor.Repl.Keymap.fromSpecs {Action : Type} (specs : List (BindingSpec Action)) :
                        Keymap Action
                        Equations
                        Instances For
                          def TermColor.Repl.Keymap.resolveBinding {Action : Type} (keymap : Keymap Action) (contexts : List KeyContext) (key : Widgets.Key) :

                          First matching binding wins; list order is the precedence contract.

                          Equations
                          • One or more equations did not get rendered due to their size.
                          Instances For
                            def TermColor.Repl.Keymap.resolve {Action : Type} (keymap : Keymap Action) (contexts : List KeyContext) (key : Widgets.Key) :
                            Option Action

                            Resolve the first matching action.

                            Equations
                            Instances For
                              def TermColor.Repl.Keymap.visible {Action : Type} (keymap : Keymap Action) (contexts : List KeyContext) :
                              List (KeyBinding Action)
                              Equations
                              Instances For
                                def TermColor.Repl.Keymap.keys {Action : Type} (keymap : Keymap Action) :
                                Equations
                                Instances For

                                  Return duplicate key/context pairs that rely on implicit first-match precedence.

                                  Equations
                                  • One or more equations did not get rendered due to their size.
                                  Instances For

                                    Built-in editor bindings #

                                    Instances For
                                      Equations
                                      • One or more equations did not get rendered due to their size.
                                      Instances For
                                        Instances For
                                          Equations
                                          • One or more equations did not get rendered due to their size.
                                          Instances For
                                            Equations
                                            Instances For
                                              Equations
                                              • One or more equations did not get rendered due to their size.
                                              Instances For
                                                Equations
                                                • One or more equations did not get rendered due to their size.
                                                Instances For
                                                  Equations
                                                  • One or more equations did not get rendered due to their size.
                                                  Instances For