❌

Normal view

There are new articles available, click to refresh the page.
Yesterday β€” 11 March 2025Main stream

πŸš€ #FOSS: Mastering Superfile: The Ultimate Terminal-Based File Manager for Power Users

28 February 2025 at 17:07

πŸ”₯ Introduction

Are you tired of slow, clunky GUI-based file managers? Do you want lightning-fast navigation and total control over your filesβ€”right from your terminal? Meet Superfile, the ultimate tool for power users who love efficiency and speed.

In this blog, we’ll take you on a deep dive into Superfile’s features, commands, and shortcuts, transforming you into a file management ninja! ⚑

πŸ’‘ Why Choose Superfile?

Superfile isn’t just another file manager it’s a game-changer.

Here’s why

βœ… Blazing Fast – No unnecessary UI lag, just pure efficiency.

βœ… Keyboard-Driven – Forget the mouse, master navigation with powerful keybindings.

βœ… Multi-Panel Support – Work with multiple directories simultaneously.

βœ… Smart Search & Sorting – Instantly locate and organize files.

βœ… Built-in File Preview & Metadata Display – See what you need without opening files.

βœ… Highly Customizable – Tailor it to fit your workflow perfectly.

πŸ›  Installation

Getting started is easy! Install Superfile using

# For Linux (Debian-based)
wget -qO- https://superfile.netlify.app/install.sh | bash

# For macOS (via Homebrew)
brew install superfile

# For Windows (via Scoop)
scoop install superfile

Once installed, launch it with

spf

πŸš€ Boom! You’re ready to roll.

⚑ Essential Commands & Shortcuts

πŸ— General Operations

  • Launch Superfile: spf
  • Exit: Press q or Esc
  • Help Menu: ?
  • Toggle Footer Panel: F

πŸ“‚ File & Folder Navigation

  • New File Panel: n
  • Close File Panel: w
  • Toggle File Preview: f
  • Next Panel: Tab or Shift + l
  • Sidebar Panel: s

πŸ“ File & Folder Management

  • Create File/Folder: Ctrl + n
  • Rename: Ctrl + r
  • Copy: Ctrl + c
  • Cut: Ctrl + x
  • Paste: Ctrl + v
  • Delete: Ctrl + d
  • Copy Path: Ctrl + p

πŸ”Ž Search & Selection

  • Search: /
  • Select Files: v
  • Select All: Shift + a

πŸ“¦ Compression & Extraction

  • Extract Zip: Ctrl + e
  • Compress to Zip: Ctrl + a

πŸ† Advanced Power Moves

  • Open Terminal Here: Shift + t
  • Open in Editor: e
  • Toggle Hidden Files: .

πŸ’‘ Pro Tip: Use Shift + p to pin frequently accessed folders for even quicker access!

🎨 Customizing Superfile

Want to make Superfile truly yours? Customize it easily by editing the config file

$EDITOR CONFIG_PATH

To enable the metadata plugin, add

metadata = true

For more customizations, check out the Superfile documentation.

🎯 Final Thoughts

Superfile is the Swiss Army knife of terminal-based file managers. Whether you’re a developer, system admin, or just someone who loves a fast, efficient workflow, Superfile will revolutionize the way you manage files.

πŸš€ Ready to supercharge your productivity? Install Superfile today and take control like never before!

For more details, visit the Superfile website.

Before yesterdayMain stream

Can UV Transform Python Scripts into Standalone Executables ?

17 February 2025 at 17:48

Managing dependencies for small Python scripts has always been a bit of a hassle.

Traditionally, we either install packages globally (not recommended) or create a virtual environment, activate it, and install dependencies manually.

But what if we could run Python scripts like standalone binaries ?

Introducing PEP 723 – Inline Script Metadata

PEP 723 (https://peps.python.org/pep-0723/) introduces a new way to specify dependencies directly within a script, making it easier to execute standalone scripts without dealing with external dependency files.

This is particularly useful for quick automation scripts or one-off tasks.

Consider a script that interacts with an API requiring a specific package,

# /// script
# requires-python = ">=3.11"
# dependencies = [
#   "requests",
# ]
# ///

import requests
response = requests.get("https://api.example.com/data")
print(response.json())

Here, instead of manually creating a requirements.txt or setting up a virtual environment, the dependencies are defined inline. When using uv, it automatically installs the required packages and runs the script just like a binary.

Running the Script as a Third-Party Tool

With uv, executing the script feels like running a compiled binary,

$ uv run fetch-data.py
Reading inline script metadata from: fetch-data.py
Installed dependencies in milliseconds

ehind the scenes, uv creates an isolated environment, ensuring a clean dependency setup without affecting the global Python environment. This allows Python scripts to function as independent tools without any manual dependency management.

Why This Matters

This approach makes Python an even more attractive choice for quick automation tasks, replacing the need for complex setups. It allows scripts to be shared and executed effortlessly, much like compiled executables in other programming environments.

By leveraging uv, we can streamline our workflow and use Python scripts as powerful, self-contained tools without the usual dependency headaches.

❌
❌