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
-
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.