Sunflower – A small, highly configurable file manager
Sunrise
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.
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.
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
(incl. VAT)
Buy Linux Magazine
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.
News
-
Gnome OS Transitioning Toward a General-Purpose Distro
If you're looking for the perfectly vanilla take on the Gnome desktop, Gnome OS might be for you.
-
Fedora 41 Released with New Features
If you're a Fedora fan or just looking for a Linux distribution to help you migrate from Windows, Fedora 41 might be just the ticket.
-
AlmaLinux OS Kitten 10 Gives Power Users a Sneak Preview
If you're looking to kick the tires of AlmaLinux's upstream version, the developers have a purrfect solution.
-
Gnome 47.1 Released with a Few Fixes
The latest release of the Gnome desktop is all about fixing a few nagging issues and not about bringing new features into the mix.
-
System76 Unveils an Ampere-Powered Thelio Desktop
If you're looking for a new desktop system for developing autonomous driving and software-defined vehicle solutions. System76 has you covered.
-
VirtualBox 7.1.4 Includes Initial Support for Linux kernel 6.12
The latest version of VirtualBox has arrived and it not only adds initial support for kernel 6.12 but another feature that will make using the virtual machine tool much easier.
-
New Slimbook EVO with Raw AMD Ryzen Power
If you're looking for serious power in a 14" ultrabook that is powered by Linux, Slimbook has just the thing for you.
-
The Gnome Foundation Struggling to Stay Afloat
The foundation behind the Gnome desktop environment is having to go through some serious belt-tightening due to continued financial problems.
-
Thousands of Linux Servers Infected with Stealth Malware Since 2021
Perfctl is capable of remaining undetected, which makes it dangerous and hard to mitigate.
-
Halcyon Creates Anti-Ransomware Protection for Linux
As more Linux systems are targeted by ransomware, Halcyon is stepping up its protection.