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
-
Linux Servers Targeted by Akira Ransomware
A group of bad actors who have already extorted $42 million have their sights set on the Linux platform.
-
TUXEDO Computers Unveils Linux Laptop Featuring AMD Ryzen CPU
This latest release is the first laptop to include the new CPU from Ryzen and Linux preinstalled.
-
XZ Gets the All-Clear
The back door xz vulnerability has been officially reverted for Fedora 40 and versions 38 and 39 were never affected.
-
Canonical Collaborates with Qualcomm on New Venture
This new joint effort is geared toward bringing Ubuntu and Ubuntu Core to Qualcomm-powered devices.
-
Kodi 21.0 Open-Source Entertainment Hub Released
After a year of development, the award-winning Kodi cross-platform, media center software is now available with many new additions and improvements.
-
Linux Usage Increases in Two Key Areas
If market share is your thing, you'll be happy to know that Linux is on the rise in two areas that, if they keep climbing, could have serious meaning for Linux's future.
-
Vulnerability Discovered in xz Libraries
An urgent alert for Fedora 40 has been posted and users should pay attention.
-
Canonical Bumps LTS Support to 12 years
If you're worried that your Ubuntu LTS release won't be supported long enough to last, Canonical has a surprise for you in the form of 12 years of security coverage.
-
Fedora 40 Beta Released Soon
With the official release of Fedora 40 coming in April, it's almost time to download the beta and see what's new.
-
New Pentesting Distribution to Compete with Kali Linux
SnoopGod is now available for your testing needs