Skip to content

v1.23

Latest
Compare
Choose a tag to compare
@leo-arch leo-arch released this 20 Jan 18:48
· 77 commits to master since this release
0cf4e98

Clifm 1.23 (Pirahna poodle)

Download CliFM

Get distro-specific binary packages from the OpenSUSE Build System

Bug fixes 🪲 🐛

  • TAB completion: file names with embedded control chars are not properly colorized.
  • TAB completion: no preview for file names with embedded control chars.
  • Not properly failing when --opener is given no parameter.
  • Image previews: img2txt method not working for ANSI images (clifmimg).
  • view command not working when running with --stdtab.
  • cl,columns command stopped working.
  • sel *.pdf works, but desel *.pdf doesn't.
  • Opening applications using the %x flag (mimelist file) not working with --secure-cmds.
  • MaxFilenameLen=-1 (in the config file) is ignored.
  • Garbage on the command line running a keybinding in vi-mode.
  • Wrong image placement (ueberzug method) when --height is set from either $FZF_DEFAULT_OPTS or FzfTabOptions.
  • Config: cmCmd=5 (rsync) does not copy directories themselves (but its content).
  • Cannot operate on file names containing REGEX characters (e.g. the command s c++ expands c++ as if it were a REGEX).
  • --preview/--open fail when given a file URI with percent-escaped characters (e.g. file:///home/user/this%20file.txt).
  • Cannot open file with single quote in name (e.g. John's file.txt).

New features/Improvements 😎 :godmode:

  • Add file preview for javascript files.
  • Image previews: add support for exr, fit, hdr, heic, pbm, pgm, pnm, ppm, and xpm image formats.
  • x command: expand environment variable in TerminalCmd (first word only) (config file).
  • x command: run terminal detached (via setsid(3)).
  • X command: do not run with sudo if already root.
  • Set the main configuration file path via $CLIFMRC. For example: CLIFMRC=/path/to/clifmrc clifm`.
  • Add --help to the reload command.
  • config reload can be used now instead of reload. Run config --help for more information.
  • Use --mimelist-file command line option to set an alternative mimelist file.
  • New prompt module (m_hostname_color): dynamically colorize the hostname depending on whether we're on a SSH session or not.
  • Adjust the number of spaces between icons and file names using the IconsGap option in the configuration file. Valid values: 0, 1 (default), or 2.
  • Explicitly check $XDG_DATA_HOME and $XDG_DATA_DIRS when setting clifm's data directory.
  • Add builtin confirmation prompt to c and m commands (previously using those provided by cp(1) and mv(1) commands themselves).
  • Set a default answer for confirmation prompts via DefaultAnswer in the config file (default value: o:n,r:n,t:y,R:n,d:y). This means: no for overwrite (includes c and m commands), remove, and bulk rename, yes for everything else (including trash).
  • Create files from templates using the n command. Run n --help for more information.
  • p/pp command: print both apparent and physical sizes.
  • Make --lscolors able to understand $LSCOLORS (FreeBSD style).
  • Purge the thumbnails directory of dangling thumbnails using the view purge command. Remember to update your clifmimg script to start populating the thumbnails database: cp /usr/share/clifm/plugins/clifmimg ~/.config/clifm/. Note that the thumbnails directory has been changed from $XDG_CACHE_HOME/clifm/previews to $XDG_CACHE_HOME/clifm/thumbnails. You can remove the old directory: from now on thumbnails will be stored in the new directory.
  • Both the mimelist and the preview configuration files now support the %u placeholder, which is expanded to the file URI for the original file name.
  • clifmimg: Generate thumbnail names as MD5 hashes of the file URI for the original file name (as recommended by the FreeDesktop specification) instead of hashing the file itself. This brings a nice performance improvement, specially when it comes to large files. This works along with the %u placeholder mentioned above. Update your clifmimg script. Also, though optional, update your preview.clifm config file to make use of the new %u placeholder by simply adding %u at the end of the clifmimg lines. E.g.: ^image/.*=~/.config/clifm/clifmimg image %f %u;. See the Image previews section for details.
  • Prevent big files from generating a preview via PreviewMaxSize in the config file. Supported size units: K, M, G, T; supported size range: 1K-2047G. E.g.: PreviewMaxSize=100M.
  • Colorize .csv files as documents (default color scheme).
  • Colorize .sass and .scss files as markup files (default color scheme).
  • Sort completion matches for mimetype filter (@TAB).
  • Add previewing app information to the mm info command. Mostly useful to solve previewing issues.