commit 6f9feaf9b4c9004ef4e2b98e7979e36469943475
parent fbc3227515f056b6dc0590bd59e91176734ca176
Author: emmett1 <emmett1.2miligrams@protonmail.com>
Date: Mon, 16 Mar 2026 00:44:07 +0800
updated README.txt
Diffstat:
1 file changed, 21 insertions(+), 3 deletions(-)
diff --git a/README.txt b/README.txt
@@ -17,6 +17,7 @@ REQUIREMENTS
- Optional: wl-copy / xclip / xsel / pbcopy (for clipboard support)
- Optional: mpv, vlc, feh, zathura, etc. (for smart file opening)
- Optional: readlink (for symlink display)
+- Optional: file (for MIME type detection)
INSTALLATION
@@ -41,9 +42,15 @@ Manual installation:
USAGE
-----
- sfm
+ sfm [path]
-sfm will opens in the current directory.
+If no path is given, sfm opens in the current directory.
+
+Examples:
+ sfm # open in current directory
+ sfm /mnt/data # open at a specific path
+ sfm ~ # open home directory
+ sfm .. # open parent directory
NAVIGATION
@@ -68,11 +75,23 @@ DISPLAY TOGGLES
---------------
. Toggle hidden files (dotfiles)
T Toggle size/date detail column
+ P Toggle preview pane (right side)
s Cycle sort mode: name -> size -> date
i Show file info (permissions, size, date) in status bar
R Refresh current directory listing
+PREVIEW PANE
+------------
+Press P to toggle the preview pane on the right side of the screen.
+The list pane takes the left half, preview takes the right half.
+
+ Text files Shows file contents line by line
+ Directories Shows entry count
+ Symlinks Shows link target
+ Binary files Shows file size
+
+
FILE OPERATIONS
---------------
r Rename selected entry
@@ -164,4 +183,3 @@ DATA FILES
----------
~/.config/sfm/bookmarks Saved bookmarks (one path per line)
~/.local/share/sfm-trash/ Trashed files
-