Skip to main content

Configurations

At the moment, configuration files are not supported, because I'm in favor of compile-time configuration 1, for the following reasons:

  1. Easier to update
  2. Running with incompatible configurations is impossible 2
  3. Configuration as code
    • Free type-checking
    • Free formatting3
    • Ability to reduce duplications using functions
    • Easy backup (fork Ki-editor and push your modified config)

However, I'm open to suggestions, I might even create a new language for that.

Files for configurations

TypePath
Languagesshared/src/languages.rs

Environment variables for configurations

Intro

Until a method of basic configuration is decided upon, settings for Ki will be configured via the environment variables.

KI_EDITOR_THEME

The theme defaults to "VS Code (Light)". You can find a list of known themes by launching ki and using the Pick Theme option, space a.

KI_EDITOR_KEYBOARD

For configuring keyboard layout, with the following possible values:

  1. qwerty (Default)
  2. dvorak
  3. colemak
  4. colemak_dh
  5. colemak_dh_semi_quote
  6. dvorak_iu

Footnotes

  1. For example, see dwm and Xmonad

  2. Neovim usually let's you glide through until it commits kamikaze

  3. Rant: TOML does not endorse an official formatter