Skip to content

Editor Module

Sam edited this page Jul 10, 2024 · 1 revision

The editor module displays the name of your preferred editor, set by either $EDITOR or $VISUAL.

Using

Insert into the modules array.

Configuration

  • title -> (String) The module title.
  • format -> (String) The format used to display the module. Check below to see available placeholders
  • fancy -> (Bool) Display a fancy name opposed to the name of the raw binary.
  • title_color -> (Optional/String) Override the title color to be used.
  • title_bold -> (Optional/Bool) Make the title bold.
  • title_italic -> (Optional/Bool) Make the title italic.
  • seperator -> (Optional/Char) Override the separator to be used.
format placeholders;
  • {name} -> The name of the editor.
  • {path} -> The executable path of the editor.
Default Configuration
[editor]
title = "Editor"
format = "{name}"
fancy = true

Example

modules = [
    "editor"
]

[editor]
title = "Editor"
format = "{name} at {path}"
fancy = false