CFM(1)

πŸ“¦ version 0.6.6, in nixos 26.05, nixpkgs unstable

🌡 CFM(1) β€” cactus file manager 🌡

✨ NAME ✨

cfm β€” cactus file manager. 🌡

🌸 SYNOPSIS 🌸

cfm [DIR]

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so cfm is a simple, clean, fast TUI file manager. That's literally the whole vibe, bestie. πŸ’…

πŸ’… OPTIONS πŸ’…

  • DIR β€” the directory to open cfm in, or the working directory if you don't specify one. Easy.

πŸŽ€ CONFIGURATION πŸŽ€

For build-time setup, copy config.def.h to config.h and modify it as needed. By default, cfm will attempt to read the EDITOR, SHELL, and OPENER environment variables. If it's preferable for cfm to use a different value for any of these, it can be specified by prepending CFM_ to any of the variables. πŸ› οΈ

cfm will also check for the CFM_TMP environment variable for a location for its temp directory. If the variable is not set and CFM_TMP was not set in config.h, it will attempt to use /tmp/cfmtmp.

⚠️ If the temporary directory cannot be created, then cfm will disable cut/paste and deletions will be permanent (no undo). No take-backs, bestie. 😭

If the CD_ON_CLOSE option is not enabled at compile-time (default off), cfm will also check for the presence of the CFM_CD_ON_CLOSE environment variable, which should contain the path to a file into which it can save its current working directory when quit with Q.

🧚 USAGE 🧚

Note: arrow keys work the same as hjkl.
  • j, k β€” move up/down.
  • PgUp, PgDn β€” move up/down by one full screen.
  • h, l β€” move left/right.
  • gg β€” move to top.
  • G β€” move to bottom.
  • ~ β€” move to user home directory.
  • / β€” move to system root directory.
  • l β€” open file using EDITOR, or change into directory.
  • o β€” open file or directory with OPENER.
  • RET β€” works like o if ENTER_OPENS is enabled, else works like l.
  • . β€” toggles visibility of dotfiles.
  • e β€” open file or directory in EDITOR.
  • r β€” reload directory.
  • S β€” spawn a shell (defined by SHELL) in a directory.
  • T β€” create a new file, opening EDITOR to enter a filename.
  • M β€” create a new directory, opening EDITOR to enter a directory name.
  • R β€” rename a file by opening EDITOR to edit the filename.
Note: for T, M, and R, the allowed characters default to POSIX "fully portable filename" standards with the addition of spaces: [A-Za-z0-9 ._-]. Spaces can be disabled by setting ALLOW_SPACES to 0 in config.h.
  • dd β€” delete current selection (does not touch marked files). This will copy the file/directory into the CFM_TMP directory and can be undone with u. If the CFM_TMP directory does not exist, deletions will be permanent.
  • alt+dd β€” permanently delete current selection (does not touch marked files) without backing up for undo like dd does. This is useful for large directories where a copy will take a long time.
  • m, Space β€” toggle mark for deletion.
  • D β€” delete all marked files (does not touch unmarked files).
  • u β€” undo the last deletion operation (does not work if cfm was unable to create or access its trash directory, in which case deletion is permanent).
  • X β€” cut the selected file or directory (can be pasted again with p). Not available if the tmp directory is not available.
  • yy β€” copy the selected file or directory (can be pasted again with p).
  • p β€” paste the previously cut or copied file or directory; shared between all views.
  • TAB β€” switches to the next view.
  • The ` key β€” switches to the previous view.
  • 1-0 β€” switches to view N, up to the number specified by VIEW_COUNT (2 by default).
  • q, ESC β€” quit cfm.
  • Q β€” quit cfm, saving its working directory to the file specified in CD_ON_CLOSE, if enabled, or the CFM_CD_ON_CLOSE environment variable if not.

⭐ SCRIPTING ⭐

If stdin or stdout are not attached to a TTY, cfm will read commands from stdin and quit at EOF, skipping all drawing. Any errors are fatal and will be printed to stderr.

🚨 Note that in non-interactive mode, cfm will NOT backup files when deleting. All deletions will be permanent. Periodt.

πŸ‘‘ AUTHOR πŸ‘‘

Will Eccles <will@eccles.dev>. For more information, see https://github.com/willeccles/cfm.


πŸ’– That's the whole page, bestie β€” manual CFM(1), dated 2020 January 29. Now go slay your files! 🌡✨
πŸ“¦ where this page comes from