Skip to content

Configuration

Configuration file location: $XDG_CONFIG_HOME/go-cli-template/config.toml

Configuration Options

The following options can be set in your configuration file:

General Settings

OptionTypeDefaultDescription
editorstringnvimEditor to use for editing bookmarks and config files
interactive_defaultboolfalseStart in interactive mode by default when no arguments are provided

Display Settings

OptionTypeDefaultDescription
list_spacingstringspaceList item spacing. Options: compact (title only), tight (title + description, no margin), space (default, with spacing)

Colors

Colors support named, numeric, or hex values (e.g., 7, 13, "#ff8800").

OptionTypeDefaultDescription
headingsstring15Color for headings
primarystring02Primary color
secondarystring06Secondary color
textstring07Text color
text_highlightstring06Highlighted text color
description_highlightstring05Highlighted description color
tagsstring13Tags color
flagsstring12Flags color
mutedstring08Muted text color
borderstring08Border color

Example Configuration

# General
editor = "nvim"
# CLI behavior
interactive_default = true
# UI
# list_spacing options: compact (title only), tight (title + description, no margin), space (default, with spacing)
list_spacing = "space"
# Colors
# Colors support named, numeric, or hex values (ex: 7, 13, "#ff8800").
headings = "15"
primary = "02"
secondary = "06"
text = "07"
text_highlight = "06"
description_highlight = "05"
tags = "13"
flags = "12"
muted = "08"
border = "08"

Initializing Configuration

To create a new configuration file with default values:

Terminal window
bookmark config init

To overwrite an existing configuration:

Terminal window
bookmark config init --force

To create and immediately open in your editor:

Terminal window
bookmark config init --editor

Editing Configuration

To edit your configuration file:

Terminal window
bookmark config

This will open the config file in your configured editor.