Repository navigation
Releases
Sage File Manager 1.4.5
SAGE File Manager — v1.4.5
SAGE File Manager is a modern, full-featured desktop file manager for Linux, built with Flutter + Rust. It combines multi-view browsing, advanced search, previews, split-view, SMB/LAN support, theming and optimized file operations in a single native experience. Version 1.4.5 is a major quality, performance and usability release focused on speed, reliability and terminal integration.
Overview
v1.4.5 delivers what users asked for most: faster startup, a lag-free sidebar, instant close, and a reliable integrated terminal. While no single feature defines this release, every core path has been audited — from main() initialization to directory watching and window close — resulting in a noticeably smoother experience on both fast SSDs and slow network mounts.
What's New in 1.4.5
1. Performance & Startup
The entire startup pipeline was parallelized and de-bottlenecked:
- Parallel initialization:
LoggingService,GlassTheme,FolderIconService,SettingsService,LocalNotifierandDesktopSessionServicenow start withFuture.wait()afterwindowManager.ensureInitialized(), instead of 10 sequentialawaits. Estimated saving 80-250 ms on cold start. - SharedPreferences cache: Introduced
PrefsCachesingleton, eliminating 6-7 redundantSharedPreferences.getInstance()round-trips per launch. Folder colors are now cached in-memory (Map<String,int?>) instead of N× async reads per sidebar rebuild. - Faster standard folders & disks:
FileService.getStandardDirectories()now checksDesktop/Documents/Pictures/Music/Videos/Downloadsin parallel.FileService.getMountedDisks()collectsdfcandidates and resolveslsblk/blkidlabels in parallel with 800 ms per-disk timeouts (was serial, 300-800 ms → ~40 ms parallel). - Batched initState:
_FileManagerScreenStateno longer floods the main isolate with 6 independentsetStates. A new_batchLoadFastPrefs()loads favorites, preferences, window geometry and caches from a singleSharedPreferencesinstance viaFuture.wait(), and defers the heavygetMountedDisks()scan toaddPostFrameCallbackso the first frame paints immediately. - Cache init parallelized:
ThumbnailCacheServiceandAppImageIconServicenow initialize concurrently.
Result: faster first paint, no sidebar spinner hang on slow df/NFS mounts, and far fewer rebuilds in the first 500 ms.
2. Left Sidebar — No More Lag
- Parallel data load:
Sidebar._loadData()now awaitsFuture.wait([getStandardDirectories, getMountedDisks, SharedPreferences])in one shot (was waterfall). - Icon cache: Folder colors are served from memory; no more
FutureBuilderthrashing on every theme/reorder tick. - Icon decoding optimized: Thumbnail
Image.filenow usescacheWidth/cacheHeight = size * devicePixelRatioviaRepaintBoundary, avoiding full-resolution 50MP decode for 64px previews.
3. Integrated Terminal — Always Active
The embedded terminal was rebuilt for real-world use:
- Autocomplete always on:
compgennow completes the last word only (e.g.cd /ho→/home/completes/ho, not the wholecd /hostring). Works for both files and folders, and is triggered via debouncedonInputChanged. - Tab completion fixed: Same last-word extraction for Tab.
- Focus stays alive: A
Focus.onKeyEventwrapper on the terminal redirects any key press back to the input field when the output area has focus. Clicking the output still allows text selection, but typing never loses the cursor. - Copy & Select All fixed: The right-click menu
Copywas reading from the clipboard. It now reads the actualTextSelectionfromSelectableText.richviaonSelectionChangedand copiestext.substring(start,end).Select allwas missing and is now implemented. - Busy-aware close: See below.
4. Window Close Safety
Closing the manager while the internal terminal is busy now warns the user:
TerminalServicetracks busy state per instance with a 1200 ms debounce timer and aValueNotifier<bool> busyNotifier, plus async child-process detection (ps --ppid/pgrep -Pwith 400 ms timeouts for silent commands likesleep).main.darthooksbusyNotifierandonInstancesChangedtowindowManager.setPreventClose()._handleWindowClose()awaitshasBusyTerminalAsync()(800 ms timeout fallback) and shows a dedicated localized dialog:- “Terminal operation in progress — A command is still running in the internal terminal. Closing may interrupt it. Continue?” (EN/IT/FR/DE/ES/PT).
- Mixed copy+terminal state shows combined message. Idle terminal closes instantly with no warning.
5. Tools Menu — Terminal Icon Restored
- Bug:
Strumenti → Apri terminale interno (F4)usedassets/icons/terminal.pngwhich existed on disk (64×64) but was not declared influtter.assetsinpubspec.yaml. The top menu viaImage(AssetImage)withouterrorBuildershowed a blank/broken image; the empty-space menu viaCompactMenuRowfell back to a genericIcons.terminal. - Fix: Declared
assets/icons/terminal.pnginpubspec.yamland made_mapMenuItemsToWidgets()useImage.asset(..., errorBuilder: Icon(Icons.image_not_supported))for resilience.
6. File Operations & Reliability
- Copy/Move bug fixed: Removed silent fallback that copied the parent directory when the source file was missing (
main.dart_copyFile/_moveFile). - Delete deduplication:
_deleteMultipleFilesnow deduplicates parent/child selections (deleting a folder and its child no longer shows the parent twice) and shows the parent path indelete_operation_window.dart. - .desktop support:
FileService.isDesktopFile()/isDesktopFileSync()detect[Desktop Entry]headers.FileInfo.isDesktopFileadded, populated in_getFileInfoAsync(), icon rendered viafile_icon_service,Typecolumn shows “Program” infile_list.dart,file_properties.dart,file_properties_tabs.dart,quick_look.dart, and double-click launches viaxdg-openbefore ELF check. Localized in 6 languages.
7. Generic Reliability & Resource Management
- Window IPC (
/tmp/sage-fm-ipc) polling changed fromlistSync/readAsStringSyncevery 2s on the main isolate toawait dir.list()+await file.readAsString()async. - Transfer progress timers coalesced from 300 ms/500 ms to 500 ms/1000 ms to reduce I/O storm during copy.
- Leaks fixed:
AudioPlayerWidgetnow stores and cancelsonPlayerState/onPosition/onDurationsubscriptions;main.dartstores_selectionSub/_secondPaneSelectionSuband cancels ondispose. - Glass/transparency:
GlassTheme.isEnablednow guardsBackdropFilterinnavigation_bar.dart(extracted_buildBarContent()) andmain.dartscaffold, avoiding an always-on blur even when disabled.
8. Code Health
- Removed duplicate import in
file_list.dart, unusedSeekimport, 4 unused Rust dependencies inCargo.toml, 13 dead Rust symbols inlib.rs, cleanedrust_ffi.darttypedefs. Bothcargo checkandflutter analyzepass clean (0 new errors).
Technical Details
- Stack: Flutter (Impeller/OpenGL ES, GTK3 embedder), Rust FFI,
window_manager,shared_preferences,yaru,pdfrx,flutter_svg. - I/O model: All heavy work (disk enumeration, thumbnail generation, archive, duplicate finder) is isolated where possible; v1.4.5 moves more to
Future.wait/ async and reduces synchronous*Synccalls on the UI thread. - Localization: EN, IT, FR, DE, ES, PT fully updated for new strings (
fileListTypeProgram,dialogCloseWhileTerminalTitle/Body). - Platform: Linux-first, X11 + Wayland, tested on Mesa/Gallium (NVIDIA/AMD/Intel).
Upgrade is recommended for all users. v1.4.5 makes SAGE feel instant on open, stable on close, and finally makes the integrated terminal a true daily driver — not a secondary widget.
Sage File Manager 1.4.0
File Manager v1.4.0 — Changelog
New Features
QuickLook Preview (Spacebar)
- Press Spacebar on a selected file to open a preview dialog
- Supports images, PDF, DOCX, and XLSX via
PreviewService - Closes with Escape or Spacebar
Per-Tab Terminal (F4)
- Each tab now has its own independent terminal instance
- Opening a terminal in Tab A does not affect Tab B — both can run simultaneously
- Switching tabs keeps background terminal processes alive via
Offstagemounting - Closing a tab cleans up its terminal entry
Properties Dialog Redesign
- Rounded corners (24px) on the dialog container
- Gradient header section with file icon and metadata
- Card-based sections for details, permissions, and contents
- Modern property rows with bordered containers and accent-colored edit buttons
- Contents list wrapped in a rounded container
Terminal Visual Upgrade
- Black background (
#000000) for all themes (light and dark) - White output text for better contrast
- Updated toolbar, input bar, and border colors for a cohesive dark terminal look
Home Directory in Navigation Bar
- The root dropdown in the path bar now shows Home instead of "Root (/)"
- Uses
$HOMEenvironment variable for the actual home path
Bug Fixes
Right-Click on Grid Cells (Right Pane)
- Fixed right-click not working on file/folder cells in the grid view
- Added
_MarqueeDragGuard.shouldSuppressGridMarqueefallback for_primaryDownOnCellin_GridMarqueeShell._onPointerDown
Terminal Keyboard Input
- Fixed terminal not capturing keyboard input when open
- Global
Focus.onKeyEventnow returnsKeyEventResult.ignoredwhen the terminal is active (except F4), allowing keyboard events to propagate to the terminal'sTextField onPointerDownno longer steals focus from the terminal when clicking inside it
Grid View Resize Alignment
- Removed
Expandedwrapper around cell labels that caused a large gap between icon and text at zoom levels 1–6 - Added
LayoutBuilder-based adaptive font size and max lines based on actual cell dimensions - Icons and labels now stay properly aligned during window resize
Grid Cell Text Wrapping
- Text in grid cells uses
TextOverflow.ellipsiswith adaptivemaxLines(2 or 3 based on cell height) - Font size scales down slightly on narrow cells to reduce unnecessary text wrapping
Optimizations
Search Performance
- System path filter (
/proc,/sys,/dev, etc.) now uses compiled regex instead of repeatedstartsWithchecks - File stat operations batched in groups of 50 for faster search throughput
findcommand now passes-sizeflags to skip oversized files at the filesystem level- File type matching constants converted from
ListtoSetfor O(1) lookup
Navigation Bar
- Added
dart:ioPlatform import for cross-platform home directory resolution
Sage File Manager 1.3.0
Version 1.3.0
Navigation & Toolbar Redesign
Complete 3D depth redesign of the navigation bar: multi-layer shadows (ambient 48px + directional 28px + contact 8px + primary glow
20px), vertical gradient (95%→72% opacity), 2px primary accent bottom border, 18px border radius
Replaced icon fonts with custom 32×32 PNG assets for all toolbar buttons (back, forward, up, list, grid, details, columns, search)
preserving original colors and transparency
New _GlowNavButton, _GlowViewModeButton, _GlowSearchButton widgets with animated hover glow effects, scale transitions
(easeOutCubic), and gradient ring backgrounds
Path bar redesigned with focus-aware styling: active pane gets a primary-tinted background with matching glow shadow, inactive pane
uses subtle surfaceContainerHighest
Status bar enhanced with subtle surface gradient and soft top shadow
Crash Fixes & Stability
Added mounted guards in _loadFavorites and showDeleteResults to prevent state updates after disposal
Fixed StreamSubscription leak in package_manager.dart — subscriptions now cancelled in dispose()
Created AppProcess wrapper (lib/services/process_helper.dart) with default 2-minute timeout; applied to all 195 Process.run
calls across 17 files
Added .timeout() to SMB exitCode awaits (5–10 min) to prevent hanging on unresponsive shares
SMB / Network Transfers
Fixed pre-existing content inflating progress: upload and download operations now measure baseline destination size before starting and
subtract it from each poll result
Fixed parallel SMB upload race condition: source sizes are pre-calculated sequentially before Future.wait() so each parallel upload
receives its correct cumulative progressBaseBytes
Progress & Localization
Fixed multi-transfer progress cross-talk: global _copyProgress.stats is no longer the source of per-operation progress values
Replaced hardcoded 'Copying…' English string in transfer_dialog.dart with localized l10n.copyProgressTitle /
l10n.deleteProgressTitle
Theme & UI
Added system theme auto-detection on first launch (lib/services/system_theme_detector.dart) supporting GNOME, KDE, XFCE,
and GTK-based desktops
Consolidated duplicate parseDuFirstColumnBytes and diskUsageBytesOne functions into lib/utils/file_utils.dart
Removed redundant “>” chevron from View menu button and custom submenu items
Enhanced GlassWrapper with optional gradient, border, and boxShadow parameters
Removed duplicate imports in file_list.dart
Under the Hood
All Process.run calls now pass through AppProcess.run with configurable timeout
Shared utility functions return int? (null = not found), matching existing caller conventions
Theme auto-detection is only performed on first launch; the result is persisted in settings
Pre-existing file sizes are measured sequentially before parallel uploads to avoid data races











