Skip to content

a3s7p/Greek.hx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Greek.hx

Still missing the GREEK/FRONT key of your space-cadet keyboard?

Space cadet keyboard

Say no more.

Screenshot

  • Adds customizable GREEK key to your favorite editor.
  • Default keymap based on the classic CADR aka Symbolics layout.
  • Can be extended to include any other Unicode characters.
  • 100% Steel, 0 dependencies.

Installation

Requires Steel plugin support.

Install via forge:

forge pkg install --git https://github.com/a3s7p/Greek.hx.git

Or install from cloned repo:

forge install

Require and call setup function in init.scm:

(require "helix-greek/helix-greek.scm")
; Usage example / will trigger when pressing C-l in insert mode
(setup-greek-bindings! default-greek-table "insert" "C-l")

The virtual keyboard will now appear when pressing C-l in insert mode.

Customization

Remapping the keys:

(setup-greek-bindings!
  (map (λ (spec) (cons
    (car spec) ; <- put your own logic here instead
    (cdr spec))) default-greek-table)
  "insert" "C-l")

Binding in normal mode:

(setup-greek-bindings! default-greek-table "normal" "C-l")

Also defines typed commands for every letter like :insert-alpha and :insert-Alpha that can be used with other plugins or in your own code.