Skip to main content
Version: 2.2

Dux Labs

Settings

Settings

Open Settings with Ctrl+, or from the window menu. Settings are stored in ~/.config/dux/edit/settings.json and apply at once. The key for each row is listed so you can set it from a script.

Colors follow the theme: Dux Edit uses Dux Modular Shell colors when the shell publishes them, and a preset otherwise.

Appearance​

SettingKeyWhat it does
ModeviewModeadvanced or simple. Simple hides the status details, line numbers and a lone tab
ThemethemeModeFollow System (auto, from the desktop portal), light or dark
ColorscolorSourceDux Shell (auto) uses shell colors when published, Preset (preset) always uses the preset
PresetpresetThemepurple, blue, green, orange, red, cyan, pink, amber, coral or monochrome. Also used when shell colors are not available
LanguagelanguageEmpty follows the system language

Editor​

SettingKeyWhat it does
Monospace FontuseMonospaceUse a monospace font instead of the theme's regular one
Font FamilyfontFamilyEmpty follows the theme's font for the chosen kind
Font SizefontSize8 to 48, default 14. Zoom with Ctrl++ and Ctrl+-
Line NumbersshowLineNumbersShow the gutter
Highlight Current LinehighlightCurrentLineBand behind the cursor line
Wrap LineswrapModeauto wraps prose and Markdown and leaves code unwrapped, on or off
Tab WidthtabWidth1 to 8, default 4. .editorconfig and Vim modelines override it per file
Insert SpacesinsertSpacesThe Tab key inserts spaces instead of a tab
Markdown PreviewmarkdownPreviewModeHow a Markdown document opens: off, split (side by side) or full (preview only)

Files​

SettingKeyWhat it does
AutosaveautoSaveSave files two seconds after the last edit
Restore SessionrestoreSessionReopen the last tabs on start. Unsaved work is always kept
Closing the WindowcloseBehaviorquit quits Dux Edit, background keeps it running with no editors loaded
DMS NotesImport the tabs and settings of the DMS notepad. Same as dux-edit import-dms-notes

Highlighting​

SettingKeyWhat it does
Syntax HighlightinghighlightEnabledTurn highlighting on or off
Custom ColorssyntaxColorsPer-role colors (#rrggbb) applied over the theme-derived palette. Roles: text, keyword, type, constant, function, tag, attribute, preprocessor, variable, string, escape sequence, regular expression, number, operator, punctuation, comment, heading, emphasis, strong emphasis, inserted line, deleted line, error, link and inline code. Reset All drops every custom color

Highlighting is exact up to 2 MiB, 50,000 lines and 10,000-character lines. Above that, a document opens without highlighting. The language is detected from the file, and can be overridden from the status bar.

Spellcheck​

SettingKeyWhat it does
Check SpellingspellcheckEnabledNeeds hunspell and a dictionary for the language
LanguagespellcheckLanguageauto follows the locale, or an installed dictionary code
Check String LiteralsspellcheckStringsAlso check text inside quotes in code

Words added from the spelling menu go to ~/.config/dux/edit/custom_dictionary.txt.

Plugins​

SettingKeyWhat it does
EnableenabledPluginsPlugin id to true. Enabling loads the plugin at once and disabling destroys it

Rescan looks for newly installed plugins. See Plugins.

Keyboard Shortcuts​

A searchable list of every shortcut, plugin commands included. See Keyboard.