Skip to content

afify/sfm-patches

Repository files navigation

sfm-patches

The dirargs patch adds two optional arguments that allow you to specify the starting location of the left and right pane respectively.

Adds an option to ignore the leading dot character in 'dotfiles' when sorting them.

  • hide symlinks (resolved full name) from files list
  • show full symlink name on bottom status line when actual symlink selected

Add a keybind that create a window with selected files to drag and drop on a gui app.

Add shortcut that allow user to copy current pane to other pane. Useful for navigation in nested directories.

Add files and folders icons.

Note: go to that part of sfm.c code to fix main folders icons to your needs (downloads, pictures...)

if(strcmp(ex, "own") == 0)  /* downloads */
    icon = " ";
else if(strcmp(ex, "oc") == 0) /* documents */
    icon = " ";
else if(strcmp(ex, "us") == 0) /* music */
    icon = "ﱘ ";
else if(strcmp(ex, "ic") == 0) /* pictures */
    icon = " ";
else if(strcmp(ex, "id") == 0) /* videos */
    icon = " ";
else if(strcmp(ex, "ext") == 0) /* nextcloud */
    icon = " ";
else if(strcmp(ex, "stea") == 0) /* steam */
    icon = " ";
else
    icon = " "; /* default folder */
    /* Uncomment to get the folders "extensions"
     * then change above (comment again after) */
    //icon = ex; /* debug */

Makes the right pane be used to preview folders. This way the user can see what is inside a folder without having to "enter" it. However, this makes the right pane unusable and so the user can't switch panes anymore.

About

collection of sfm patches

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages