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
-
Halcyon Creates Anti-Ransomware Protection for Linux
As more Linux systems are targeted by ransomware, Halcyon is stepping up its protection.
-
Valve and Arch Linux Announce Collaboration
Valve and Arch have come together for two projects that will have a serious impact on the Linux distribution.
-
Hacker Successfully Runs Linux on a CPU from the Early ‘70s
From the office of "Look what I can do," Dmitry Grinberg was able to get Linux running on a processor that was created in 1971.
-
OSI and LPI Form Strategic Alliance
With a goal of strengthening Linux and open source communities, this new alliance aims to nurture the growth of more highly skilled professionals.
-
Fedora 41 Beta Available with Some Interesting Additions
If you're a Fedora fan, you'll be excited to hear the beta version of the latest release is now available for testing and includes plenty of updates.
-
AlmaLinux Unveils New Hardware Certification Process
The AlmaLinux Hardware Certification Program run by the Certification Special Interest Group (SIG) aims to ensure seamless compatibility between AlmaLinux and a wide range of hardware configurations.
-
Wind River Introduces eLxr Pro Linux Solution
eLxr Pro offers an end-to-end Linux solution backed by expert commercial support.
-
Juno Tab 3 Launches with Ubuntu 24.04
Anyone looking for a full-blown Linux tablet need look no further. Juno has released the Tab 3.
-
New KDE Slimbook Plasma Available for Preorder
Powered by an AMD Ryzen CPU, the latest KDE Slimbook laptop is powerful enough for local AI tasks.
-
Rhino Linux Announces Latest "Quick Update"
If you prefer your Linux distribution to be of the rolling type, Rhino Linux delivers a beautiful and reliable experience.