Skip to content

button bar

Alexander Herling edited this page Nov 11, 2026 · 2 revisions

Button bar

The button bar sits under the menu bar, as in Total Commander: one click starts a program with the files of the panel, runs one of rCommander's commands or one of your own commands, or opens a sub-bar of further buttons as a menu. A second, vertical bar can stand between the two panels. rCommander starts with the bar Default: Reread, Brief and Full view, Invert selection, Pack, Unpack, Find files, Quick View, Multi-rename, Synchronize folders and the terminal.

The button bar under the menu bar as a row of icons, the keyboard on the first one: Reread, Brief and Full view, Invert selection, Pack, Unpack, Find files, Quick View, Multi-rename, Synchronize folders and the terminal

Using the buttons

  • A click runs the button for the active panel. A button with ▾ opens its sub-bar as a menu under it; a click on a row of the menu runs that button, a click beside the menu closes it.
  • Icons and tooltips: as in Total Commander, each button shows an icon at the size Settings > Appearance gives (see Size and look) - its own symbol (a file, or one of rCommander's own symbols), else an own command's symbol, else for rCommander's commands the matching icon (Reread, Brief, Full, Pack, Unpack, Find files, Quick View and others), else on Windows the program's own icon. Only a button with no icon at all shows its name as text. The tooltip always names the button; what does not fit the bar's width waits behind ».
  • A right click on a button, or on the bar beside the buttons, opens the bar's menu.
  • The keyboard: Alt+Shift+F11 puts the keyboard into the button bar, Alt+Shift+F12 into the vertical one. The arrows along the bar move between the buttons, Home and End go to the first and the last, Enter runs the button, the arrow across the bar (Down, or Right in the vertical bar) or Space opens its sub-bar, Shift+F10 or the context-menu key the bar's menu for the button, Escape goes back to the panel. In a menu Up and Down choose, Enter or Right run or open, Left and Escape go back.

The bar's menu

A right click on a button, Shift+F10 or the context-menu key while the bar has the keyboard opens the bar's menu - the same kind of menu as the file list's:

Entry What it does
Change... Opens the button in the button bars window (only on a button).
Delete Takes the button out of the bar (only on a button).
Insert button... Adds a new button after this one in the button bars window (only on a button).
Edit bar... Opens the bar in the button bars window.
Symbol size 16, 24, 32 or 48 pixels, the size in force checked; Other... opens Settings > Appearance > Window, where any size from 16 to 48 can be typed.
Flat buttons Switches the flat look on and off for both bars (checked while on).
Hide button bar, Hide vertical button bar Hides the bar; the View menu brings it back.

A right click beside the buttons, or on a separator, offers the entries from Edit bar... on. In the menu Up and Down choose (round the ends), Home and End go to the first and the last, a letter goes to the entry it starts, Enter or Space take it; Right opens Symbol size, Left and Escape go back from it, Escape closes the menu.

Dropping files on a button

Drop files from a panel or from the Explorer on a button that starts a program, and the program gets them after its own parameters, one argument each - the way Total Commander does. Only local files go: an entry on a server or inside an archive is left out, and the status line says so. A button that runs rCommander's commands takes no files.

Hold Shift while you drop a file on a bar, and it becomes a new button that starts that file, after the button you dropped it on, or at the bar's end.

Changing the bars

Configuration > Button bar..., the command palette's Button bars and a button's Change... open the button bars window:

  • Bar: which bar to edit, with New, Delete bar and Import .bar.... A bar that another bar opens as its sub-bar is not deleted; change that button first.
  • Name of the bar, and its items in a list: Add button, Add separator, Remove, and Ctrl+Up and Ctrl+Down move the item at the cursor.
  • The form of a button: whether it runs a command or opens a sub-bar. A command is what an own command holds - a program with Total Commander's parameters such as %P%N or %S (Browse... chooses one), its start folder, its window and Run as administrator; or rCommander's commands by name, such as cm_SrcFull or view_brief; or one of your own commands em_.... A sub-bar is another of your bars.
  • Symbol: a .png or .ico file, on Windows also an .exe or .dll with the number of the icon in it, or one of rCommander's own symbols chosen with Choose symbol... (see below); without one, an own command's button shows the symbol the own command has, a button of rCommander's commands its icon, and a program's button the program's own icon on Windows.
  • Tooltip: what the pointer shows, and the button's text when it has no icon at all. An own command's button without one takes the own command's tooltip.
  • Use as button bar and Use as vertical bar show the bar there; Save keeps the changes.

Sub-bars nest at most four levels deep, and none may open a bar above it; rCommander keeps up to 64 bars of 128 buttons each.

Choosing a symbol

rCommander brings its own collection of symbols for buttons and own commands, as Total Commander brings WCMICONS.DLL: 467 symbols in nine categories (files and folders, editing, tools, network and servers, development, media, system, arrows, status), drawn in the colour of the theme's text in light and dark alike. Choose symbol... beside Browse... - in this window and in the form of an own command - opens them in place of the form:

  • Search by a symbol's name or an English word for it (folder, trash, terminal, upload); the grid narrows as you type.
  • Categories on the left: Recently used (the symbols your own commands and bars use already), All symbols, then the nine categories.
  • The grid shows the symbols at the size of your bars; a click puts the cursor on one, a double click takes it. Below, the symbol at the cursor shows large, as the button will show it, with its name and the button's tooltip.
  • The keyboard: it starts in the search; Tab moves between search, categories, grid, OK and Cancel; the arrows move in the grid (Up and Down from the search too) and choose the category in the list; Home, End, PageUp and PageDown move in the grid; Enter takes the symbol at the cursor; Escape goes back to the form unchanged.

OK puts the symbol into the form; it is kept by its name, so it stays the same symbol in later versions. Should a later version no longer have it, the button shows its name as text until you choose another. A file with its icon number remains the other way to a symbol; the symbols of Total Commander's imported bars stay files as before.

Importing Total Commander's bars

Import .bar... reads a Total Commander .bar file - ANSI or Unicode - with every sub-bar it opens, and shows each button with what it becomes: an rCommander command, an own command, a program, a sub-bar, a separator, or why it is left out (a folder change, a cm_ command rCommander does not know is named). Nothing is saved before Import; a bar whose name is taken gets a number. In a symbol's or a sub-bar's path, %COMMANDER_PATH% is the folder of the file you import.

Showing and hiding the bars

The View menu shows or hides each bar of the window, as Total Commander's layout settings do: the button bar, the vertical button bar, the drive buttons, the command line, the status bar and the function-key bar. The bar's own menu hides it too. The command palette (Ctrl+Shift+P) has Show/hide the button bar and Show/hide the vertical button bar; like Total Commander they have no key of their own. Total Commander's cm_VisButtonBar and cm_VisButtonBar2 do the same in a button or an own command, which can be given a key on the Shortcuts tab. The same switches are in Settings > Appearance > Window, with which bar each place shows and the size and look of the buttons:

Setting Default
Show the button bar (appearance.button_bar) on
Show the vertical button bar (appearance.vertical_button_bar) off
Bar above the panels, bar between the panels (buttonbar.horizontal, buttonbar.vertical) 0, the first bar
Size of the button symbols (buttonbar.icon_size) 24 pixels, 16 to 48
Room around the button symbols (buttonbar.button_padding) 5 pixels, 0 to 12
Flat buttons (buttonbar.flat) off
Show the drive buttons, the command line, the status bar (appearance.drive_bar, appearance.command_line, appearance.status_bar) on

Size and look

The symbol size, the room around the symbols and the flat look apply to both bars at once and change them at once, without a restart. As in Total Commander's Change button bar dialog, the symbol and the button have separate sizes: the button is the symbol plus the room on each side. Flat buttons have no frame and no fill; the button under the pointer and the one the keyboard is on still show theirs. Total Commander has no space between buttons, and neither has rCommander - a separator in the bar is the gap. On Windows a program's or a library's icon is read at the chosen size, so 40 or 48 pixels stay as sharp as 16 or 32; an icon of the collection is drawn at any size.

For AI assistants

button_bars_list and button_bars_get read the bars, button_bars_run runs a button with what you stored, asked for like a program's start; a button that starts as administrator or asks for its parameters is yours to run. Saving, deleting and importing bars is for people only. A symbol of rCommander's own collection reads as rc-symbol:<name>. Showing, hiding and the look of the bars are settings: settings_set with appearance.button_bar, buttonbar.icon_size, buttonbar.button_padding or buttonbar.flat. See the MCP server.

Clone this wiki locally