Files, folders and the command line
The settings folder
Ettin Edit keeps everything it remembers in one folder:
- Linux:
~/.config/EttinEdit(or$XDG_CONFIG_HOME/EttinEditif you setXDG_CONFIG_HOME) - Windows:
%APPDATA%\EttinEdit, usuallyC:\Users\<you>\AppData\Roaming\EttinEdit
| In it | What it holds |
|---|---|
settings.json | Your preferences, recent files, saved macros, changed shortcuts, the schemas picked for XML files, and the recipes allowed to run commands without asking |
toolbar.json | Your toolbar layout, once you've changed it |
session.json | The tabs that were open, with their carets, encodings and split view |
backup/ | Backups of unsaved changes, so they survive a crash |
recipes/ | Your recipes, one .json file each |
themes/ | Every theme as a .tmTheme file (Themes). .builtin-themes.json tracks which built-in themes you haven't edited. |
languages/ | Your own languages (Languages) |
api/ | Your own completion lists (Languages) |
translations/ | Your own translations, one .ftl file per language, and an English copy to start from (Translations) |
plugins/ | Your plugins, one folder each (Using plugins). .sdk/ holds the plugin SDKs, kept up to date by Ettin Edit. |
instance.json | How a second Ettin Edit finds the running one |
backups/ | Copies of the files that Import Settings… replaced, one folder per import |
Settings > Open Settings Folder opens this folder. The Open … Folder commands in the Theme, Language, Plugins and Transform > Recipes menus, and Open Translations Folder in Preferences, open the folders in it for you, creating them if needed.
You can edit settings.json, themes, languages, translations and recipes
while Ettin Edit runs: it reloads a file within a second of you saving it.
See Where settings are kept.
Backing up or moving your settings
Settings > Export Settings… puts your settings, shortcuts, toolbar, themes, recipes and languages in one file, and Import Settings… reads it on another computer. See Moving your settings to another computer.
To copy everything, plugins and sessions included, close Ettin Edit and copy the whole folder. To start afresh, close Ettin Edit and rename the folder; Ettin Edit makes a new one with the defaults next time it starts.
The command line
ettin-edit [--multi-instance] [file ...]
ettin-edit --recipe NAME [--allow-commands] [--in-place] [--out FILE] [file ...]
ettin-edit --list-recipes
-
Each file opens in a tab. A file that can't be opened, for example because it doesn't exist, is reported and skipped.
-
If Ettin Edit is already running, the files open in its window, which comes to the front (unless Settings > Single Window is off).
-
--multi-instance(or-multiInst, as in Notepad++) always starts a new window. -
--reciperuns a recipe on the files (or standard input) without opening a window;--outwrites the result to a file, and--list-recipeslists your recipes. -
A workbook (
.xlsx,.odsand so on) opens as a table.
On Windows, the installer can add Ettin Edit to the PATH so this works in
any terminal. On Linux the packages put ettin-edit on the PATH.
Plugins' environment
Plugins run as separate programs. They get the ETTIN_VERSION environment
variable with Ettin Edit's version; see Writing plugins.