Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

The toolbar

Under the menu bar is a tabbed toolbar, like the ribbon in Microsoft Office. Each tab holds groups of buttons for commands you use often. You can put any menu command on it, plugin commands and saved macros too, and arrange the tabs, groups and buttons however you like.

The toolbar's Home tab: File, Transform (Keep Matching, Filter Command, Format, Convert to), Recipes, Find and Quick groups

Using it

  • Click a tab name (Home, Edit, Transform, View, Tools) to show its buttons.
  • Hover over a button to see where its command is in the menus and its shortcut.
  • A button with a ▾ under or beside its label, such as Format or Convert to, opens a menu.
  • ? at the right of the tab names opens the Help menu: User Manual, User Manual on the Web, Check for Updates and About.
  • Buttons for commands that turn something on or off, such as Word Wrap, are outlined while it's on. Buttons for commands that can't run right now, such as Undo with nothing to undo, are greyed out.
  • When the window is too narrow for a tab, its groups shrink to fit (see below), so every button stays one click away.

When the window is narrow

The toolbar never scrolls and never cuts a label off. When a tab's groups don't fit, they shrink one step at a time, starting with the group on the right:

  1. Small: large buttons become small ones, three to a column.
  2. Icons only: small buttons lose their labels. Hover over one to see its name and shortcut. A group whose buttons share one icon skips this step.
  3. Collapsed: the whole group becomes one button with the group's name and a ▾. Click it for a menu of the group's commands, with the same ticks and greyed-out entries the buttons would show.

When every group is as small as it gets and the tab still doesn't fit, the groups on the right move behind a » button at the end of the toolbar. Its menu lists them, each with its commands. Widen the window and the groups come back, largest first.

The Transform tab in a narrow window: Lines, Identifier Case, Convert and Encode are collapsed into dropdown buttons

This works for a toolbar you've customised too. Some labels are shorter on the toolbar than in the menus: Transform > Filter Through Command… is Filter Command.

On first launch Ettin Edit opens at 80 % of your screen (at most 1400×900, at least 1100×720), so the default tabs fit without shrinking on most screens. After that it remembers the size you leave it at. If you quit with the window maximized, it opens maximized again; un-maximizing it then gives the first-launch size.

The default tabs

TabGroups
HomeFile (New, Open, Save); Transform (Keep Matching, Filter Command, Format ▾, Convert to ▾); Recipes (Recipes ▾, Record Recipe, Run Last Recipe); Find (Find, Replace, Command Palette); Quick (Case ▾, Sort Lines, Remove Duplicates)
EditClipboard, Undo, Search, Tabs, Lines, Sort, Case, Comment, Blanks, Selection
TransformRecipes, Command, Lines, Identifier Case, Convert (To JSON, To YAML, To TOML, To XML, To CSV, To Markdown table), Encode
ViewShow, Zoom, Folding, Panels, Window, Customise
ToolsCompare, JSON, XML, Data (CsvQuery and MIME Tools), Macros

Home puts transforms first. Its drop-down buttons open the same menus as Transform: Format has Format, Minify and Sort Keys for JSON and Format, Linearize, Escape and Unescape for XML; Convert to is Transform > Convert to; Recipes lists your recipes with Manage Recipes and Record Recipe; Case is Transform > Convert Case To. Customise Toolbar lists these menus under Drop-down menus, so you can put them on any tab.

Until 2.1, Home also had Clipboard, Undo, Find in Files, Tabs and Help groups. The first four are at the start of the Edit tab now, and Help is the ? button. If you never changed your Home tab, it is updated to the new one the first time 2.1 starts. If you did change it, it is left as you made it.

Simplified toolbar

The simplified toolbar: one row of small buttons on the Home tab

☰ Simplified at the right of the tab names (or View > Toolbar > Simplified Toolbar) turns the toolbar into one row of small buttons, which leaves more room for the text. It uses the same tabs and buttons: large buttons keep their labels and small ones show just their icon. Click ☰ Full to go back. Ettin Edit remembers which one you use.

When the row doesn't fit, it shrinks the same way as the full toolbar, starting on the right: buttons lose their labels, then a group becomes one drop-down with its name and a ▾, and when that isn't enough, the groups on the right go behind ».

Collapsing and hiding

