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 47.2 Now Available
Gnome 47.2 is now available for general use but don't expect much in the way of newness, as this is all about improvements and bug fixes.
-
Latest Cinnamon Desktop Releases with a Bold New Look
Just in time for the holidays, the developer of the Cinnamon desktop has shipped a new release to help spice up your eggnog with new features and a new look.
-
Armbian 24.11 Released with Expanded Hardware Support
If you've been waiting for Armbian to support OrangePi 5 Max and Radxa ROCK 5B+, the wait is over.
-
SUSE Renames Several Products for Better Name Recognition
SUSE has been a very powerful player in the European market, but it knows it must branch out to gain serious traction. Will a name change do the trick?
-
ESET Discovers New Linux Malware
WolfsBane is an all-in-one malware that has hit the Linux operating system and includes a dropper, a launcher, and a backdoor.
-
New Linux Kernel Patch Allows Forcing a CPU Mitigation
Even when CPU mitigations can consume precious CPU cycles, it might not be a bad idea to allow users to enable them, even if your machine isn't vulnerable.
-
Red Hat Enterprise Linux 9.5 Released
Notify your friends, loved ones, and colleagues that the latest version of RHEL is available with plenty of enhancements.
-
Linux Sees Massive Performance Increase from a Single Line of Code
With one line of code, Intel was able to increase the performance of the Linux kernel by 4,000 percent.
-
Fedora KDE Approved as an Official Spin
If you prefer the Plasma desktop environment and the Fedora distribution, you're in luck because there's now an official spin that is listed on the same level as the Fedora Workstation edition.
-
New Steam Client Ups the Ante for Linux
The latest release from Steam has some pretty cool tricks up its sleeve.