Sunflower – A small, highly configurable file manager
Practical Sunflower
As with other file managers, switches at the bottom of the main window apply frequently used file operations, such as copy or move, to the current selection. To display or hide this bar as required, click View | Show command bar. Selecting Silent mode when you Copy of Move items makes lengthy file operations convenient by displaying error messages collectively at the end of all processes (Figure 3).
To add bookmarks to important and frequently used directories, use the bookmark button in the header bar of the panel; Sunflower lets you to use intuitive names. Selecting Edit | Preferences | Bookmarks (or pressing Ctrl+B) calls the bookmark manager, where you can manage and rearrange your bookmarks. To access saved bookmarks directly, press Alt+<n> to go to bookmark n.
One of my favorite features is the ability to select all the files that match the file type of the currently selected file by pressing Alt+Num++ in the numeric keypad. For example, you can copy all RAW files from the memory card of a digital camera with just a few keystrokes. Pressing Alt+Num+- inverts this operation and excludes the file type of the currently selected file from the selection. You can monitor the progress of longer file operations under Operations without the file manager blocking further actions.
A relatively new feature in Sunflower is the way the file manager manages the directories you visited in a history. Ctrl+Backspace opens the corresponding history window (Figure 4) and supports certain actions with the existing entries. Pressing Ctrl+L opens a specific directory, as in some other file managers. The command is linked to directories that you can access directly.
Sunflower offers different methods of sorting the file list: the file manager usually sorts enumerated files (e.g., 1.png, 10.png, 2.png, 21.png) alphabetically, but you can go to Edit | Preferences | Item List | Operation | Number sensitive item sorting to change to a numeric sort order. Now you'll see the files sorted correctly as 1.png, 2.png, 10.png, 21.png (Figure 5).
In the same dialog, you will also find the settings for a quick search. To select a specific directory, just type its name. Sunflower then jumps letter by letter to the desired destination, and you do not even have to start with the first letter of the file name; for example, to find the file IMG4711.jpg, you can simply enter 47. If do not like the quick search live, you can enable after an additional switch is pressed (i.e., Ctrl, Alt, or Shift).
A very powerful plugin is enabled by default in the file manager for batch renaming of larger selections of files. Clicking Tools | Advanced rename (Figure 6) automatically applies the tool to previously selected files. In the template, you specify the name; pressing N or, say, N0-3 accepts the old name, or only parts of it; pressing E lets you add the appropriate file extension, and C adds a counter to the new file name.
Expandable
One of Sunflower's strengths is its extensibility through plugins. The Sunflower wiki on Google Code [5] describes the structure of the plugins and also presents a simple example. Users with Python skills will not find it difficult to develop their own extensions or supplement existing ones. On the project page [6], you will also find more extensive Sunflower extensions, such as image manipulation (which no longer needs an up-to-date python2 library), archive management, and a SQLite viewer.
To install the plugins, unpack the downloaded archive to ~/.config/sunflower/user_plugins/<pluginname>
in your home directory. After you restart the file manager, the plugins are available in the form of new menu items and functions.
Commands
One particular strength of Sunflower is that you can integrate arbitrary terminal commands seamlessly via the Commands menu. You thus have the option of adding your own custom commands (e.g., mogrify-format jpg "%S"
to convert images to JPG format) and applying them to selected files or directories. Clicking Commands | Edit commands opens the corresponding dialog box (Figure 7).
Sunflower supports three variants in terms of arguments for the commands: %l
represents the selected files in the left panel, %r
the files in the right panel, and %s
those in the current (active) window, with lowercase and uppercase options in each case.
Uppercase tells Sunflower to pass the absolute path to the command. But, watch out: As in the terminal, you need to pay attention to spaces in the paths (i.e., you need to quote the arguments, as in "%S"
). If you terminate the line with an ampersand (&
), the programs run asynchronously, as in the shell.
An underscore in a command name, such as _resize
, lets you define keyboard shortcuts and thus quickly call your own commands. This function was not fully implemented in the current version 0.1a when this issue went to press; however, the developer assured a fix in a timely manner.
« Previous 1 2 3 Next »
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
-
Wine 10 Includes Plenty to Excite Users
With its latest release, Wine has the usual crop of bug fixes and improvements, along with some exciting new features.
-
Linux Kernel 6.13 Offers Improvements for AMD/Apple Users
The latest Linux kernel is now available, and it includes plenty of improvements, especially for those who use AMD or Apple-based systems.
-
Gnome 48 Debuts New Audio Player
To date, the audio player found within the Gnome desktop has been meh at best, but with the upcoming release that all changes.
-
Plasma 6.3 Ready for Public Beta Testing
Plasma 6.3 will ship with KDE Gear 24.12.1 and KDE Frameworks 6.10, along with some new and exciting features.
-
Budgie 10.10 Scheduled for Q1 2025 with a Surprising Desktop Update
If Budgie is your desktop environment of choice, 2025 is going to be a great year for you.
-
Firefox 134 Offers Improvements for Linux Version
Fans of Linux and Firefox rejoice, as there's a new version available that includes some handy updates.
-
Serpent OS Arrives with a New Alpha Release
After months of silence, Ikey Doherty has released a new alpha for his Serpent OS.
-
HashiCorp Cofounder Unveils Ghostty, a Linux Terminal App
Ghostty is a new Linux terminal app that's fast, feature-rich, and offers a platform-native GUI while remaining cross-platform.
-
Fedora Asahi Remix 41 Available for Apple Silicon
If you have an Apple Silicon Mac and you're hoping to install Fedora, you're in luck because the latest release supports the M1 and M2 chips.
-
Systemd Fixes Bug While Facing New Challenger in GNU Shepherd
The systemd developers have fixed a really nasty bug amid the release of the new GNU Shepherd init system.