To give the text more room, collapse the toolbar so only its tab names show:

  • click ⌃ at the right end of the tab names, or
  • double-click a tab name, or
  • press Ctrl+F1, or
  • choose View > Toolbar > Collapse Toolbar.

While it's collapsed, clicking a tab name opens its buttons over the text; they close again when you click a button or anywhere else. Expand it the same ways (⌄ at the right end).

View > Toolbar > Toolbar hides the toolbar completely and shows it again; so does Hide the toolbar in its right-click menu.

You can hide the classic menu bar as well, with View > Menu Bar, Ctrl+M or Hide the menu bar in the toolbar's right-click menu. While it's hidden, tap Alt to show it for a moment, and press Ctrl+M to bring it back for good. The Help menu's commands (the user manual, Check for Updates and About) are under the toolbar's ? button too. With both hidden, only the tabs, the text and the status bar are left. Both choices are kept in settings.json.

Customising

Open Settings > Customise Toolbar…, or right-click the toolbar and choose Customise Toolbar… (it's also in View > Toolbar and in Preferences).

The Customise Toolbar dialog: commands on the left, the toolbar's tabs, groups and buttons on the right

On the left is every command you can add: everything in the menus (themes, languages and encodings included), the commands of plugins that are running, and your saved macros. Type in the filter box to narrow the list; it matches every word you type, anywhere in the command's menu path.

On the right is the toolbar: tabs, the groups in each tab, and the buttons in each group.

Adding a button

  • Drag a command from the left onto the right. Dropped on a button, it goes in front of that button; dropped on a group or a tab, it goes at the end of it.
  • Or pick a command on the left, select where it should go on the right, and click Add › (or double-click the command). It goes after the selected button, or at the end of the selected group.

Arranging

  • Drag tabs, groups and buttons to move them. A button can move to another group or tab, and a group to another tab.
  • ▲ and ▼ move the selected item one place. A button at the end of its group moves into the next group.
  • ‹ Remove takes the selected button, group or tab off the toolbar. You can also right-click a button on the toolbar and choose Remove from Toolbar.
  • New Tab and New Group add an empty one after the selection.
  • Untick the box in front of a tab to hide it without losing its buttons.

Changing a button, group or tab

Select it on the right and change it at the bottom of the dialog:

SelectedWhat you can change
A tab or groupIts name. The built-in names follow the interface language until you rename them.
A buttonLabel (leave it empty for the command's own name), Size and Icon

Large buttons have the icon above the label. Small buttons have the icon beside the label, and three of them stack in a column.

Change… opens the icon picker. It has the 1,500 icons of the Phosphor set (MIT licence); type part of a name, like star or arrow, to find one. Use the command's icon goes back to the default.

Changes show on the toolbar and are saved as you make them; Close keeps them. Undo Changes puts the toolbar back as it was when you opened the window, and Reset to Defaults puts back the toolbar Ettin Edit came with.

Plugin commands

Plugin commands appear under Plugins › plugin name in the command list once the plugin is running. A plugin can give its commands an icon; the others get a puzzle piece. While a plugin isn't running (turned off, or still starting), its buttons are left off the toolbar, and they come back when it runs again. In the Customise dialog they show greyed out.

To give your own plugin's commands an icon, see Writing plugins.

Where the layout is kept

Your toolbar is saved in toolbar.json in the settings folder (~/.config/EttinEdit on Linux, %APPDATA%\EttinEdit on Windows). Copy that file to use the same toolbar on another computer. While you haven't changed anything, there's no file and you get the default toolbar, including any new buttons later versions add. A toolbar you have customised keeps your changes; Ettin Edit 1.7 adds only the new Help group to the end of its Home tab (unless you renamed or removed that tab), so the Help commands can be reached while the menu bar is hidden. Delete the group if you don't want it. Ettin Edit 1.9.5 likewise adds the Transform tab after your Edit tab (unless you removed that tab); hide or delete it if you don't want it. Ettin Edit 2.0 adds the Recipes group to the start of your Transform tab. Ettin Edit 2.0.2 turns old "JSON to YAML" style buttons into To YAML style Convert to buttons (keeping your labels and icons), and moves recipe buttons from the recipe's name to its id. Whether the toolbar is shown or collapsed is kept in settings.json.