Sunflower – A small, highly configurable file manager

Sunrise

© Lead Image © Larisa Kravets, 123RF.com

© Lead Image © Larisa Kravets, 123RF.com

Article from Issue 165/2014
Author(s):

Sunflower is a highly configurable graphical file manager with two windows that implement an unusual concept by trying to integrate the command line with the file manager.

File managers on the popular desktop environments, such as Gnome, KDE, and Xfce, use a single window. Sunflower [1], however, continues in the vein of the classic Norton Commander – or its Linux counterpart, Midnight Commander – and uses two windows and a small row of buttons at the bottom for frequently used actions.

Sunflower, which is still actively developed, is lean and fast compared with the Gnome or KDE candidates. Implemented in Python, Sunflower has an interface that accepts plugins for new features. The control concept is different from its competitors, as well: The Sunflower file manager makes intensive use of the keyboard. In this respect, Sunflower is similar to Midnight Commander, although its design is quite different and extremely effective.

Commanding

The main window (Figure 1) shows the two panes between which you can move files, directories, or selections in either direction via drag and drop. Each panel manages multiple directories in tabs, which you can rearrange and move between panels. This principle is also used by Chrome, Chromium, and Firefox browsers and takes just a short familiarization period to become second nature.

Figure 1: Like its role model Norton Commander, Sunflower always shows two directories as juxtaposed windows.

Along the top of the window, the tabs show which directories are currently in view, along with information about free space on the storage medium. The path to the current directory can be used like bread crumbs, so you can quickly jump to a path lower down in the directory tree. Three buttons in the top-right corner of a tab open a terminal with the current directory, change to recently opened folders, or open a previously bookmarked folder.

At the bottom of the panels, three pairs of numbers provide the number of (sub)directories contained in a folder, the number of files, and the size of the directory contents. The first number always represents the current selection; the second summarizes the figures for all folders and files within that directory. At the bottom of the window, an input box lets you run shell commands in the context of the current folder.

Installation

Sunflower is rarely found in the package repositories, so you might have to build the file manager yourself from source code [2] or import the DEB and RPM packages [3] offered by the project manually using your package manager. Alternatively, the project page on Google Code points to an Ubuntu PPA repository [4] with the current version. On Arch Linux and Gentoo, AUR or Portage simplify the install.

The option of opening a terminal with the currently viewed directory is very useful for experienced Linux users in particular (Figure 2). Alternatively, the keyboard shortcut Ctrl+Z opens the currently active folder in the terminal and Ctrl+D closes the terminal window again; pressing Ctrl+W closes the entire tab – whether it includes a terminal or the listing for a directory.

Figure 2: A mouse click or keystroke lets you open the currently active directory in a terminal window.

Sunflower displays files and directories with their most important information, such as file permissions, the last change date, and size, making it easy to use this information to sort files by column. For example, if you always want to see the most recently modified files at the top, click on the date field; the same applies to file size or file type.

Sunflower saves its current state and the directories displayed in each panel. Because of this, the file manager can restore all open tabs in the form of a session, even after you quit or restart the system. However, Sunflower is not limited to just the current status. If the Sessions plugin is enabled in Edit | Preferences | Plugins, you can store application states in Edit | Preferences | Sessions. (After clicking a plugin's checkbox to activate it, you must click Save then leave and restart Sunflower to enable it.)

Keyboard Shortcuts

If you often work with Norton Commander or one of its heirs, you will probably use hot keys for many actions; accessing a desired function via menus usually takes much more time. The different abbreviations are not set in stone with Sunflower; in Edit | Preferences | Key bindings, the file manager lets you change the assignments. Table 1 summarizes the most commonly used keyboard shortcuts for file operations, and Table 2 shows keyboard shortcuts for navigating the directory tree and other activities.

Table 2

General Keyboard Shortcuts

Keyboard Shortcut

Function

Ctrl + B

Edit bookmark

Ctrl + D

Bookmark current directory

Ctrl + T

Duplicate current tab

Ctrl + Shift + T

Open directory in new tab

Ctrl + W

Close current tab

Ctrl + Tab

Activate next Tab

Ctrl + Shift + Tab

Change to the previous Tab

Ctrl + Z

Open Terminal

Ctrl + R

Update pane

Backspace

Change to the parent directory

Alt + Left arrow

Go back in history

Ctrl + Backspace

Show history

Esc

Close history

Alt + letter

Quick search

Alt + number

Switch to bookmark

Menu or Shift + F10

Display menu

Ctrl + Menu

Open with menu

Ctrl + Left arrow or Ctrl+Right arrow

Use path from opposite panel

Alt + F3

Toggle preview function

F4

Text editor

Enter

Apply default action to selected files

Ctrl + Enter

Open current path in new tab

Ctrl + Alt + P

View options

F11

Switch to full-screen mode

Ctrl + Q

Quit Sunflower

Table 1

Keyboard Shortcuts for File Operations

Keyboard Shortcut

Function

Ctrl + A

Select all flies

F8 or Delete

Delete selection

Num + *

Invert selection

Num + +

Select by pattern

Num + -

Unselect by pattern

F5

Copy selection

F6

Move selection

Ctrl + C

Copy selected files to the clipboard

Ctrl + X

Move selected files to the clipboard

Ctrl + V

Paste from clipboard

Alt + Num + +

Select by (same) extension

Alt + Num + -

Unselect by (same) extension

Ctrl + F1

Bookmark for left pane

Ctrl + F2

Bookmark for right pane

F7

Create directory

Ctrl + F7

Create empty file

Ctrl + H

Show/hide hidden files (dot files)

F12

Compare directories

One special feature of Sunflower is that file operations like copying, renaming, or moving files and directories can be applied to a group of selected files. While Midnight Commander only offers a few options for selecting multiple files in a single step, Sunflower lets you do this in very different ways: For example, it is possible to select an entire file type based on the file extension or, of course, to create selections on the basis of name patterns.

If you work with Total Commander on Windows – or still remember Norton Commander from many years ago – you might be also used to selecting files with a right-click for subsequent file operations. Sunflower offers this option, too, but you first need to enable the function in Edit | Preferences | Item List | Operation | Right click selects items. However, this modifies the behavior of the contextual menu, which otherwise uses the right mouse button: You need to press the mouse button somewhat longer in this case.

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Sunflower

    Following in the footsteps of Norton Commander and its clones, the Sunflower twin-panel file manager takes a giant leap forward with a switch to Python 3 and GTK3.

  • File Managers

    Working with files and folders is a typical daily task on any computer. We tested four lesser known file managers that significantly simplify handling content on mass storage media.

  • Ranger

    Ranger offers a wealth of commands – many with alternatives – and less reliance on a mouse.

  • 4Pane 2.0

    4Pane provides additional confidence in file management in the form of a clever undo function. Advanced users can install supplemental scripts in an instant.

  • CLI File Manager

    If you're a Linux lover, you'll know the command line is the slickest and most efficient way to interact with the system. Free yourself from point-and-click with the nnn command-line file manager.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News